]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad91427258bdbae2a94d4eb384901607ab5695a1
treecec7cf8bd69f400de0fbdb76e6a43759a154d446
parent58c426240fea26ad02c8d3ffd28858feb39163c0
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