USB: MUSB: PHY: scrap singleton am335x_get_usb_phy()
am335x_get_usb_phy() retrieves the last probed USB phy. On the BeagleBone
with both PHYs enabled, this means that dependent on probe order, both
MUSB instances could end up with the same PHY.

Remove the global variable and have the MUSB driver parse the "phys"
property instead.

The cleaner way to achieve this would be to migrate phy-am335x.c
and phy-am335x-control.c to the generic phy framework and have MUSB use
of_phy_get, alas, even Linux hasn't done this so far and we need
a short patch for master anyway, thus just do it the easy way.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1a26c1d commit adf29dfec0d5d60103b89a7144aefa776205996d
@Ahmad Fatoum Ahmad Fatoum authored on 25 Feb 2020
Sascha Hauer committed on 2 Mar 2020
Showing 3 changed files
View
drivers/usb/musb/musb_dsps.c
View
drivers/usb/musb/phy-am335x.c
View
drivers/usb/musb/phy-am335x.h 100644 → 0