diff options
author | Tejun Heo <tj@kernel.org> | 2023-04-20 21:33:49 +0200 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2023-05-08 21:40:25 +0200 |
commit | 44e8d5ad2dc01529eb1316b1521f24ac4aac8eaf (patch) | |
tree | e6a6c8ac4f5fd878ea3d34dc6dd15090b49ab7e7 /drivers/firmware | |
parent | Linux 6.4-rc1 (diff) | |
download | linux-44e8d5ad2dc01529eb1316b1521f24ac4aac8eaf.tar.xz linux-44e8d5ad2dc01529eb1316b1521f24ac4aac8eaf.zip |
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.
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 3c3d818a9317 ("firmware: arm_scmi: Add core raw transmission support")
Link: https://lore.kernel.org/r/ZEGTnajiQm7mkkZS@slm.duckdns.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/arm_scmi/raw_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/arm_scmi/raw_mode.c b/drivers/firmware/arm_scmi/raw_mode.c index d40df099fd51..6971dcf72fb9 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; |