usb: core: Try generic PHY_MODE_USB_HOST if usb_phy_roothub_set_mode fails
authorChen-Yu Tsai <wens@csie.org>
Fri, 22 Mar 2019 08:51:08 +0000 (16:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Mar 2019 07:48:55 +0000 (16:48 +0900)
commite671765e521c571afec3157a7e17502d54f6a43e
treeb1753d9c85874ff4d2f287e2ff42310bed590cd2
parent1396929e8a903db80425343cacca766a18ad6409
usb: core: Try generic PHY_MODE_USB_HOST if usb_phy_roothub_set_mode fails

Some PHYs do not support PHY_MODE_USB_HOST_SS, i.e. USB 3.0 or higher.
Fall back and try the more generic PHY_MODE_USB_HOST if it fails.

Fixes: b97a31348379 ("usb: core: comply to PHY framework")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Tested-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c