Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3658912rwo; Fri, 4 Aug 2023 08:03:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5jZwloFhUbj+q0tnt6o/XNsNFna9ounHE74fbCgmOVMq7Mh2fWjzDpTt/C9y7/HmYXuXP X-Received: by 2002:a17:906:310e:b0:99c:57ed:baf1 with SMTP id 14-20020a170906310e00b0099c57edbaf1mr1698625ejx.51.1691161408795; Fri, 04 Aug 2023 08:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691161408; cv=none; d=google.com; s=arc-20160816; b=gWG2XsojPEb4Ar6AGRrZLKzhjxYIN1cF3W6ud1FLYdSMmfvWqzF0/M7yAwoIn4ZWYh 9w5KLrBgsOmX1mfscds7VGxjLYIBq5/kdaLc/h/MZSiQ42B6PvetgQkEnYiDiDLuagCD raKdD7ukIo8UaPkoErKgw5VPbbJ6stVlXxhDRTCJDIE0/JGUa8CnvEdcPXtoaWcPunYR konB02TUrwHlCtFsjnyf9kv400v6XUTP+twef8WieqlpojwDdWczRgJ636MSn8tBem2R U+qMuOuvlj3hpRqIcahD0Dywpr4xXRPfWK7HM6o4Ngp3J+SHzF0grfyQ2I+CzH/0Byhn rOuw== 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=eO5Gln06dw9a97qlTOYdMinb6runh54I2jFwPG8+cXo=; fh=6KTiKkryR4fMPkwVb1Lj1coND6AJb55HRS7A/M2A0I4=; b=S7NmEhTBYCefM8yLn0wd5c9YHsxYKhfyDTA05C4rTfvY+DE7AWhTygTo0P3u3xcQg7 ZL4t/8xhDyS0X6uCPbCcEYUdKJcS31yNILzw7szCD0IGtfIFoTx/P27W7PF+78/Ub2yx 2yPeyTSfC+peY1z/h84sQqeix+hF7KvindAPO9bXYv84+jIj392px+eR1/gCcPbzWBjH k75j8n/WVqyBh8mrQXfRFWw8b/FdrCTOMTk48PYQThn09PBqBLoTYoUwK6CAQQ0UpkAJ I8sw2tUAxBw0te1s6ewHjQv4U8Tv7mHo+poMyBnDw1eK3NOpgetsBGw4s3NCSoZ3Atxs t1SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E9bueNFJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a1709063a1500b009938899a110si1813302eje.877.2023.08.04.08.02.33; Fri, 04 Aug 2023 08:03:28 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=E9bueNFJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231320AbjHDNnl (ORCPT + 99 others); Fri, 4 Aug 2023 09:43:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbjHDNnj (ORCPT ); Fri, 4 Aug 2023 09:43:39 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07832195; Fri, 4 Aug 2023 06:43:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691156619; x=1722692619; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=gWSsidf+YTv/LNRpH8dpvjJyRrzmEbTXF3XBYk01GKg=; b=E9bueNFJ+erbX2lhATehTZeykBHwLpUVNS1lsWgidM79yU0y9R8LMFSI VBU4dvWRDiTepyoEQZWJ8yO7OmsYUdRsGJBIBNzXtCm0gsoLEFT6507Pf soogVRRoSbMih3SXNBzmMymU3zZKu2K+NQchv2aDI0QqtFMu59QLxilmu Eo7JPwJKV/hFfKyHwKx4wW8xg8TjzbNu+vUuS6xszI3xlGHBLyrcDNUff JzXFAUG/TgbQVh0cR9YcyE+6FQmAywOXOXXmHJfJdwLHWyLavQux+JU59 fLTo2u3/u2aXhYGlQzSclPqLXYAjJP6K+fBiqtDjkxANbVgHmq6LEOjGr Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="372902510" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="372902510" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 06:43:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="707030996" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="707030996" Received: from mmocanu-mobl1.ger.corp.intel.com ([10.252.38.186]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 06:43:35 -0700 Date: Fri, 4 Aug 2023 16:43:32 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: xingtong_wu@163.com cc: hdegoede@redhat.com, markgross@kernel.org, xingtong.wu@siemens.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, gerd.haeussler.ext@siemens.com, tobias.schaffner@siemens.com, kernel test robot Subject: Re: [PATCH 2/2] platform/x86/siemens: simatic-ipc-batt: fix logic error for BX-59A In-Reply-To: <20230801090712.4856-1-xingtong_wu@163.com> Message-ID: References: <20230731072148.4781-1-xingtong_wu@163.com> <20230801090712.4856-1-xingtong_wu@163.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-827239543-1691156617=:1581" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED 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 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-827239543-1691156617=:1581 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Tue, 1 Aug 2023, xingtong_wu@163.com wrote: > From: "xingtong.wu" > > There is a bug in if statement that lead to logical error > and have influence to other IPC, it get correct now. > > Fixes: c56beff20375 ("platform/x86/siemens: simatic-ipc-batt: add support for module BX-59A") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-kbuild-all/202308010001.BGYCSQrl-lkp@intel.com/ > Signed-off-by: xingtong.wu > --- > drivers/platform/x86/siemens/simatic-ipc-batt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/siemens/simatic-ipc-batt.c b/drivers/platform/x86/siemens/simatic-ipc-batt.c > index d66b9969234b..e6c12c52843c 100644 > --- a/drivers/platform/x86/siemens/simatic-ipc-batt.c > +++ b/drivers/platform/x86/siemens/simatic-ipc-batt.c > @@ -194,7 +194,8 @@ int simatic_ipc_batt_probe(struct platform_device *pdev, struct gpiod_lookup_tab > > if (table->table[2].key) { > flags = GPIOD_OUT_HIGH; > - if (priv.devmode == SIMATIC_IPC_DEVICE_BX_21A || SIMATIC_IPC_DEVICE_BX_59A) > + if (priv.devmode == SIMATIC_IPC_DEVICE_BX_21A || > + priv.devmode == SIMATIC_IPC_DEVICE_BX_59A) > flags = GPIOD_OUT_LOW; > priv.gpios[2] = devm_gpiod_get_index(dev, "CMOSBattery meter", 2, flags); > if (IS_ERR(priv.gpios[2])) { > The code change is fine but please try to improve the changelog (has similar problems as the other one). Reviewed-by: Ilpo J?rvinen -- i. --8323329-827239543-1691156617=:1581--