From: Keyon Jie Date: Fri, 21 May 2021 09:28:00 +0000 (+0300) Subject: ASoC: SOF: ops: print out the polling register X-Git-Tag: accepted/tizen/unified/20230118.172025~6638^2~25^2~144 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b2e93ed12381fa1c33169202f2cdffbb18157c4;p=platform%2Fkernel%2Flinux-rpi.git ASoC: SOF: ops: print out the polling register Print the register offset out to provide more useful information for the register polling debugging. Signed-off-by: Keyon Jie Reviewed-by: Guennadi Liakhovetski Reviewed-by: Pierre-Louis Bossart Signed-off-by: Kai Vehmanen Link: https://lore.kernel.org/r/20210521092804.3721324-4-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/ops.h b/sound/soc/sof/ops.h index 323a0b3..2763059 100644 --- a/sound/soc/sof/ops.h +++ b/sound/soc/sof/ops.h @@ -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) \