linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] soundwire: bus: handle errors in clock stop/start sequences
@ 2021-03-31  1:13 Bard Liao
  2021-03-31  1:13 ` [PATCH 1/2] soundwire: add macro to selectively change error levels Bard Liao
  2021-03-31  1:13 ` [PATCH 2/2] soundwire: bus: handle errors in clock stop/start sequences Bard Liao
  0 siblings, 2 replies; 11+ messages in thread
From: Bard Liao @ 2021-03-31  1:13 UTC (permalink / raw)
  To: alsa-devel, vkoul
  Cc: vinod.koul, linux-kernel, gregkh, srinivas.kandagatla,
	rander.wang, hui.wang, pierre-louis.bossart, sanyog.r.kale,
	bard.liao

If a device lost sync and can no longer ACK a command, it may not be
able to enter a lower-power state but it will still be able to resync
when the clock restarts. In those cases, we want to continue with the
clock stop sequence.

This patch modifies the behavior when -ENODATA is received, with the
error level demoted to a dev_dbg() since it's a recoverable issue.

For consistency the log messages are also modified to be unique and
self-explanatory, and missing logs are also added on clock stop exit.

Pierre-Louis Bossart (2):
  soundwire: add macro to selectively change error levels
  soundwire: bus: handle errors in clock stop/start sequences

 drivers/soundwire/bus.c | 70 +++++++++++++++++++----------------------
 drivers/soundwire/bus.h |  8 +++++
 2 files changed, 40 insertions(+), 38 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-04-01 22:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31  1:13 [PATCH 0/2] soundwire: bus: handle errors in clock stop/start sequences Bard Liao
2021-03-31  1:13 ` [PATCH 1/2] soundwire: add macro to selectively change error levels Bard Liao
2021-04-01  7:24   ` Vinod Koul
2021-04-01 14:30     ` Pierre-Louis Bossart
2021-04-01 16:46       ` Greg KH
2021-04-01 18:07         ` Pierre-Louis Bossart
2021-04-01 18:25           ` Greg KH
2021-04-01 18:43             ` Pierre-Louis Bossart
2021-04-01 20:56               ` Greg KH
2021-04-01 22:05                 ` Pierre-Louis Bossart
2021-03-31  1:13 ` [PATCH 2/2] soundwire: bus: handle errors in clock stop/start sequences Bard Liao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).