ASoC: SOF: ops: print out the polling register
authorKeyon Jie <yang.jie@linux.intel.com>
Fri, 21 May 2021 09:28:00 +0000 (12:28 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 May 2021 12:13:37 +0000 (13:13 +0100)
Print the register offset out to provide more useful information for the
register polling debugging.

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210521092804.3721324-4-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ops.h

index 323a0b3..2763059 100644 (file)
@@ -546,14 +546,16 @@ static inline const struct snd_sof_dsp_ops
                (val) = snd_sof_dsp_read(sdev, bar, offset);            \
                if (cond) { \
                        dev_dbg(sdev->dev, \
-                               "FW Poll Status: reg=%#x successful\n", (val)); \
+                               "FW Poll Status: reg[%#x]=%#x successful\n", \
+                               (offset), (val)); \
                        break; \
                } \
                if (__timeout_us && \
                    ktime_compare(ktime_get(), __timeout) > 0) { \
                        (val) = snd_sof_dsp_read(sdev, bar, offset); \
                        dev_dbg(sdev->dev, \
-                               "FW Poll Status: reg=%#x timedout\n", (val)); \
+                               "FW Poll Status: reg[%#x]=%#x timedout\n", \
+                               (offset), (val)); \
                        break; \
                } \
                if (__sleep_us) \