linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] gpio: etraxfs: fix set register flag
@ 2015-07-22 13:05 Rabin Vincent
  2015-07-22 13:05 ` [PATCH 2/3] gpio: generic: support input-only chips Rabin Vincent
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rabin Vincent @ 2015-07-22 13:05 UTC (permalink / raw)
  To: linus.walleij, gnurou; +Cc: linux-gpio, linux-kernel, Rabin Vincent

BGPIO_F_UNREADABLE_REG_SET is incorrect, since the set register _is_
readable.  What's really required is BGPIO_F_READ_OUTPUT_REG_SET:
reading the set register reads the set output value.

Signed-off-by: Rabin Vincent <rabin@rab.in>
---
 drivers/gpio/gpio-etraxfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-etraxfs.c b/drivers/gpio/gpio-etraxfs.c
index 28071f4..c1ce80d 100644
--- a/drivers/gpio/gpio-etraxfs.c
+++ b/drivers/gpio/gpio-etraxfs.c
@@ -140,7 +140,7 @@ static int etraxfs_gpio_probe(struct platform_device *pdev)
 				 NULL,			/* clr */
 				 regs + port->oe,	/* dirout */
 				 NULL,			/* dirin */
-				 BGPIOF_UNREADABLE_REG_SET);
+				 BGPIOF_READ_OUTPUT_REG_SET);
 		if (ret)
 			return ret;
 
-- 
2.1.4

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

end of thread, other threads:[~2015-07-27 13:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-22 13:05 [PATCH 1/3] gpio: etraxfs: fix set register flag Rabin Vincent
2015-07-22 13:05 ` [PATCH 2/3] gpio: generic: support input-only chips Rabin Vincent
2015-07-27 13:01   ` Linus Walleij
2015-07-22 13:05 ` [PATCH 3/3] gpio: etraxfs: add support for ARTPEC-3 Rabin Vincent
2015-07-27 13:03   ` Linus Walleij
2015-07-27 12:59 ` [PATCH 1/3] gpio: etraxfs: fix set register flag 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).