kernel_optimize_test/drivers/usb/phy
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
..
Kconfig usb: gadget: move gadget API functions to udc-core 2016-06-21 10:38:34 +03:00
Makefile usb: phy: Remove unused Renesas R-Car (Gen1) USB PHY driver 2015-12-15 09:12:41 -06:00
of.c
phy-ab8500-usb.c
phy-am335x-control.c usb: phy: phy-am335x: bypass first VBUS sensing for host-only mode 2015-12-16 10:07:25 -06:00
phy-am335x-control.h usb: phy: phy-am335x: bypass first VBUS sensing for host-only mode 2015-12-16 10:07:25 -06:00
phy-am335x.c USB: Fix of_usb_get_dr_mode_by_phy with a shared phy block 2016-06-21 10:52:39 +03:00
phy-fsl-usb.c
phy-fsl-usb.h
phy-generic.c usb: phy: generic: Handle late registration of gadget 2016-03-04 15:14:47 +02:00
phy-generic.h
phy-gpio-vbus-usb.c
phy-isp1301-omap.c usb: isp1301-omap: mark power_up as __maybe_unused 2016-03-04 15:14:30 +02:00
phy-isp1301.c
phy-keystone.c
phy-msm-usb.c usb: phy: msm: Trigger USB state detection work in DRD mode 2016-02-23 08:51:38 +02:00
phy-mv-usb.c
phy-mv-usb.h
phy-mxs-usb.c usb: phy: mxs: declare variable with initialized value 2016-02-03 19:57:41 +02:00
phy-omap-otg.c usb: phy: omap-otg: fix uninitialized pointer 2015-11-16 10:17:40 -06:00
phy-qcom-8x16-usb.c usb: phy: qcom: use PTR_ERR_OR_ZERO() 2016-04-14 09:24:38 +03:00
phy-tahvo.c
phy-tegra-usb.c usb: common: of_usb_get_dr_mode to usb_get_dr_mode 2015-09-27 10:54:31 -05:00
phy-twl6030-usb.c usb: phy: Check initial state for twl6030 2016-06-01 14:58:59 -07:00
phy-ulpi-viewport.c
phy-ulpi.c
phy.c