All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/5] pinctrl: microchip-sgpio: locking and synchronous output
@ 2022-02-24 16:10 ` Michael Walle
  0 siblings, 0 replies; 26+ messages in thread
From: Michael Walle @ 2022-02-24 16:10 UTC (permalink / raw)
  To: Lars Povlsen, Steen Hegelund, Linus Walleij
  Cc: UNGLinuxDriver, linux-arm-kernel, linux-gpio, linux-kernel,
	Colin Foster, Michael Walle

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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-03-04 15:13 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-24 16:10 [PATCH v1 0/5] pinctrl: microchip-sgpio: locking and synchronous output Michael Walle
2022-02-24 16:10 ` Michael Walle
2022-02-24 16:10 ` [PATCH v1 1/5] pinctrl: microchip-sgpio: lock RMW access Michael Walle
2022-02-24 16:10   ` Michael Walle
2022-02-24 16:10 ` [PATCH v1 2/5] pinctrl: microchip-sgpio: don't do RMW for interrupt ack register Michael Walle
2022-02-24 16:10   ` Michael Walle
2022-02-24 16:10 ` [PATCH v1 3/5] pinctrl: microchip-sgpio: use regmap_update_bits() Michael Walle
2022-02-24 16:10   ` Michael Walle
2022-02-24 16:10 ` [PATCH v1 4/5] pinctrl: microchip-sgpio: return error in spgio_output_set() Michael Walle
2022-02-24 16:10   ` Michael Walle
2022-02-24 16:10 ` [PATCH v1 5/5] pinctrl: microchip-sgpio: wait until output is actually set Michael Walle
2022-02-24 16:10   ` Michael Walle
2022-02-25  9:24   ` Horatiu Vultur
2022-02-25  9:24     ` Horatiu Vultur
2022-02-25 11:29     ` Michael Walle
2022-02-25 11:29       ` Michael Walle
2022-02-25 16:54       ` Colin Foster
2022-02-25 16:54         ` Colin Foster
2022-02-26 20:54         ` Michael Walle
2022-02-26 20:54           ` Michael Walle
2022-03-04 12:09       ` Horatiu Vultur
2022-03-04 12:09         ` Horatiu Vultur
2022-03-04 12:46         ` Michael Walle
2022-03-04 12:46           ` Michael Walle
2022-03-04 15:14           ` Horatiu Vultur
2022-03-04 15:14             ` Horatiu Vultur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.