linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT
@ 2020-03-15 12:13 Chuanhong Guo
  2020-03-15 12:13 ` [PATCH 1/2] " Chuanhong Guo
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Chuanhong Guo @ 2020-03-15 12:13 UTC (permalink / raw)
  To: linux-gpio
  Cc: Chuanhong Guo, Linus Walleij, Bartosz Golaszewski,
	Sergio Paracuellos, René van Dorst, open list

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(-)

-- 
2.24.1


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

end of thread, other threads:[~2020-03-16  9:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15 12:13 [PATCH 0/2] gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT Chuanhong Guo
2020-03-15 12:13 ` [PATCH 1/2] " Chuanhong Guo
2020-03-16  9:27   ` Bartosz Golaszewski
2020-03-15 12:13 ` [PATCH 2/2] gpio: mt7621: add BGPIOF_NO_SET_ON_INPUT flag Chuanhong Guo
2020-03-16  9:27   ` Bartosz Golaszewski
2020-03-15 12:48 ` [PATCH 0/2] gpio: mmio: introduce BGPIOF_NO_SET_ON_INPUT René van Dorst
2020-03-15 14:17 ` Sergio Paracuellos

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).