summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/sh-sci.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2026-01-06 18:02:05 +0000
committerMark Brown <broonie@kernel.org>2026-01-06 18:02:05 +0000
commitf33db67d914a80ec449579dddc41804857c9400d (patch)
treec1d467fa39efde347ea27a9ffccfdb4be9962aab /drivers/tty/serial/sh-sci.c
parentfd9a14d233fbf33488cfa0cb7f59051b3233b017 (diff)
parent46a16d89d097ac2c93b63382a37d60aa7f21dc71 (diff)
downloadlinux-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.c2
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);