]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: gemini: Mask and set properly
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 9 Oct 2018 08:11:53 +0000 (10:11 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Oct 2018 11:55:04 +0000 (13:55 +0200)
commitd17f477c5bc6b4a5dd9f51ae263870da132a8e89
tree06f1d81d57eca0b7fda8adc95c1e9b6b0b84441a
parent71a9d395aa12279e53d411ef3345fddc840347c6
pinctrl: gemini: Mask and set properly

The code was written under the assumption that the
regmap_update_bits() would mask the bits in the mask and
set the bits in the value.

It missed the points that it will not set bits in the value
unless these are also masked in the mask. Set value bits
that are not in the mask will simply be ignored.

Fixes: 06351d133dea ("pinctrl: add a Gemini SoC pin controller")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-gemini.c