mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
soundwire: bus: demote UNATTACHED state warnings to dev_dbg()
[ Upstream commit2c96956fe7] The dev_warn() messages in sdw_handle_slave_status() for UNATTACHED transitions were added in commitd1b3285570("soundwire: bus: add dev_warn() messages to track UNATTACHED devices") to debug attachment failures with dynamic debug enabled. These warnings fire during normal operation -- for example when a codec driver triggers a hardware reset after firmware download, causing the device to momentarily go UNATTACHED before re-attaching -- producing misleading noise on every boot. Demote the messages to dev_dbg() so they remain available via dynamic debug for diagnosing real attachment failures without alarming users during expected initialization sequences. Fixes:d1b3285570("soundwire: bus: add dev_warn() messages to track UNATTACHED devices") Signed-off-by: Cole Leavitt <cole@unwrap.rs> Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20260218180210.9263-1-cole@unwrap.rs Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4f1f8df761
commit
8cd48ca82e
@@ -1815,8 +1815,8 @@ int sdw_handle_slave_status(struct sdw_bus *bus,
|
||||
|
||||
if (status[i] == SDW_SLAVE_UNATTACHED &&
|
||||
slave->status != SDW_SLAVE_UNATTACHED) {
|
||||
dev_warn(&slave->dev, "Slave %d state check1: UNATTACHED, status was %d\n",
|
||||
i, slave->status);
|
||||
dev_dbg(&slave->dev, "Slave %d state check1: UNATTACHED, status was %d\n",
|
||||
i, slave->status);
|
||||
sdw_modify_slave_status(slave, SDW_SLAVE_UNATTACHED);
|
||||
|
||||
/* Ensure driver knows that peripheral unattached */
|
||||
@@ -1867,8 +1867,8 @@ int sdw_handle_slave_status(struct sdw_bus *bus,
|
||||
if (slave->status == SDW_SLAVE_UNATTACHED)
|
||||
break;
|
||||
|
||||
dev_warn(&slave->dev, "Slave %d state check2: UNATTACHED, status was %d\n",
|
||||
i, slave->status);
|
||||
dev_dbg(&slave->dev, "Slave %d state check2: UNATTACHED, status was %d\n",
|
||||
i, slave->status);
|
||||
|
||||
sdw_modify_slave_status(slave, SDW_SLAVE_UNATTACHED);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user