Add SDCA UMP/FDL support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest posting 2/219 patches 4 repliesIn review
- v3 posting 1/219 patches 1 replySuperseded
- v20 of 20 patches 3 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 15 patches | 34 replies | Superseded |
Changes in v3 from the cover letter
- Add mutex to lock between UMP timeout work and IRQ handlers
- Clean up UMP timeout work after FDL fails
- Use IRQ number rather than a boolean to track used IRQs
- Reduce FDL retries to 6
- Check disk size of firmwares
- Reset on more FDL failure paths
- Reorder volatile control check by entity
Patches in v3 posting 2/2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | ASoC: SDCA: Rename SoundWire struct device variablessound/ sound/ | +10 | 0 replies | |
| 2/19 | regmap: sdw-mbq: Don't assume the regmap device is the SoundWire slavedrivers/ include/ sound/ | +26 | 0 replies | |
| 3/19 | ASoC: SDCA: Add manual PM runtime gets to IRQ handlerssound/ | +32 | 0 replies | |
| 4/19 | ASoC: SDCA: Pass SoundWire slave to HIDinclude/ include/ sound/ +1 more | +24 | 0 replies | |
| 5/19 | ASoC: SDCA: Pass device register map from IRQ alloc to handlersinclude/ sound/ | +6 | 0 replies | |
| 6/19 | ASoC: SDCA: Update externally_requested flag to cover all requestsinclude/ sound/ | +7 | 0 replies | |
| 7/19 | ASoC: SDCA: Factor out a helper to find SDCA IRQ datasound/ | +22 | 0 replies | |
| 8/19 | ASoC: SDCA: Rely less on the ASoC component in IRQ handlinginclude/ sound/ | +31 | 0 replies | |
| 9/19 | ASoC: SDCA: Force some SDCA Controls to be volatileinclude/ sound/ sound/ | +60 | 0 replies | |
| 10/19 | ASoC: SDCA: Parse XU Entity propertiesinclude/ sound/ | +48 | 0 replies | |
| 11/19 | ASoC: SDCA: Parse Function Reset max delayinclude/ sound/ | +11 | 0 replies | |
| 12/19 | ASoC: SDCA: Add UMP buffer helper functionsinclude/ include/ sound/ +1 more | +320 | 0 replies | |
| 13/19 | ASoC: SDCA: Add SDCA FDL data parsinginclude/ include/ sound/ +1 more | +158 | 0 replies | |
| 14/19 | ASoC: SDCA: Add FDL library for XU entitiesinclude/ include/ sound/ +2 more | +467 | 2 replies | |
| 15/19 | ASoC: SDCA: Add FDL-specific IRQ processingsound/ | +34 | 0 replies | |
| 16/19 | ASoC: SDCA: Add completion for FDL start and stopinclude/ sound/ | +85 | 0 replies | |
| 17/19 | ASoC: SDCA: Add UMP timeout handling for FDLinclude/ include/ sound/ +1 more | +76 | 0 replies | |
| 18/19 | ASoC: SDCA: Add early IRQ handlinginclude/ sound/ | +74 | 0 replies | |
| 19/19 | ASoC: SDCA: Add HID button IRQinclude/ sound/ sound/ | +85 | 0 replies |
Reviews trailers per patch
All 19 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Bard Liao | Pierre-Louis Bossart |
|---|---|---|
| Series | R-b | |
| 1/19 | R-b | |
| 2/19 | R-b | |
| 3/19 | R-b | |
| 4/19 | R-b | |
| 5/19 | R-b | |
| 6/19 | R-b | |
| 7/19 | R-b | |
| 8/19 | R-b | |
| 9/19 | R-b | |
| 10/19 | R-b | |
| 11/19 | R-b | |
| 12/19 | R-b | |
| 13/19 | R-b | |
| 14/19 | R-b | |
| 15/19 | R-b | |
| 16/19 | R-b | |
| 17/19 | R-b | |
| 18/19 | R-b | |
| 19/19 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 RESEND 00/19] Add SDCA UMP/FDL support
Next installment of the SDCA changes, hopefully the next series after this should be the full class driver. It is worth noting this series has a build dependency on a patch working its way through the PM/ACPI tree:
commit ac46f5b6c661 ("ACPICA: Add SoundWire File Table (SWFT) signature")git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
But we can probably worry about that later, as normally there is a reasonable amount of review on these SDCA series'.
This series broadly breaks down into 3 chunks, first there are several changes to remove the assumption that the struct device used for SDCA purposes represents the SoundWire slave. This is because the SDCA class driver will be made of an auxiliary driver for each SDCA Function, thus the SoundWire slave will be on the parent device for each individual driver. Then there are patches to add support for UMP/FDL. And then finally since the rest of the HID support is there and UMP was the last missing part required a small patch to add a function to allow reporting of HID events from SDCA devices.
Thanks,
Charles
Changes since v2:
- Add mutex to lock between UMP timeout work and IRQ handlers
- Clean up UMP timeout work after FDL fails
- Use IRQ number rather than a boolean to track used IRQs
- Reduce FDL retries to 6
- Check disk size of firmwares
- Reset on more FDL failure paths
- Reorder volatile control check by entity
Changes since v1:
- Add timeout for UMP buffer transfers
- Add function reset
- Parse XU properties from DisCo
- Rename entity_xu library to FDL
- Add a limit to the number of times it will try the FDL process
- Rename soundwire device pointers to sdev to distinguish from Function devices pointers
Charles Keepax (16):
ASoC: SDCA: Rename SoundWire struct device variables
regmap: sdw-mbq: Don't assume the regmap device is the SoundWire slave
ASoC: SDCA: Add manual PM runtime gets to IRQ handlers
ASoC: SDCA: Pass SoundWire slave to HID
ASoC: SDCA: Pass device register map from IRQ alloc to handlers
ASoC: SDCA: Update externally_requested flag to cover all requests
ASoC: SDCA: Factor out a helper to find SDCA IRQ data
ASoC: SDCA: Rely less on the ASoC component in IRQ handling
ASoC: SDCA: Force some SDCA Controls to be volatile
ASoC: SDCA: Parse XU Entity properties
ASoC: SDCA: Parse Function Reset max delay
ASoC: SDCA: Add UMP buffer helper functions
ASoC: SDCA: Add completion for FDL start and stop
ASoC: SDCA: Add UMP timeout handling for FDL
ASoC: SDCA: Add early IRQ handling
ASoC: SDCA: Add HID button IRQ
Maciej Strozek (3):
ASoC: SDCA: Add SDCA FDL data parsing
ASoC: SDCA: Add FDL library for XU entities
ASoC: SDCA: Add FDL-specific IRQ processing
drivers/base/regmap/regmap-sdw-mbq.c | 23 +- include/linux/regmap.h | 21 +- include/sound/sdca.h | 5 + include/sound/sdca_fdl.h | 75 ++++ include/sound/sdca_function.h | 119 ++++++- include/sound/sdca_hid.h | 21 +- include/sound/sdca_interrupts.h | 19 +- include/sound/sdca_ump.h | 50 +++ sound/soc/codecs/rt722-sdca-sdw.c | 4 +- sound/soc/sdca/Kconfig | 8 + sound/soc/sdca/Makefile | 4 +- sound/soc/sdca/sdca_device.c | 20 ++ sound/soc/sdca/sdca_fdl.c | 499 +++++++++++++++++++++++++++ sound/soc/sdca/sdca_functions.c | 212 +++++++++++- sound/soc/sdca/sdca_hid.c | 58 +++- sound/soc/sdca/sdca_interrupts.c | 271 ++++++++++++--- sound/soc/sdca/sdca_regmap.c | 9 +- sound/soc/sdca/sdca_ump.c | 262 ++++++++++++++ 18 files changed, 1573 insertions(+), 107 deletions(-) create mode 100644 include/sound/sdca_fdl.h create mode 100644 include/sound/sdca_ump.h create mode 100644 sound/soc/sdca/sdca_fdl.c create mode 100644 sound/soc/sdca/sdca_ump.c
Signature · 1 line
2.47.3