diff options
author | Lucas Tanure <[email protected]> | 2023-08-04 11:45:57 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2023-08-17 12:06:11 +0100 |
commit | 12a95123bfe1dd1a6020a35f5e67a560591bb02a (patch) | |
tree | f9347266d9b91e946be9ce51990aa5762e090083 /scripts/generate_rust_analyzer.py | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) |
soundwire: bus: Allow SoundWire peripherals to register IRQ handlers
Currently the in-band alerts for SoundWire peripherals can only
be communicated to the driver through the interrupt_callback
function. This however is slightly inconvenient for devices that wish
to share IRQ handling code between SoundWire and I2C/SPI, the later
would normally register an IRQ handler with the IRQ subsystem. However
there is no reason the SoundWire in-band IRQs can not also be
communicated as an actual IRQ to the driver.
Add support for SoundWire peripherals to register a normal IRQ
handler to receive SoundWire in-band alerts, allowing code to be
shared across control buses. Note that we allow users to use both the
interrupt_callback and the IRQ handler, this is useful for devices
which must clear additional chip specific SoundWire registers that are
not a part of the normal IRQ flow, or the SoundWire specification.
Signed-off-by: Lucas Tanure <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Acked-by: Bard Liao <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions