6e8ad0f36c1cd0c0fab80e35b4d476a3b3e4711a
[openwrt/staging/yousong.git] /
1 From cdb8faa00e3fcdd0ad10add743516d616dc7d38e Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <ynezz@true.cz>
3 Date: Mon, 11 Mar 2019 22:08:22 +0100
4 Subject: [PATCH] mips: bcm47xx: Enable USB power on Netgear WNDR3400v2
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Eric has reported on OpenWrt's bug tracking system[1], that he's not
10 able to use USB devices on his WNDR3400v2 device after the boot, until
11 he turns on GPIO #21 manually through sysfs.
12
13 1. https://bugs.openwrt.org/index.php?do=details&task_id=2170
14
15 Cc: Rafał Miłecki <zajec5@gmail.com>
16 Cc: Hauke Mehrtens <hauke@hauke-m.de>
17 Reported-by: Eric Bohlman <ericbohlman@gmail.com>
18 Tested-by: Eric Bohlman <ericbohlman@gmail.com>
19 Signed-off-by: Petr Štetiar <ynezz@true.cz>
20 Signed-off-by: Paul Burton <paul.burton@mips.com>
21 ---
22 arch/mips/bcm47xx/workarounds.c | 1 +
23 1 file changed, 1 insertion(+)
24
25 diff --git a/arch/mips/bcm47xx/workarounds.c b/arch/mips/bcm47xx/workarounds.c
26 index 46eddbe..0ab95dd 100644
27 --- a/arch/mips/bcm47xx/workarounds.c
28 +++ b/arch/mips/bcm47xx/workarounds.c
29 @@ -24,6 +24,7 @@ void __init bcm47xx_workarounds(void)
30 case BCM47XX_BOARD_NETGEAR_WNR3500L:
31 bcm47xx_workarounds_enable_usb_power(12);
32 break;
33 + case BCM47XX_BOARD_NETGEAR_WNDR3400V2:
34 case BCM47XX_BOARD_NETGEAR_WNDR3400_V3:
35 bcm47xx_workarounds_enable_usb_power(21);
36 break;
37 --
38 1.9.1
39