diff options
| author | Thinh Nguyen <[email protected]> | 2021-01-11 12:38:05 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-01-12 12:50:20 +0100 |
| commit | 49d08cfc7830440517216b6d51bd0c38b5314c7f (patch) | |
| tree | 4cfcca3a911490241ed2ce906731cef6a564e762 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | babbdfc9d2297b641ba8c91de1655673507736e4 (diff) | |
usb: udc: core: Introduce started state
For some UDCs, the initialization sequence by udc_start() should not be
repeated until it is properly cleaned up with udc_stop() and vise versa.
We may run into some cleanup failure as seen with the DWC3 driver during
the irq cleanup. This issue can occur when the user triggers
soft-connect/soft-disconnect from the soft_connect sysfs. To avoid
adding checks to every UDC driver, at the UDC framework, introduce a
"started" state to track and prevent the UDC from repeating the
udc_start() and udc_stop() if it had already started/stopped.
Acked-by: Felipe Balbi <[email protected]>
Signed-off-by: Thinh Nguyen <[email protected]>
Link: https://lore.kernel.org/r/a7c4112fcd4dc2f0169af94a24f5685ca77f09fd.1610395599.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions