soundwire: Fixes for spurious and missing UNATTACH
Status from this message: Applied, thanks
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest5 patches 1 replyApplied
- v35 patches 4 repliesSuperseded
- v25 patches 8 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 3 patches | 8 replies | Superseded |
Changes in v4 from the cover letter
Fixed minor comment typo in patch #4.
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | soundwire: cadence: fix updating slave status when a bus has multiple peripheralsdrivers/ | +25 | 0 replies | |
| 2/5 | soundwire: bus: Don't lose unattach notificationsdrivers/ | +5 | 0 replies | |
| 3/5 | soundwire: bus: Don't re-enumerate before status is UNATTACHEDdrivers/ | +10 | 0 replies | |
| 4/5 | soundwire: cadence: Fix lost ATTACHED interrupts when enumeratingdrivers/ | +19 | 0 replies | |
| 5/5 | soundwire: bus: Don't exit early if no device IDs were programmeddrivers/ | +21 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Pierre-Louis Bossart |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v4 0/5] soundwire: Fixes for spurious and missing UNATTACH
The bus and cadence code has several bugs that cause UNATTACH notifications to either be sent spuriously or to be missed.
These can be seen occasionally with a single peripheral on the bus, but are much more frequent with multiple peripherals, where several peripherals could change state and report in consecutive PINGs.
The root of all of these bugs seems to be a code design flaw that assumed every PING status change would be handled separately. However, PINGs are handled by a workqueue function and there is no guarantee when that function will be scheduled to run or how much CPU time it will receive. PINGs will continue while the work function is handling a snapshot of a previous PING so the code must take account that (a) status could change during the work function and (b) there can be a backlog of changes before the IRQ work function runs again.
Tested with 4 peripherals on 1 bus, and 8 peripherals on 2 buses.
CHANGES SINCE V3:
Fixed minor comment typo in patch #4.
Richard Fitzgerald (4):
soundwire: bus: Don't lose unattach notifications
soundwire: bus: Don't re-enumerate before status is UNATTACHED
soundwire: cadence: Fix lost ATTACHED interrupts when enumerating
soundwire: bus: Don't exit early if no device IDs were programmed
Simon Trimmer (1):
soundwire: cadence: fix updating slave status when a bus has multiple
peripherals
drivers/soundwire/bus.c | 44 +++++++++++++--- drivers/soundwire/cadence_master.c | 80 ++++++++++++++++-------------- 2 files changed, 80 insertions(+), 44 deletions(-)
Signature · 1 line
2.30.2