OSDN Git Service

ASoC: SOF: Intel: hda: remove useless check on GCTL
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 24 Oct 2022 16:53:05 +0000 (11:53 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:18:03 +0000 (14:18 +0100)
Now that we always do a full reset, there's no point in checking if
the controller is always out-of-reset. This is always true by
construction.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20221024165310.246183-12-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-ctrl.c

index e333469..8a8b5f9 100644 (file)
@@ -214,13 +214,6 @@ int hda_dsp_ctrl_init_chip(struct snd_sof_dev *sdev)
        }
 
 #if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA)
-       /* check to see if controller is ready */
-       if (!snd_hdac_chip_readb(bus, GCTL)) {
-               dev_dbg(bus->dev, "controller not ready!\n");
-               ret = -EBUSY;
-               goto err;
-       }
-
        /* Accept unsolicited responses */
        snd_hdac_chip_updatel(bus, GCTL, AZX_GCTL_UNSOL, AZX_GCTL_UNSOL);