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:47:09 +0000 (19:47 +0100)
commite640039aeeff9a3af9741af73ddabcdcc23afc2f
tree580074dcc5e4c1b00ff0163c6b2c500f2f35bace
parentb5c21b7e31308c4204778268576bc4ca593f72ba
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