firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation
PATCH 1/1 firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation
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.
--- drivers/firmware/arm_scmi/raw_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/arm_scmi/raw_mode.c +1 -1
@@ -1066,7 +1066,7 @@ static int scmi_xfer_raw_worker_init(str 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 ;
Cristian Marussi
reviewerQuoted 4 lines · Tejun Heo
scmi_xfer_raw_worker_init()is specifying a flag,WQ_SYSFS, as @max_active. Fix it by or'ingWQ_SYSFSinto @flags so that it actually enables sysfs interface and using 0 for @max_active for the default setting.
Hi Tejun,
my bad I messed up the params in the call.
LGTM.
Thanks,
Cristian
Quoted 8 lines
Signed-off-by Tejun Heo <[email protected]>--- drivers/firmware/arm_scmi/raw_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/arm_scmi/raw_mode.c static int scmi_xfer_raw_worker_init(str · line 1072
Quoted 8 lines
drivers/firmware/arm_scmi/raw_mode.c +1
-1@@ -1066,7 +1066,7 @@ static int scmi_xfer_raw_worker_init(str 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 ;
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 5 lines · Cristian Marussi
Quoted 4 lines · Tejun Heo
scmi_xfer_raw_worker_init()is specifying a flag,WQ_SYSFS, as @max_active. Fix it by or'ingWQ_SYSFSinto @flags so that it actually enables sysfs interface and using 0 for @max_active for the default setting.
Thanks, good catch, very hard to notice.
Quoted 5 lines
Hi Tejun,
my bad I messed up the params in the call.
Hi Cristian,
I think it deserves the fixes tag, right ?
Signature · 2 lines
Regards, Sudeep
Cristian Marussi
reviewerQuoted 8 lines · Sudeep Holla
Quoted 5 lines · Cristian Marussi
Quoted 4 lines · Tejun Heo
scmi_xfer_raw_worker_init()is specifying a flag,WQ_SYSFS, as @max_active. Fix it by or'ingWQ_SYSFSinto @flags so that it actually enables sysfs interface and using 0 for @max_active for the default setting.Thanks, good catch, very hard to notice.
Indeed :<
Quoted 4 lines
Quoted 4 lines
Hi Tejun,
Quoted 9 lines
Quoted 2 lines
my bad I messed up the params in the call.
Hi Cristian,
I think it deserves the fixes tag, right ?
Fixes 3c3d818a9317 ("firmware: arm_scmi: Add core raw transmission support")
I though so, but as usual I am not sure what to do when we are fixing something in the middle of a cycle... Raw support went in v6.3-rc1 and we are now in v6.3-rc7, so if you want to pick this up now (as it seems the case) it will fix the above yes, but it is anyway still on an unreleased kernel...so nothing really to have to apply on any early stable kernels...buh..I dont know what is the rule, but the Fix tag seems harmless ... so why not :D
Thanks,
Cristian
Quoted 7 lines · Cristian Marussi
I though so, but as usual I am not sure what to do when we are fixing something in the middle of a cycle... Raw support went in v6.3-rc1 and we are now in v6.3-rc7, so if you want to pick this up now (as it seems the case) it will fix the above yes, but it is anyway still on an unreleased kernel...so nothing really to have to apply on any early stable kernels...buh..I dont know what is the rule, but the Fix tag seems harmless ... so why not :D
Not that complicated TBH. If you know this fixes a particular commit in the tree, just add Fixes tag. The stable maintainers have made it easier in general by relying on the fixes tag and not needing explicit stable tag in most of the cases. I will add it.
Signature · 7 lines
Regards, Sudeep _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Sudeep Holla
AppliedQuoted 4 lines · Tejun Heo
scmi_xfer_raw_worker_init()is specifying a flag,WQ_SYSFS, as @max_active. Fix it by or'ingWQ_SYSFSinto @flags so that it actually enables sysfs interface and using 0 for @max_active for the default setting.
Applied to sudeep.holla/linux (for-next/scmi/fixes), thanks!
[1/1] firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation
https://git.kernel.org/sudeep.holla/c/44e8d5ad2dc0
--
Regards,
Sudeep