Patch "firmware: arm_scmi: Fix call site of scmi_notification_exit" has been added to the 5.10-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

    firmware: arm_scmi: Fix call site of scmi_notification_exit

to the 5.10-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:
     firmware-arm_scmi-fix-call-site-of-scmi_notification.patch
and it can be found in the queue-5.10 subdirectory.

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



commit 72e01dfac68cf4fe3d373c0d5c3e4e03e0f32da0
Author: Cristian Marussi <cristian.marussi@xxxxxxx>
Date:   Tue Jan 12 19:13:26 2021 +0000

    firmware: arm_scmi: Fix call site of scmi_notification_exit
    
    [ Upstream commit a90b6543bf062d65292b2c76f1630507d1c9d8ec ]
    
    Call scmi_notification_exit() only when SCMI platform driver instance has
    been really successfully removed.
    
    Link: https://lore.kernel.org/r/20210112191326.29091-1-cristian.marussi@xxxxxxx
    Fixes: 6b8a69131dc63 ("firmware: arm_scmi: Enable notification core")
    Signed-off-by: Cristian Marussi <cristian.marussi@xxxxxxx>
    [sudeep.holla: Move the call outside the list mutex locking]
    Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c
index 3dfd8b6a0ebf7..6b2ce3f28f7b9 100644
--- a/drivers/firmware/arm_scmi/driver.c
+++ b/drivers/firmware/arm_scmi/driver.c
@@ -847,8 +847,6 @@ static int scmi_remove(struct platform_device *pdev)
 	struct scmi_info *info = platform_get_drvdata(pdev);
 	struct idr *idr = &info->tx_idr;
 
-	scmi_notification_exit(&info->handle);
-
 	mutex_lock(&scmi_list_mutex);
 	if (info->users)
 		ret = -EBUSY;
@@ -859,6 +857,8 @@ static int scmi_remove(struct platform_device *pdev)
 	if (ret)
 		return ret;
 
+	scmi_notification_exit(&info->handle);
+
 	/* Safe to free channels since no more users */
 	ret = idr_for_each(idr, info->desc->ops->chan_free, idr);
 	idr_destroy(&info->tx_idr);



[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