linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] gpio-stp-xway: Fix enabling the highest bit of the PHY LEDs
@ 2015-05-25 20:39 Martin Blumenstingl
  2015-05-25 20:39 ` [PATCH 2/2] gpio-stp-xway: Use the of_property_read_u32 helper Martin Blumenstingl
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Martin Blumenstingl @ 2015-05-25 20:39 UTC (permalink / raw)
  To: linux-gpio
  Cc: Linus Walleij, Alexandre Courbot, Grant Likely, John Crispin,
	Martin Blumenstingl

0x3 only masks two bits, but three bits have to be allowed. This fixes
GPHY0 LED2 (which is the highest bit of phy2) on my board.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 drivers/gpio/gpio-stp-xway.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpio-stp-xway.c b/drivers/gpio/gpio-stp-xway.c
index 202361e..6d4148f 100644
--- a/drivers/gpio/gpio-stp-xway.c
+++ b/drivers/gpio/gpio-stp-xway.c
@@ -58,7 +58,7 @@
 #define XWAY_STP_ADSL_MASK	0x3
 
 /* 2 groups of 3 bits can be driven by the phys */
-#define XWAY_STP_PHY_MASK	0x3
+#define XWAY_STP_PHY_MASK	0x7
 #define XWAY_STP_PHY1_SHIFT	27
 #define XWAY_STP_PHY2_SHIFT	15
 
-- 
2.4.1


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

end of thread, other threads:[~2015-06-01 14:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-25 20:39 [PATCH 1/2] gpio-stp-xway: Fix enabling the highest bit of the PHY LEDs Martin Blumenstingl
2015-05-25 20:39 ` [PATCH 2/2] gpio-stp-xway: Use the of_property_read_u32 helper Martin Blumenstingl
2015-05-26  6:56   ` John Crispin
2015-05-26 21:12     ` [PATCHv2 " Martin Blumenstingl
2015-06-01 14:59       ` Linus Walleij
2015-05-26  6:54 ` [PATCH 1/2] gpio-stp-xway: Fix enabling the highest bit of the PHY LEDs John Crispin
2015-06-01 14:44 ` 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).