OpenCloudOS-Kernel/include/linux/soundwire
Lucas Tanure 12a95123bf 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 <tanureal@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230804104602.395892-2-ckeepax@opensource.cirrus.com
Signed-off-by: Lee Jones <lee@kernel.org>
2023-08-17 12:06:11 +01:00
..
sdw.h soundwire: bus: Allow SoundWire peripherals to register IRQ handlers 2023-08-17 12:06:11 +01:00
sdw_amd.h soundwire: amd: add runtime pm ops for AMD SoundWire manager driver 2023-04-12 15:30:36 +05:30
sdw_intel.h soundwire: intel: use substream for .free callback 2023-05-27 16:06:47 +05:30
sdw_registers.h Char / Misc driver updates for 5.11-rc1 2020-12-15 14:10:09 -08:00
sdw_type.h driver core: make struct device_type.uevent() take a const * 2023-01-27 13:45:36 +01:00