Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1953451rwr; Fri, 21 Apr 2023 01:57:26 -0700 (PDT) X-Google-Smtp-Source: AKy350ZxL02dHMABS/29tRcCYsjHV883x+8kAIhpeeUxPSx1v5emD2prb+x4wOatY6oxmqkQvCtI X-Received: by 2002:a05:6a20:d489:b0:d9:f086:e756 with SMTP id im9-20020a056a20d48900b000d9f086e756mr5002284pzb.39.1682067445745; Fri, 21 Apr 2023 01:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682067445; cv=none; d=google.com; s=arc-20160816; b=sOjDRtEN18nxa8pZon6NfVuz0E+LrdOVoRF6bOazCe+L3KSuIvw1I5WBqwYpaB9LnN BMN125uWQHK9vKEn55Mpn+n+UrkBBC3ezEtuIThm0OYmv5IWT37HfgRno+XP3FFjdX08 lrocvECIVXM0KAQokSd+hquc+PQycl47dt0Ka8SjMkEiANHzXmaOJmwkClzW7DcUQA3Y fea1Fg7UvYTP4Nw7PO2NWPybUxPtuod55mWf43O9TFGmC104kJdbUBXVbHcWSQaIA2qM vztaQixZvLQvwgiFWasjxwhEA0ZIRngW96EIaWovZkiaSl+mr77Bd/Ukxqi1TC7HSvkk PpDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=0l+Wnl99RokqyR5ccP5VKnBmeoJxT7+GIc7MrD6sIoQ=; b=hbdS0uFsbLKhsXUaCqDFd2pT280Iz44sv+9LBc/IJAIGZFn9PDHp2dOaTm29VG1zyT Kfz3JAXXLNEDyYjqZRGK9dzyhsOqp6bV/BrquVHVURfj5c0jjenNiTPSirBbtg+p1tSv 1OXuP9s6ahGTReL/NAZ5J26qWvMVEppKo3EhTRPBdwclMYhkH6gJ0ndMc4fIEZKXXb7y RyWmA+QUjAZmRbGeCSIpEPopuEAAe4e6VDh4+dyiLoGzt9IGTfXfn4IGJq+3yNCiiE1M oI/I013Uu/UunOoypgwn3Bbvyi5d3J5Lnt7CAzWP1K6oCcwQ3Pfik7sBB1QwnapN+Xwr PWqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u82-20020a627955000000b0063b7862ed1csi3959539pfc.397.2023.04.21.01.57.12; Fri, 21 Apr 2023 01:57:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231807AbjDUItA (ORCPT + 99 others); Fri, 21 Apr 2023 04:49:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231823AbjDUIsY (ORCPT ); Fri, 21 Apr 2023 04:48:24 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3DAF6A5D6 for ; Fri, 21 Apr 2023 01:46:16 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 643431480; Fri, 21 Apr 2023 01:47:00 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B7B0D3F5A1; Fri, 21 Apr 2023 01:46:15 -0700 (PDT) Date: Fri, 21 Apr 2023 09:46:11 +0100 From: Cristian Marussi To: Tejun Heo Cc: Sudeep Holla , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 20, 2023 at 09:33:49AM -1000, Tejun Heo wrote: > 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. > Hi Tejun, my bad I messed up the params in the call. LGTM. Thanks, Cristian > Signed-off-by: Tejun Heo > --- > 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; >