soundwire: bandwidth allocation: improve error messages
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 11 May 2021 05:49:45 +0000 (13:49 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 May 2021 12:04:07 +0000 (17:34 +0530)
commit0531e6b60569c71a34a9c5eb9bfbb1559b661cd8
tree81f5c186a5b07222959580c37df548d1e8c60fd3
parent9c294739cf5bdb6c613f23dff099e44ac9d722a4
soundwire: bandwidth allocation: improve error messages

In rare corner cases, we see an error with the log:

[  838.297840] soundwire sdw-master-1: Compute bus params failed: -22

That's not very useful, there can be two different error conditions
with the same -EINVAL code provided to the caller.

Let's add better dev_err() messages to figure out what went wrong.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20210511054945.29558-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/generic_bandwidth_allocation.c