From patchwork Thu Apr 20 19:33:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tejun Heo X-Patchwork-Id: 13219132 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A793CC77B73 for ; Thu, 20 Apr 2023 19:35:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dO4l2UdMaa9pKYZM1VwXmpemyJs/7Ogit97bBdqgWdY=; b=im7hBmuDIekPiR /q3DKLLHm29/TCqmuWr+9kmtHhKFM3FwuFB3exIj0LDHD5dDvV9ADQfQB19piNs4li/CDN9C//y5Y xvF5u5EboKe6UQsbM2jZOy7Gi8Ro/Cx9+A09v2+B8Tj4zoL3wz41CFeDxUfPWkYU0GbXk2eC846ZB tAhp3mBvoepErbS/znOh2WJ98ryxbinY4M2c9zt2VeXsnGU1fyGR/PL+7qN3rH1gkJmJbLpB9leaX mY8TJAtTf+CYvBFYMpM4ZnN42Ufadt/S6mKWFjNUAwQwmX/j48zuwBBuu8wXcspjD7sUUZPyZ2Gk+ ctHlFc/OPIMF+HSU1EtA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ppa2X-008sGH-0j; Thu, 20 Apr 2023 19:33:57 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ppa2T-008sFM-2K for linux-arm-kernel@lists.infradead.org; Thu, 20 Apr 2023 19:33:55 +0000 Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-63b60365f53so1843528b3a.0 for ; Thu, 20 Apr 2023 12:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682019232; x=1684611232; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=y74Qw0/8a5dMAsd+sLD5I7B7gKbGCOA24GXrDYc4XOg=; b=UPJJd3ogPdBv/pVoXDdKlIHl0RL0ASvVb345pCL+hNq6LlD+Gn58+pJ5JsX/IL7Wfj rPWDH0P2HCl27BwG7gdXm913RJMv0yJ84nwS/xKcm0xNhvzbzzDCTZQ1sCj4IUasIxC7 7AJto8DyUTA2WSxI7CKsnFl0Qs7YNVw245vTHWQj3kZLsrbN5ZfYnene5gasq3GG3doN WU+yxe0TAAJ/2OgIHg2vuvYgdkWPLmhlx5QiPD2DSDweWJdXuddBhEfFO2eDdFhL+iNw TLH+MByh8hrdJLqc6BlJMBqf5lyX/eUQawH/PMRfdh7egDhMe/mIQUKNsZszoh+fybQB BAlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682019232; x=1684611232; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y74Qw0/8a5dMAsd+sLD5I7B7gKbGCOA24GXrDYc4XOg=; b=WQIKeJsBZcLr2xB/aUszsaoiprrIQV0Z2RZcjLrke8cQV54eIsSbhl5a/tpehM7AF5 ADwFc8hGimZeqA2J1n3QxRSmJB8VSiR/QOdcf0nl+CnV49tbfmo7qrC8ufKKrXLsGrX1 ydtPYY7rLAvYkWkxS00nKaEv0RJpv0/FmZkEB67ADY0JWiVPegQZPGC5dR7LEdmAcgH0 ixi05aEbgd1MkLKamhKNRGzAhg5BZzuQG92ebFsdYlXwKiah4unsAjtBNEcKSbtTi8/J KLTD9r71iMY/y5X67gcRaTczIBkIbn2i8xFNH21O1xfaP+i5r50bTh/412hmmre3+26w q52A== X-Gm-Message-State: AAQBX9dqxpN+U5/MEOWs8L8WWJXUi8s81EDiTeqdgmHMkA16nk9NnwBY x0h6TnDtQWpmS/mjqNpSLWI= X-Google-Smtp-Source: AKy350aGUH4NmuqEm9f9W5+HQVzwxSTRC2zgGk4C6AfeId04keMA4/dyzq93CgfUysCRowR7wbjzGA== X-Received: by 2002:a05:6a20:4296:b0:ef:1457:6cdf with SMTP id o22-20020a056a20429600b000ef14576cdfmr3736647pzj.19.1682019231601; Thu, 20 Apr 2023 12:33:51 -0700 (PDT) Received: from localhost (2603-800c-1a02-1bae-a7fa-157f-969a-4cde.res6.spectrum.com. [2603:800c:1a02:1bae:a7fa:157f:969a:4cde]) by smtp.gmail.com with ESMTPSA id q5-20020a056a00084500b0062dae524006sm1599698pfk.157.2023.04.20.12.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Apr 2023 12:33:51 -0700 (PDT) Date: Thu, 20 Apr 2023 09:33:49 -1000 From: Tejun Heo To: Sudeep Holla Cc: Cristian Marussi , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: [PATCH] firmware: arm_scmi: Fix incorrect alloc_workqueue() invocation Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230420_123353_763511_6E12FCA8 X-CRM114-Status: GOOD ( 10.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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;