Skip to content

gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT

Chuanhong Guo linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUTdrivers/gpio/gpio-mmio.c include/linux/gpio/driver.h+20 -41 reply
2/2gpio: mt7621: add BGPIOF_NO_SET_ON_INPUT flagdrivers/gpio/gpio-mt7621.c+2 -21 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRené van DorstSergio Paracuellos
SeriesT-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT

Currently gpio-hog doesn't work on gpio-mt7621 driver. On further debugging, I noticed that set/clear register on this controller only works on output pins. We need to setup pin direction before writing values in bgpio_dir_out for a correct gpio-hog behavior. This patchset introduces a new flag BGPIOF_NO_SET_ON_INPUT for these kind of controller and set this flag for gpio-mt7621.

Chuanhong Guo (2):
gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT
gpio: mt7621: add BGPIOF_NO_SET_ON_INPUT flag

 drivers/gpio/gpio-mmio.c    | 23 +++++++++++++++++++----
 drivers/gpio/gpio-mt7621.c  |  4 ++--
 include/linux/gpio/driver.h |  1 +
 3 files changed, 22 insertions(+), 6 deletions(-)
Signature · 1 line
2.24.1