usb/host: To get "usb3-slow-suspend" property, then to set xhci quirks
Subsystems (2)
PATCH 1/1 usb/host: To get "usb3-slow-suspend" property, then to set xhci quirks
From: Surong Pang <[email protected]>
To set xhci->quirks value according to "usb3-slow-suspend" property
--- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/host/xhci-plat.c +3 -0
@@ -302,6 +302,9 @@ static int xhci_plat_probe(struct platform_device *pdev)if (device_property_read_bool (tmpdev,"usb3-lpm-capable" )) xhci->quirks |=XHCI_LPM_SUPPORT ; +if (device_property_read_bool (tmpdev,"usb3-slow-suspend" )) + xhci->quirks |=XHCI_SLOW_SUSPEND ; +if (device_property_read_bool (tmpdev,"quirk-broken-port-ped" )) xhci->quirks |=XHCI_BROKEN_PORT_PED ;
Signature · 1 line
2.17.1
Greg KH
maintainerQuoted 14 lines · Surong Pang
From: Surong Pang <[email protected]>
To set
xhci->quirksvalue according to "usb3-slow-suspend" propertySigned-off-by Surong Pang <[email protected]>--- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+)drivers/usb/host/xhci-plat.c +0
-0
drivers/usb/host/xhci-plat.c static int xhci_plat_probe(struct platform_device *pdev) · line 306
Quoted 5 lines
drivers/usb/host/xhci-plat.c +2
-0@@ -302,6 +302,9 @@ static int xhci_plat_probe(struct platform_device *pdev)if (device_property_read_bool (tmpdev,"usb3-lpm-capable" )) xhci->quirks |=XHCI_LPM_SUPPORT ; +if (device_property_read_bool (tmpdev,"usb3-slow-suspend" )) + xhci->quirks |=XHCI_SLOW_SUSPEND ;
Where is that property documented?
Greg KH
maintainerQuoted 14 lines · Surong Pang
From: Surong Pang <[email protected]>
To set
xhci->quirksvalue according to "usb3-slow-suspend" propertySigned-off-by Surong Pang <[email protected]>--- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+)drivers/usb/host/xhci-plat.c +0
-0
drivers/usb/host/xhci-plat.c static int xhci_plat_probe(struct platform_device *pdev) · line 306
Quoted 5 lines
drivers/usb/host/xhci-plat.c +2
-0@@ -302,6 +302,9 @@ static int xhci_plat_probe(struct platform_device *pdev)if (device_property_read_bool (tmpdev,"usb3-lpm-capable" )) xhci->quirks |=XHCI_LPM_SUPPORT ; +if (device_property_read_bool (tmpdev,"usb3-slow-suspend" )) + xhci->quirks |=XHCI_SLOW_SUSPEND ;
Device properties need to be documented somewhere.
We need to abandon this patch.
Quoted 24 lines · Greg KH <[email protected]> 于2022年4月22日周五 00:41写道:
Quoted 14 lines · Surong Pang
From: Surong Pang <[email protected]>
To set
xhci->quirksvalue according to "usb3-slow-suspend" propertySigned-off-by Surong Pang <[email protected]>--- drivers/usb/host/xhci-plat.c | 3 +++ 1 file changed, 3 insertions(+)drivers/usb/host/xhci-plat.c +0
-0drivers/usb/host/xhci-plat.c static int xhci_plat_probe(struct platform_device *pdev) · line 306
Quoted 5 lines
drivers/usb/host/xhci-plat.c +2
-0@@ -302,6 +302,9 @@ static int xhci_plat_probe(struct platform_device *pdev)if (device_property_read_bool (tmpdev,"usb3-lpm-capable" )) xhci->quirks |=XHCI_LPM_SUPPORT ; +if (device_property_read_bool (tmpdev,"usb3-slow-suspend" )) + xhci->quirks |=XHCI_SLOW_SUSPEND ;Device properties need to be documented somewhere.