usb: host: xhci-plat: forbid runtime pm conditionally
Subsystems (2)
PATCH RESEND 1/1 usb: host: xhci-plat: forbid runtime pm conditionally
Some users may want to enable runtime pm by default, using the quirk to judge it.
Reviewed-by Jun Li <[email protected]>
Reviewed-by Ran Wang <[email protected]>
Signed-off-by Peter Chen <[email protected]>
--- drivers/usb/host/xhci-plat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-plat.c +2 -1
@@ -355,7 +355,8 @@ static int xhci_plat_probe(struct platform_device *pdev)* Prevent runtime pm from being on as default, users should enable * runtime pm using power/control in sysfs. */ -pm_runtime_forbid (&pdev->dev); +if (!(xhci->quirks &XHCI_DEFAULT_PM_RUNTIME_ALLOW )) +pm_runtime_forbid (&pdev->dev);return 0 ;
Signature · 1 line
2.17.1