linux/drivers/usb/common
Hans de Goede ce15ed4c5d USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block
Some SoCs have a single phy-hw-block with multiple phys, this is
modelled by a single phy dts node, so we end up with multiple
controller nodes with a phys property pointing to the phy-node
of the otg-phy.

Only one of these controllers typically is an otg controller, yet we
were checking the first controller who uses a phy from the block and
then end up looking for a dr_mode property in e.g. the ehci controller.

This commit fixes this by adding an arg0 parameter to
of_usb_get_dr_mode_by_phy and make of_usb_get_dr_mode_by_phy
check that this matches the phandle args[0] value when looking for
the otg controller.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
2016-06-21 10:52:39 +03:00
..
common.c USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block 2016-06-21 10:52:39 +03:00
led.c usb: Add LED triggers for USB activity 2014-09-25 17:05:12 +02:00
Makefile usb: add bus type for USB ULPI 2015-05-13 12:04:55 -05:00
ulpi.c usb: ulpi: ulpi_init should be executed in subsys_initcall 2015-07-20 12:57:46 -05:00
usb-otg-fsm.c usb: otg-fsm: support multiple instances 2016-04-06 17:15:03 +08:00