diff options
| author | Alan Stern <stern@rowland.harvard.edu> | 2018-08-10 15:32:25 -0400 |
|---|---|---|
| committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-10-02 10:44:11 +0300 |
| commit | 0a55187a1ec8c03d0619e7ce41d10fdc39cff036 (patch) | |
| tree | 64f9a84cb4712b6a6f949456f63767f7cbf411d9 /tools/perf/scripts/python | |
| parent | usb: dwc3: Fix spelling of 'optimizations' (diff) | |
| download | linux-0a55187a1ec8c03d0619e7ce41d10fdc39cff036.tar.gz linux-0a55187a1ec8c03d0619e7ce41d10fdc39cff036.zip | |
USB: gadget core: Issue ->disconnect() callback from usb_gadget_disconnect()
The gadget documentation doesn't state clearly whether a gadget
driver's ->disconnect() callback should be invoked when the D+ pullup
is turned off. Some UDC drivers do this and some don't. This patch
settles the issue by making the core function usb_gadget_disconnect()
issue the callback, so that UDC drivers don't need to worry about it.
A description of the new behavior is added to the function's
kerneldoc. Also, the patch removes a few superseded callbacks from
other core routines.
Future patches will remove the ->disconnect() calls from the UDC
drivers that make them, as they are now unnecessary. Until all those
patches are merged gadget drivers may receive extra ->disconnect()
callbacks, but this should be harmless.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
