mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
usb: dwc2: prevent core phy initialisation
The usb phys need to be controlled dynamically on some Rockchip SoCs. So set the new HCD flag which prevents USB core from trying to manage our phys. Change-Id: I2d1197f42fe49bc4e454954481f344256fddb557 Signed-off-by: Bin Yang <yangbin@rock-chips.com> Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
@@ -5239,6 +5239,13 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg)
|
||||
if (!IS_ERR_OR_NULL(hsotg->uphy))
|
||||
otg_set_host(hsotg->uphy->otg, &hcd->self);
|
||||
|
||||
/*
|
||||
* do not manage the PHY state in the HCD core, instead let the driver
|
||||
* handle this (for example if the PHY can only be turned on after a
|
||||
* specific event)
|
||||
*/
|
||||
hcd->skip_phy_initialization = 1;
|
||||
|
||||
/*
|
||||
* Finish generic HCD initialization and start the HCD. This function
|
||||
* allocates the DMA buffer pool, registers the USB bus, requests the
|
||||
|
||||
Reference in New Issue
Block a user