Patch "firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation" has been added to the 6.3-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 incorrect alloc_workqueue() invocation

to the 6.3-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-incorrect-alloc_workqueue-invo.patch
and it can be found in the queue-6.3 subdirectory.

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



commit 0cc6a7732b689ec06fb27189936e1c9d99147dd2
Author: Tejun Heo <tj@xxxxxxxxxx>
Date:   Thu Apr 20 09:33:49 2023 -1000

    firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation
    
    [ Upstream commit 44e8d5ad2dc01529eb1316b1521f24ac4aac8eaf ]
    
    scmi_xfer_raw_worker_init() is specifying a flag, WQ_SYSFS, as @max_active.
    Fix it by or'ing WQ_SYSFS into @flags so that it actually enables sysfs
    interface and using 0 for @max_active for the default setting.
    
    Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
    Fixes: 3c3d818a9317 ("firmware: arm_scmi: Add core raw transmission support")
    Link: https://lore.kernel.org/r/ZEGTnajiQm7mkkZS@xxxxxxxxxxxxxxx
    Signed-off-by: Sudeep Holla <sudeep.holla@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/firmware/arm_scmi/raw_mode.c b/drivers/firmware/arm_scmi/raw_mode.c
index d40df099fd515..6971dcf72fb99 100644
--- a/drivers/firmware/arm_scmi/raw_mode.c
+++ b/drivers/firmware/arm_scmi/raw_mode.c
@@ -1066,7 +1066,7 @@ static int scmi_xfer_raw_worker_init(struct scmi_raw_mode_info *raw)
 
 	raw->wait_wq = alloc_workqueue("scmi-raw-wait-wq-%d",
 				       WQ_UNBOUND | WQ_FREEZABLE |
-				       WQ_HIGHPRI, WQ_SYSFS, raw->id);
+				       WQ_HIGHPRI | WQ_SYSFS, 0, raw->id);
 	if (!raw->wait_wq)
 		return -ENOMEM;
 



[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