]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: fsl_xcvr: enable interrupt of cmdc status update
authorShengjiu Wang <shengjiu.wang@nxp.com>
Tue, 8 Oct 2024 06:27:52 +0000 (14:27 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 22 Oct 2024 16:55:43 +0000 (17:55 +0100)
This enables the interrupt to be asserted when there
is a change in Capabilities data structure / Latency
request of the CMDC Status register.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/1728368873-31379-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c
sound/soc/fsl/fsl_xcvr.h

index beede7344efd632ed464ca932a300f511dab90fc..9e24d6462c0173685faca4508c1fc1c60f59e191 100644 (file)
@@ -1265,6 +1265,10 @@ static irqreturn_t irq0_isr(int irq, void *devid)
                dev_dbg(dev, "DMA write request\n");
                isr_clr |= FSL_XCVR_IRQ_DMA_WR_REQ;
        }
+       if (isr & FSL_XCVR_IRQ_CMDC_STATUS_UPD) {
+               dev_dbg(dev, "CMDC status update\n");
+               isr_clr |= FSL_XCVR_IRQ_CMDC_STATUS_UPD;
+       }
 
        if (isr_clr) {
                regmap_write(regmap, FSL_XCVR_EXT_ISR_CLR, isr_clr);
index 882428592e1ad6876a6d9268be0f90ee8a9fb12f..ce27b13698e7ba54e8e4e22289d25529397b1049 100644 (file)
                                         FSL_XCVR_IRQ_MUTE | \
                                         FSL_XCVR_IRQ_FIFO_UOFL_ERR | \
                                         FSL_XCVR_IRQ_HOST_WAKEUP | \
+                                        FSL_XCVR_IRQ_CMDC_STATUS_UPD |\
                                         FSL_XCVR_IRQ_ARC_MODE)
 
 #define FSL_XCVR_ISR_CMDC_TX_EN                BIT(3)