mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
soundwire: bus: demote UNATTACHED state warnings to dev_dbg()
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>
This commit is contained in:
parent
fee12f3c20
commit
2c96956fe7
|
|
@ -1899,8 +1899,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 */
|
||||
|
|
@ -1951,8 +1951,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user