diff options
author | Pierre-Louis Bossart <[email protected]> | 2023-05-15 15:10:35 +0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-05-27 16:06:46 +0530 |
commit | 6bac0d8d1b4c2dd0fc90b64451ffb88a206adda0 (patch) | |
tree | 6d09c615ec17142f0dc83ae1fb675b4a47f83d8c /drivers/usb/cdns3/cdns3-debug.h | |
parent | 7ba18639a9f00eab530b10e417fffccdbeb9418f (diff) |
soundwire: bus: add new manager callback to deal with peripheral enumeration
When a peripheral reports as ATTACHED, the manager may need to follow
a programming sequence, e.g. to assign DMA resources and/or assign a
command queue for that peripheral.
This patch adds an optional callback, which will be invoked every time
the peripheral attaches. This might be overkill in some scenarios, and
one could argue that this should be invoked only on the first
attachment. The bus does not however track this first attachment with
any existing state-mirroring variable, and using dev_num_sticky would
not work across suspend-resume cycles.
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Reviewed-by: Péter Ujfalusi <[email protected]>
Reviewed-by: Ranjani Sridharan <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions