Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

slimbus: qcom-ngd-ctrl: check for device runtime PM status during ISR

Slimbus core interrupt is getting fired after suspend. At this point
ADSP slimbus hardware is off with gated clocks which is leading to an
unclocked access when HLOS slimbus tried to read the interrupt
status register in the ISR.

Co-developed-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221118065246.6835-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Krzysztof Kozlowski and committed by
Greg Kroah-Hartman
97e1a530 ce9c0b06

+8 -1
+8 -1
drivers/slimbus/qcom-ngd-ctrl.c
··· 763 763 { 764 764 struct qcom_slim_ngd_ctrl *ctrl = d; 765 765 void __iomem *base = ctrl->ngd->base; 766 - u32 stat = readl(base + NGD_INT_STAT); 766 + u32 stat; 767 + 768 + if (pm_runtime_suspended(ctrl->ctrl.dev)) { 769 + dev_warn_once(ctrl->dev, "Interrupt received while suspended\n"); 770 + return IRQ_NONE; 771 + } 772 + 773 + stat = readl(base + NGD_INT_STAT); 767 774 768 775 if ((stat & NGD_INT_MSG_BUF_CONTE) || 769 776 (stat & NGD_INT_MSG_TX_INVAL) || (stat & NGD_INT_DEV_ERR) ||