Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation
@ 2023-04-20 19:33 Tejun Heo
  2023-04-21  8:46 ` Cristian Marussi
  0 siblings, 1 reply; 5+ messages in thread
From: Tejun Heo @ 2023-04-20 19:33 UTC (permalink / raw)
  To: Sudeep Holla
  Cc: Cristian Marussi, linux-arm-kernel, linux-kernel, kernel-team

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@kernel.org>
---
 drivers/firmware/arm_scmi/raw_mode.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 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(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
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-04-21 11:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20 19:33 [PATCH] firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation Tejun Heo
2023-04-21  8:46 ` Cristian Marussi
2023-04-21  9:27   ` Sudeep Holla
2023-04-21  9:38     ` Cristian Marussi
2023-04-21  9:48       ` Sudeep Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox