Skip to content

Commit

Permalink
dwc3: disable phy suspend and runtime pm
Browse files Browse the repository at this point in the history
RPL platform dwc3 need disable phy suspend
feature otherwise it will enter suspend state
during udc function switch.

Test Done:
  Use script to perform adb reboot, adb wait-for-device
  and adb root 100 times. Adb device is not lost.

Tracked-On: OAM-121175
Signed-off-by: Alek Du <[email protected]>
Signed-off-by: Qi Zhang <[email protected]>
  • Loading branch information
qizhangz committed Jun 27, 2024
1 parent 9ea4d16 commit 05a079f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/usb/dwc3/dwc3-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ static const struct property_entry dwc3_pci_intel_properties[] = {
PROPERTY_ENTRY_STRING("dr_mode", "peripheral"),
PROPERTY_ENTRY_BOOL("linux,sysdev_is_parent"),
PROPERTY_ENTRY_BOOL("snps,usb2-gadget-lpm-disable"),
PROPERTY_ENTRY_BOOL("snps,dis_u3_susphy_quirk"),
PROPERTY_ENTRY_BOOL("snps,dis_u2_susphy_quirk"),
{}
};

Expand Down Expand Up @@ -328,7 +330,7 @@ static int dwc3_pci_probe(struct pci_dev *pci, const struct pci_device_id *id)
goto err;
}

device_init_wakeup(dev, true);
device_init_wakeup(dev, false);
pci_set_drvdata(pci, dwc);
pm_runtime_put(dev);
#ifdef CONFIG_PM
Expand Down

0 comments on commit 05a079f

Please sign in to comment.