ASoC: SOF: Intel: ipc: don't check for HIPCCTL register value
The HIPCCTL register controls the IPC interrupts. It can be set or cleared to mask or enable these interrupts, but it makes no sense to read and test its fields in an interrupt (which can only executed if its fields are set). Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:

committed by
Mark Brown

parent
66e65339b8
commit
09a173a63f
@@ -135,7 +135,6 @@ irqreturn_t hda_dsp_ipc_irq_thread(int irq, void *context)
|
||||
u32 hipcie;
|
||||
u32 hipct;
|
||||
u32 hipcte;
|
||||
u32 hipcctl;
|
||||
u32 msg;
|
||||
u32 msg_ext;
|
||||
bool ipc_irq = false;
|
||||
@@ -144,13 +143,11 @@ irqreturn_t hda_dsp_ipc_irq_thread(int irq, void *context)
|
||||
hipcie = snd_sof_dsp_read(sdev, HDA_DSP_BAR,
|
||||
HDA_DSP_REG_HIPCIE);
|
||||
hipct = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCT);
|
||||
hipcctl = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCCTL);
|
||||
hipci = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCI);
|
||||
hipcte = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_REG_HIPCTE);
|
||||
|
||||
/* is this a reply message from the DSP */
|
||||
if (hipcie & HDA_DSP_REG_HIPCIE_DONE &&
|
||||
hipcctl & HDA_DSP_REG_HIPCCTL_DONE) {
|
||||
if (hipcie & HDA_DSP_REG_HIPCIE_DONE) {
|
||||
msg = hipci & HDA_DSP_REG_HIPCI_MSG_MASK;
|
||||
msg_ext = hipcie & HDA_DSP_REG_HIPCIE_MSG_MASK;
|
||||
|
||||
@@ -196,8 +193,7 @@ irqreturn_t hda_dsp_ipc_irq_thread(int irq, void *context)
|
||||
}
|
||||
|
||||
/* is this a new message from DSP */
|
||||
if (hipct & HDA_DSP_REG_HIPCT_BUSY &&
|
||||
hipcctl & HDA_DSP_REG_HIPCCTL_BUSY) {
|
||||
if (hipct & HDA_DSP_REG_HIPCT_BUSY) {
|
||||
msg = hipct & HDA_DSP_REG_HIPCT_MSG_MASK;
|
||||
msg_ext = hipcte & HDA_DSP_REG_HIPCTE_MSG_MASK;
|
||||
|
||||
|
Reference in New Issue
Block a user