]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: SOF: Intel: hda: print PCI class info only once
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 27 May 2024 19:39:36 +0000 (14:39 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 10:24:14 +0000 (11:24 +0100)
With the deferred probe mechanism used by the gfx/display subsystem,
we see this message repeated for no good reason. Print the information
only once.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://msgid.link/r/20240527193936.165702-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c

index e6a38de0a0aa103a6bf1694820a91d036d07f7c9..541c6052d4ed3026156008902044fdb1427e5730 100644 (file)
@@ -783,8 +783,8 @@ int hda_dsp_probe_early(struct snd_sof_dev *sdev)
                                pci->class);
                        return -ENODEV;
                }
-               dev_info(sdev->dev, "DSP detected with PCI class/subclass/prog-if 0x%06x\n",
-                        pci->class);
+               dev_info_once(sdev->dev, "DSP detected with PCI class/subclass/prog-if 0x%06x\n",
+                             pci->class);
        }
 
        chip = get_chip_info(sdev->pdata);