diff options
author | Pierre-Louis Bossart <[email protected]> | 2023-10-13 09:08:12 +0800 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-10-16 16:47:36 +0530 |
commit | ff435da4cc8b6137be9f0b6b4a9af095590d4b8c (patch) | |
tree | 6858bd152e5bc115a95d7e5167ecd2f8fbfd4674 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 95b0f3aa71eb09d067d89395fdb7f2dd87feae18 (diff) |
soundwire: bus: improve error handling for clock stop prepare/deprepare
The same logic is used for clock stop prepare and deprepare, and
having different logs for the two steps helps identify problems.
In addition, when the "NotFinished" bit remains set, the error
handling is not quite right:
a) for the clock stop prepare, the error is handled at the caller
level, and the error is ignored: there's no good reason to prevent the
pm_runtime suspend from happening. Throwing an error that is later
ignored is confusing.
b) for the clock stop deprepare, the error is ignored in bus.c and a
dev_warn() log shown. Throwing an error is also alarming users for no
good reason.
For both cases, demoting the error to dev_dbg() makes more sense.
Link: https://github.com/thesofproject/linux/issues/4619
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Rander Wang <[email protected]>
Reviewed-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions