phy: sun4i-usb: add support for missing USB PHY index
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 4 Oct 2018 12:28:47 +0000 (20:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:03 +0000 (19:46 +0100)
commit6d1709b73d6b4da752e86c207bd7016daede0fa0
treeb07ae9c8d4c99ff9fe0f09abb4ec012165472d4a
parent8e6df638f192fb96a9130a4c6fe34efd2b69fd88
phy: sun4i-usb: add support for missing USB PHY index

[ Upstream commit 2659392e5c08dff626e6db1d739adff58a94604d ]

The new Allwinner H6 SoC's USB2 PHY has two holes -- USB1 (which is a
3.0 port with dedicated PHY) and USB2 (which doesn't exist at all).

Add support for this kind of missing USB PHY index.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/allwinner/phy-sun4i-usb.c