phy: sun4i-usb: add support for missing USB PHY index
commit87888d7b1f6640bce73baac4fe410fcc19aca95f
authorIcenowy Zheng <icenowy@aosc.io>
Thu, 4 Oct 2018 12:28:47 +0000 (4 20:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:18 +0000 (12 20:02 +0100)
tree4e11b01a5e5cf3560a381caac265253f6bb62e3b
parent8fcd2eb827e14b49785db87ec704f6a8e08a6c2c
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