[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220224161021.2197263-1-michael@walle.cc>
Date: Thu, 24 Feb 2022 17:10:16 +0100
From: Michael Walle <michael@...le.cc>
To: Lars Povlsen <lars.povlsen@...rochip.com>,
Steen Hegelund <Steen.Hegelund@...rochip.com>,
Linus Walleij <linus.walleij@...aro.org>
Cc: UNGLinuxDriver@...rochip.com, linux-arm-kernel@...ts.infradead.org,
linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
Colin Foster <colin.foster@...advantage.com>,
Michael Walle <michael@...le.cc>
Subject: [PATCH v1 0/5] pinctrl: microchip-sgpio: locking and synchronous output
There are boards which use the output of the SGPIO to drive I2C muxers.
SGPIO right now is broken in a way that when the software sets this bit
there is a rather large delay until that value ends up on the hardware
pin.
While digging into this, I've noticed that there is no locking at all
in this driver. Add locking for all RWM accesses.
Please note, that parts of the modification of the first patch are
removed again in a later patch. This is because the first patch is
intended to be backported to the stable trees.
Michael Walle (5):
pinctrl: microchip-sgpio: lock RMW access
pinctrl: microchip-sgpio: don't do RMW for interrupt ack register
pinctrl: microchip-sgpio: use regmap_update_bits()
pinctrl: microchip-sgpio: return error in spgio_output_set()
pinctrl: microchip-sgpio: wait until output is actually set
drivers/pinctrl/pinctrl-microchip-sgpio.c | 101 ++++++++++++++++++----
1 file changed, 86 insertions(+), 15 deletions(-)
--
2.30.2
Powered by blists - more mailing lists