Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
What's new
2
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Projects
Groups
Snippets
Sign up now
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
perillamint
switch-linux
Commits
ce5c0d82
Commit
ce5c0d82
authored
Jul 02, 2018
by
perillamint
Browse files
DIRTY HACK: Prevent MAX77620 GPIO driver messing up MAX77620_REG_CNFGGLBL1 register
parent
f747c4b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/base/regmap/regmap-irq.c
View file @
ce5c0d82
...
...
@@ -528,6 +528,12 @@ int regmap_add_irq_chip(struct regmap *map, int irq, int irq_flags,
d
->
mask_buf
[
i
]
=
d
->
mask_buf_def
[
i
];
reg
=
chip
->
mask_base
+
(
i
*
map
->
reg_stride
*
d
->
irq_reg_stride
);
// Dirty workaround for Nvidia MAX77620 driver
if
(
strcmp
(
chip
->
name
,
"max77620-gpio"
)
==
0
&&
reg
==
0x00
)
{
continue
;
}
if
(
chip
->
mask_invert
)
ret
=
regmap_irq_update_bits
(
d
,
reg
,
d
->
mask_buf
[
i
],
~
d
->
mask_buf
[
i
]);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment