031-v5.1-mips-bcm47xx-Enable-USB-power-on-Netgear-WNDR3400v2.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From cdb8faa00e3fcdd0ad10add743516d616dc7d38e Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <[email protected]>
  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. Eric has reported on OpenWrt's bug tracking system[1], that he's not
  9. able to use USB devices on his WNDR3400v2 device after the boot, until
  10. he turns on GPIO #21 manually through sysfs.
  11. 1. https://bugs.openwrt.org/index.php?do=details&task_id=2170
  12. Cc: Rafał Miłecki <[email protected]>
  13. Cc: Hauke Mehrtens <[email protected]>
  14. Reported-by: Eric Bohlman <[email protected]>
  15. Tested-by: Eric Bohlman <[email protected]>
  16. Signed-off-by: Petr Štetiar <[email protected]>
  17. Signed-off-by: Paul Burton <[email protected]>
  18. ---
  19. arch/mips/bcm47xx/workarounds.c | 1 +
  20. 1 file changed, 1 insertion(+)
  21. --- a/arch/mips/bcm47xx/workarounds.c
  22. +++ b/arch/mips/bcm47xx/workarounds.c
  23. @@ -24,6 +24,7 @@ void __init bcm47xx_workarounds(void)
  24. case BCM47XX_BOARD_NETGEAR_WNR3500L:
  25. bcm47xx_workarounds_enable_usb_power(12);
  26. break;
  27. + case BCM47XX_BOARD_NETGEAR_WNDR3400V2:
  28. case BCM47XX_BOARD_NETGEAR_WNDR3400_V3:
  29. bcm47xx_workarounds_enable_usb_power(21);
  30. break;