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)
commitcd8c48b4efcfb2e71ef8a5d2208a0db5002b78bf
treefeb84eee78383214243ee99744922e6b869d7bc0
parent7996c5f5ec7a20b3f6b8fae93fcf3cb8f1c01743
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