MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3
authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Sun, 19 Aug 2018 19:20:23 +0000 (22:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 16:59:44 +0000 (17:59 +0100)
commit983a2c0e4c9dbe9b7b2439186a5e153b0190ff78
tree1fd1c1ee8628df030c5be22d03741e773dba05af
parent9670ba2575378fdf820057626d79167182ae1eb8
MIPS: BCM47XX: Enable USB power on Netgear WNDR3400v3

[ Upstream commit feef7918667b84f9d5653c501542dd8d84ae32af ]

Setting GPIO 21 high seems to be required to enable power to USB ports
on the WNDR3400v3. As there is already similar code for WNR3500L,
make the existing USB power GPIO code generic and use that.

Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20259/
Cc: Rafał Miłecki <zajec5@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/bcm47xx/workarounds.c