]> git.baikalelectronics.ru Git - kernel.git/commit
soundwire: bus: clarify dev_err/dbg device references
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 22 Jan 2021 07:06:34 +0000 (15:06 +0800)
committerVinod Koul <vkoul@kernel.org>
Sun, 7 Feb 2021 12:19:17 +0000 (17:49 +0530)
commit891818db694a8d3551f269e99e7eb8910b66f807
tree1f461f30b653fd205e5860161135de75f331254c
parent76522405fe998878c9d2e5b44dac3b6502c11072
soundwire: bus: clarify dev_err/dbg device references

The SoundWire bus code confuses bus and Slave device levels for
dev_err/dbg logs. That's not impacting functionality but the accuracy
of kernel logs.

We should only use bus->dev for bus-level operations and handling of
Device0. For all other logs where the device number is not zero, we
should use &slave->dev to provide more precisions to the
user/integrator.

Reported-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20210122070634.12825-10-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c