Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4877189rdb; Fri, 15 Sep 2023 15:30:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG9Q2dqke4q7l/cgSkSmePzFovjKa/Ud3qaIK+8oOl9T0bJzQ+9AjMegqNfAyhdbXwqisCp X-Received: by 2002:a17:902:e801:b0:1b2:1b22:196 with SMTP id u1-20020a170902e80100b001b21b220196mr3615113plg.48.1694817007027; Fri, 15 Sep 2023 15:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694817007; cv=none; d=google.com; s=arc-20160816; b=OC4l2nAuFeNFquHcVKmNKz9UVV116M3lbBOsMRqJUCfTQefRw+4uxnUOyfaS1qPnTJ d5SAi1TfgKvou2KDVRQXUvtqD6oo9yBRFTdnvVRJvpplsJys0AAAag6hDUlTOEyXLFUZ 8pSBBvZYtSTvo0xoc54KIziyLhfOsyLyBVWGkj2PR5pP9285PeWCRwPgADZhLhkUrV6E 0b64aTOpiD8uDv3yWTHWtWfKQYo7D/jmNAv7b32GJzqdlfT3tPNPbC5wXhRmgAmvmVUt glun4PIEDApGTjdcHw+0L/lPxzCRaGKoTx9bzYCMHM4WDhcNZu9p5WBpcCrFqpy3IiMU K8+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=O6hsgmB5J4L+4HclWy5oktZVn8WZHF20I33nkF4bUNw=; fh=5KD42N1NYp3/vie7vFC1lL/0LDGywEb+mnyFYzY7PFc=; b=HuKGqFY1pMzQtA/qlpBz1IsRrMT0JmNjjLH6g85GZAcqCJ/Pf84cI8+BstUWy+ujVS QjiPR1ibLtkbNWxxh2hviw2j/p52gnKfzUSmPJhi4tGBZ45vWAIyzmQL3Te+0t2aumD+ O0fBeu7jnvmCtFlJXaTDiUe1bm6wPcb1Fwq6y4XyYuUHsh1StSUbVOT5Ji85Tn/YnabR i9wzdv3ASqw7IU38COUMQcLvhrronMVqqlMQ5sK38OB31hBAIIAQXnhJwaSEQRshFNTS dzxHfHalDQ8AZVe6lTZ3nvfDscrNYUa1+l4xf9CFLQvCZsXa+yw579QgBu95M79+JJ3a qmIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gr2BqvAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o13-20020a170902778d00b001bc52116351si3978153pll.70.2023.09.15.15.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 15:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gr2BqvAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 69D0283B6326; Fri, 15 Sep 2023 07:47:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235817AbjIOOrl (ORCPT + 99 others); Fri, 15 Sep 2023 10:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235401AbjIOOrk (ORCPT ); Fri, 15 Sep 2023 10:47:40 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C4F21BE6; Fri, 15 Sep 2023 07:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694789255; x=1726325255; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=RSdffzo1Ydfr8wTOPsJoUEWKUqgBQtx4q1XDTHhuglM=; b=gr2BqvAhnzs1sKFPuJolVLPoSBz5iV+PsWpNX3mkHmOBgEd7+ChD4UfG v6SMaWMobfHOvL4GR3L4oEwil+Lr1SxBTWoPQIeGEtjdp3adVmIGwKwHc APixYkkEwGcKxDW1hkepFURLVdfMxZ4XnU55y2bfluJfd9mba5IqrguOj dFMUODdUe1sp5Fqo5pxnbyb2UDCruAbYEFDNKc+LZOleTpTi+mV+o9GMI Rsmwj9pqItikf3EHl5vjiNRbSTg0R/q5g2pxd/Z9SLXpAoa0OYOUwk9FU Xy5RAJZvN7iEGTtWtWLdJUchqT7HhoIlZEW8iIJ8kx2URTkoE90eu2B7X Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="410202250" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="410202250" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 07:45:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="774340718" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="774340718" Received: from srdoo-mobl1.ger.corp.intel.com ([10.252.38.99]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 07:45:44 -0700 Date: Fri, 15 Sep 2023 17:45:42 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Stephen Boyd cc: Mika Westerberg , Hans de Goede , Mark Gross , LKML , patches@lists.linux.dev, platform-driver-x86@vger.kernel.org, Andy Shevchenko , Kuppuswamy Sathyanarayanan , Prashant Malani Subject: Re: [PATCH v4 3/4] platform/x86: intel_scu_ipc: Don't override scu in intel_scu_ipc_dev_simple_command() In-Reply-To: <20230913212723.3055315-4-swboyd@chromium.org> Message-ID: <58e817b0-1872-6ff1-58bb-1aeeb572361@linux.intel.com> References: <20230913212723.3055315-1-swboyd@chromium.org> <20230913212723.3055315-4-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-769386324-1694789146=:2347" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 15 Sep 2023 07:47:46 -0700 (PDT) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-769386324-1694789146=:2347 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Wed, 13 Sep 2023, Stephen Boyd wrote: > Andy discovered this bug during patch review. The 'scu' argument to this > function shouldn't be overridden by the function itself. It doesn't make > any sense. Looking at the commit history, we see that commit > f57fa18583f5 ("platform/x86: intel_scu_ipc: Introduce new SCU IPC API") > removed the setting of the scu to ipcdev in other functions, but not > this one. That was an oversight. Remove this line so that we stop > overriding the scu instance that is used by this function. > > Reported-by: Andy Shevchenko > Closes: https://lore.kernel.org/r/ZPjdZ3xNmBEBvNiS@smile.fi.intel.com This looks somewhat unusual way to tag it. I'd just drop the Closes tag as the email list is not a bug tracter. Other than that, Reviewed-by: Ilpo J?rvinen -- i. > Cc: Prashant Malani > Reviewed-by: Andy Shevchenko > Reviewed-by: Mika Westerberg > Fixes: f57fa18583f5 ("platform/x86: intel_scu_ipc: Introduce new SCU IPC API") > Signed-off-by: Stephen Boyd > --- > drivers/platform/x86/intel_scu_ipc.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/platform/x86/intel_scu_ipc.c b/drivers/platform/x86/intel_scu_ipc.c > index 299c15312acb..3271f81a9c00 100644 > --- a/drivers/platform/x86/intel_scu_ipc.c > +++ b/drivers/platform/x86/intel_scu_ipc.c > @@ -443,7 +443,6 @@ int intel_scu_ipc_dev_simple_command(struct intel_scu_ipc_dev *scu, int cmd, > mutex_unlock(&ipclock); > return -ENODEV; > } > - scu = ipcdev; > cmdval = sub << 12 | cmd; > ipc_command(scu, cmdval); > err = intel_scu_ipc_check_status(scu); > --8323329-769386324-1694789146=:2347--