diff options
| author | Dan Williams <[email protected]> | 2014-06-17 23:16:32 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-06-18 00:04:39 +0000 |
| commit | e3d105055525d9ea9f8e9cb0db8237df3df1bb9f (patch) | |
| tree | 37448f1ac032726d1e290124734a6a7a067d095d /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | usb: quiet peer failure warning, disable poweroff (diff) | |
| download | kernel-e3d105055525d9ea9f8e9cb0db8237df3df1bb9f.tar.gz kernel-e3d105055525d9ea9f8e9cb0db8237df3df1bb9f.zip | |
usb: fix hub-port pm_runtime_enable() vs runtime pm transitions
Commit 9262c19d14c4 "usb: disable port power control if not supported in
wHubCharacteristics" gated enabling runtime pm for usb_port devices on
whether the parent hub supports power control, which causes a
regression. The port must still be allowed to carry out runtime pm
callbacks and receive a -EAGAIN or -EBUSY result. Otherwise the
usb_port device will transition to the pm error state and trigger the
same for the child usb_device.
Prior to the offending commit usb_hub_create_port_device() arranged for
runtime pm to be disabled is dev_pm_qos_expose_flags() failed. Instead,
force the default state of PM_QOS_FLAG_NO_POWER_OFF flag to be set prior
to enabling runtime pm. If that policy can not be set then fail
registration.
Report: http://marc.info/?l=linux-usb&m=140290586301336&w=2
Fixes: 9262c19d14c4 ("usb: disable port power control if not supported in wHubCharacteristics")
Reported-by: Bjørn Mork <[email protected]>
Reported-by: Alan Stern <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
