diff options
| author | Mark Brown <broonie@kernel.org> | 2026-01-06 18:02:05 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-01-06 18:02:05 +0000 |
| commit | f33db67d914a80ec449579dddc41804857c9400d (patch) | |
| tree | c1d467fa39efde347ea27a9ffccfdb4be9962aab /drivers/tty/serial/sh-sci.c | |
| parent | fd9a14d233fbf33488cfa0cb7f59051b3233b017 (diff) | |
| parent | 46a16d89d097ac2c93b63382a37d60aa7f21dc71 (diff) | |
| download | linux-next-f33db67d914a80ec449579dddc41804857c9400d.tar.gz linux-next-f33db67d914a80ec449579dddc41804857c9400d.zip | |
ASoC: codecs: wsa88xx: fix codec initialisation
Merge series from Johan Hovold <johan@kernel.org>:
The soundwire update_status() callback may be called multiple times with
the same ATTACHED status but initialisation should only be done when
transitioning from UNATTACHED to ATTACHED.
This series fixes the Qualcomm wsa88xx codec drivers that do unnecessary
reinitialisation or potentially fail to initialise at all.
Included is also a related clean up suppressing a related codec variant
printk.
Diffstat (limited to 'drivers/tty/serial/sh-sci.c')
| -rw-r--r-- | drivers/tty/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 53edbf1d8963..fbfe5575bd3c 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1914,7 +1914,7 @@ static void sci_dma_check_tx_occurred(struct sci_port *s) struct dma_tx_state state; enum dma_status status; - if (!s->chan_tx) + if (!s->chan_tx || s->cookie_tx <= 0) return; status = dmaengine_tx_status(s->chan_tx, s->cookie_tx, &state); |
