Patch "mailbox: imx: fix crash in resume on i.mx8ulp" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mailbox: imx: fix crash in resume on i.mx8ulp

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mailbox-imx-fix-crash-in-resume-on-i.mx8ulp.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 61408b0831e3d265655469083409fb98f6db1d96
Author: Robin Gong <yibin.gong@xxxxxxx>
Date:   Mon Feb 7 09:52:07 2022 +0800

    mailbox: imx: fix crash in resume on i.mx8ulp
    
    [ Upstream commit 8219efd08a0aa1d7944bdb66d84ba57549258968 ]
    
    check 'priv->clk' before 'imx_mu_read()' otherwise crash happens on
    i.mx8ulp, since clock not enabled.
    
    Fixes: 4f0b776ef5831 ("mailbox: imx-mailbox: support i.MX8ULP MU")
    Reviewed-by: Jacky Bai <ping.bai@xxxxxxx>
    Signed-off-by: Robin Gong <yibin.gong@xxxxxxx>
    Signed-off-by: Peng Fan <peng.fan@xxxxxxx>
    Signed-off-by: Jassi Brar <jaswinder.singh@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
index 0ce75c6b36b6..2aeef0bc6930 100644
--- a/drivers/mailbox/imx-mailbox.c
+++ b/drivers/mailbox/imx-mailbox.c
@@ -668,7 +668,7 @@ static int __maybe_unused imx_mu_resume_noirq(struct device *dev)
 	 * send failed, may lead to system freeze. This issue
 	 * is observed by testing freeze mode suspend.
 	 */
-	if (!imx_mu_read(priv, priv->dcfg->xCR[0]) && !priv->clk) {
+	if (!priv->clk && !imx_mu_read(priv, priv->dcfg->xCR[0])) {
 		for (i = 0; i < IMX_MU_xCR_MAX; i++)
 			imx_mu_write(priv, priv->xcr[i], priv->dcfg->xCR[i]);
 	}



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux