Skip to content

Commit

Permalink
gpio-stp-xway: Fix enabling the highest bit of the PHY LEDs
Browse files Browse the repository at this point in the history
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>
Acked-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Martin Blumenstingl authored and Linus Walleij committed Jun 1, 2015
1 parent b6ac128 commit 08b085a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpio/gpio-stp-xway.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 08b085a

Please sign in to comment.