All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Introduce new optional property to mark port as write only
@ 2023-01-26 10:17 ` Niall Leonard
  0 siblings, 0 replies; 20+ messages in thread
From: Niall Leonard via B4 Submission Endpoint @ 2023-01-26 10:17 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Rob Herring, Krzysztof Kozlowski
  Cc: linux-gpio, devicetree, linux-kernel, Niall Leonard

Some electronics do not allow the data regsister to be read.
Reading the register can corrupt the output. This makes it
impossible to read the last data written to the port.
The existing shadow data register 'bgpio_data' can be used to allow
the last written value to be returned by the read operation in this
scenario.
This is enabled for a particular port using a new flag and a new
device tree property.

Signed-off-by: Niall Leonard <nl250060@ncr.com>
---
Niall Leonard (3):
      gpio: dt-bindings: add new property to wd,mbl-gpio bindings
      gpio: Add new flag BGPIOF_NO_INPUT
      gpio: mmio: Use new flag BGPIOF_NO_INPUT

 .../devicetree/bindings/gpio/wd,mbl-gpio.txt          |  1 +
 drivers/gpio/gpio-mmio.c                              | 19 +++++++++++++++++--
 include/linux/gpio/driver.h                           |  1 +
 3 files changed, 19 insertions(+), 2 deletions(-)
---
base-commit: 1b929c02afd37871d5afb9d498426f83432e71c2
change-id: 20230126-gpio-mmio-fix-1a69d03ec9e7

Best regards,
-- 
Niall Leonard <nl250060@ncr.com>


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

end of thread, other threads:[~2023-01-31 10:25 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 10:17 [PATCH 0/3] Introduce new optional property to mark port as write only Niall Leonard via B4 Submission Endpoint
2023-01-26 10:17 ` Niall Leonard
2023-01-26 10:17 ` [PATCH 1/3] gpio: dt-bindings: add new property to wd,mbl-gpio bindings Niall Leonard
2023-01-26 10:17   ` Niall Leonard via B4 Submission Endpoint
2023-01-26 12:28   ` Krzysztof Kozlowski
2023-01-27 11:39     ` Leonard, Niall
2023-01-29 15:59       ` Krzysztof Kozlowski
2023-01-30 13:20         ` Leonard, Niall
2023-01-30 18:37           ` Rob Herring
2023-01-31 10:25             ` Leonard, Niall
2023-01-27 12:57   ` Linus Walleij
2023-01-26 10:17 ` [PATCH 2/3] gpio: Add new flag BGPIOF_NO_INPUT Niall Leonard via B4 Submission Endpoint
2023-01-26 10:17   ` Niall Leonard
2023-01-27 12:54   ` Linus Walleij
2023-01-31 10:22     ` Leonard, Niall
2023-01-26 10:17 ` [PATCH 3/3] gpio: mmio: Use " Niall Leonard
2023-01-26 10:17   ` Niall Leonard via B4 Submission Endpoint
2023-01-27 12:53   ` Linus Walleij
2023-01-29 16:01   ` Krzysztof Kozlowski
2023-01-31 10:23     ` Leonard, Niall

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.