diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2018-03-23 13:44:06 +1100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-03-23 09:51:43 +0200 |
commit | aaeab02ddcc830e31c33cdb72a3c117b2d499ae2 (patch) | |
tree | b18844fb0d090abf753ad32777dcb496a4f0412b /drivers/gpu/drm/amd/display/dc/dce112 | |
parent | 2f710c1bb666ffd68ed44db190238d4660766f2d (diff) | |
download | blackbird-op-linux-aaeab02ddcc830e31c33cdb72a3c117b2d499ae2.tar.gz blackbird-op-linux-aaeab02ddcc830e31c33cdb72a3c117b2d499ae2.zip |
usb/gadget: Add an EP dispose() callback for EP lifetime tracking
Some UDC may want to allocate endpoints dynamically, either because
the HW supports an arbitrary large number or because (like the Aspeed
BMC SoCs), the pool of HW endpoints is shared between multiple gadgets.
The allocation side can be done rather easily using the existing
match_ep() UDC hook.
However we have no good place to "free" them.
This implements a "simple" variant of this, which calls an EP dispose
callback on all EPs associated with a gadget when the composite device
gets unbound.
This is required by my upcoming Aspeed vHub driver.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dce112')
0 files changed, 0 insertions, 0 deletions