mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
9a59b350b7
Changelogs: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.15 * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.16 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46011
24 lines
848 B
Diff
24 lines
848 B
Diff
From 08b085a07efe12568d86dff064e6f089e2971744 Mon Sep 17 00:00:00 2001
|
|
From: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
|
|
Date: Mon, 25 May 2015 22:39:50 +0200
|
|
Subject: gpio-stp-xway: Fix enabling the highest bit of the PHY LEDs
|
|
|
|
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>
|
|
|
|
--- 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
|
|
|