usb: allow to supply the PHY in the drivers when using HCD
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Thu, 30 Oct 2014 17:41:16 +0000 (18:41 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:02:50 +0000 (10:02 -0600)
commitef44cb4226d132146e44f8ea562a16b27ff61126
treecec7cf8bd69f400de0fbdb76e6a43759a154d446
parent48bcc18076df4e07ef86226ac6ce795f64c84f7f
usb: allow to supply the PHY in the drivers when using HCD

This patch modify the generic code handling PHYs to allow them to be
supplied from the drivers. This adds checks to ensure no PHY was already
there when looking for one in the generic code. This also makes sure we
do not modify its state in the generic HCD functions, it was provided by
the driver.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/chipidea/ci.h
drivers/usb/chipidea/ci_hdrc_imx.c
drivers/usb/chipidea/ci_hdrc_msm.c
drivers/usb/chipidea/core.c
drivers/usb/chipidea/debug.c
drivers/usb/chipidea/host.c
drivers/usb/chipidea/otg_fsm.c
drivers/usb/chipidea/udc.c
drivers/usb/core/hcd.c
include/linux/usb/chipidea.h