devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] gpio: thunderx: Marvell GPIO changes.
@ 2022-04-27 14:46 Piyush Malgujar
  2022-04-27 14:46 ` [PATCH 1/5] gpio: thunderx: avoid potential deadlock Piyush Malgujar
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Piyush Malgujar @ 2022-04-27 14:46 UTC (permalink / raw)
  To: linux-gpio, linux-kernel, devicetree
  Cc: linus.walleij, brgl, robh+dt, krzysztof.kozlowski+dt, rric,
	cchavva, wsadowski, Piyush Malgujar

This patch includes the following changes:

- Using irqsave/irqrestore spinlock variants to avoid any potential
  deadlock in case of GPIO as IRQ
- Introducing a new device tree option 'pin-cfg' which can be used to setup
  mode of one or several GPIO pins. It can be used to choose pin's
  function, filtes, polarity and direction.
- Extending PIN_SEL_MASK to cover for otx2 platform
- In case of level irq, the current handle is not unmasking the GPIO
  interrupt, so using handle_level_irq, which will allow next interrupt
  to be handled.

All the changes have been internally verified on Marvell otx2 platforms.

Piyush Malgujar (5):
  gpio: thunderx: avoid potential deadlock
  dt-bindings: gpio: gpio-thunderx: Describe pin-cfg option
  gpio: thunderx: Configure GPIO pins at probe
  gpio: thunderx: extend PIN_SEL_MASK to cover otx2 platform
  gpio: thunderx: change handler for level interrupt

 .../bindings/gpio/gpio-thunderx.txt           |  4 ++
 drivers/gpio/gpio-thunderx.c                  | 53 +++++++++++++++----
 2 files changed, 47 insertions(+), 10 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2022-06-26 10:40 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-27 14:46 [PATCH 0/5] gpio: thunderx: Marvell GPIO changes Piyush Malgujar
2022-04-27 14:46 ` [PATCH 1/5] gpio: thunderx: avoid potential deadlock Piyush Malgujar
2022-05-02 11:18   ` Bartosz Golaszewski
2022-05-25 13:17     ` Piyush Malgujar
2022-05-31 17:30       ` Bartosz Golaszewski
2022-04-27 14:46 ` [PATCH 2/5] dt-bindings: gpio: gpio-thunderx: Describe pin-cfg option Piyush Malgujar
2022-05-01 22:15   ` Linus Walleij
2022-06-03  9:06     ` Piyush Malgujar
2022-06-03 10:35       ` Linus Walleij
2022-06-13  8:04         ` Piyush Malgujar
2022-06-25 22:59           ` Linus Walleij
2022-06-26 10:40             ` Krzysztof Kozlowski
2022-04-27 14:46 ` [PATCH 3/5] gpio: thunderx: Configure GPIO pins at probe Piyush Malgujar
2022-04-28  1:59   ` kernel test robot
2022-04-27 14:46 ` [PATCH 4/5] gpio: thunderx: extend PIN_SEL_MASK to cover otx2 platform Piyush Malgujar
2022-04-27 14:46 ` [PATCH 5/5] gpio: thunderx: change handler for level interrupt Piyush Malgujar
2022-05-01 22:17   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).