]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: microchip-sgpio: don't do RMW for interrupt ack register
authorMichael Walle <michael@walle.cc>
Sat, 26 Feb 2022 20:45:04 +0000 (21:45 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 15 Mar 2022 00:55:58 +0000 (01:55 +0100)
commit523fa836b24ef5c9379f56be2e23d592d3d0fca6
treefeb84eee78383214243ee99744922e6b869d7bc0
parent6f4fd6d08b590bb0edd6a2bd8bac3702be5c71de
pinctrl: microchip-sgpio: don't do RMW for interrupt ack register

The interrupt ack register has the usual "write one to clear" semantics.
No read-modify-write is required here.

This is also a preparation patch to change the sgpio_clrsetbits() to use
regmap_update_bits() which don't write the value if it is not changed.

Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220226204507.2511633-3-michael@walle.cc
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-microchip-sgpio.c