Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp843414rdb; Sun, 20 Aug 2023 05:34:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGi+p7giB7DWoRP0tXUSeqZc3F0nGzrHlblEnBtCxFft3B8Z86CCFX4UMuKRK51eQ0hxVEa X-Received: by 2002:a05:6808:1a21:b0:3a8:45a7:2203 with SMTP id bk33-20020a0568081a2100b003a845a72203mr7840161oib.3.1692534884663; Sun, 20 Aug 2023 05:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692534884; cv=none; d=google.com; s=arc-20160816; b=fRqeaP5EAcF3iJnMrL33ZEZSBaarBLeYlyLdyEMUTTV6pIMNhwnYRbGczMqbO8ZXzQ ETMvmYPZCmhvHKC0PNCtghSjheFeFWpmIZ7RddbfTgimbK6xz1Cj++VSNZetL489FIvG 8IxHVLwH5Uz1kEAZPvXSN9tjXRRXk9JsDh8OkXINS8++TmyPUKOwbC0mdlmffaAvqunI 5QZod13PlcW2oQX6xQINyxG+vMscKk60Z11GTbAlb1e9emQ4VQOYqNBFCrew7E8GiuFE NkeZlOL18DPqQxX3pKJssjEw3zRhD6Sbb4zttUnsUZFEXE+KBdeEuQNqs2NaNp7uZ2ya JXZA== 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:dkim-signature; bh=8DQ8jGeXV4H9YFUvhljENDnTODHkZ5Kwp9OgWv+fLn4=; fh=oRBdyJz6V6LJguBFmxLMFJPhtYm3z407gw1fM2bUums=; b=BiQJm7Nl+7TIltx7z1Az6xmA+O8aZUUNtzMTOuR8yOmhFQakdSLcplbnBs8btbw3+0 MNlP7TfKqebY3F7NWtUPevs36BvPed5VC3mL8kU0kFt2KXNFeQrivpMj+4oTy9u0hv2A YcP1mHeU+mAlLdL4FfTw6k7dKlUi1Z7/cY1qXH5T4iuHVKSSFE2I9V5cfH99yqlz5aSx +Jwx8yJz2LoBwZ7w1e2HbVY4iXx7l0SBULN8dWzyjFgZmCujbCGQ4P5E/CQ12b+T1uj8 33e9K33lv2ffoPmYW64nGF/3YptTSRi4SlOnheoHy4kTFLNJxI4GF4LmrqzhINQn//Kb 508g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Gf3KU/x5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a192-20020a6390c9000000b0056581ca4f1dsi5241936pge.51.2023.08.20.05.34.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Aug 2023 05:34:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Gf3KU/x5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3B2E86F6BB; Sat, 19 Aug 2023 11:51:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243389AbjHPPrb (ORCPT + 99 others); Wed, 16 Aug 2023 11:47:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344393AbjHPPr1 (ORCPT ); Wed, 16 Aug 2023 11:47:27 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAECE26A8; Wed, 16 Aug 2023 08:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692200846; x=1723736846; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=GMVGcSIQ+QH/TIp6M4nqrBd2HmKhNCvR/nQLZrf3CoE=; b=Gf3KU/x5oB0qOcTEEeVMOUN9nPsxUwAblqskVHe5zmVeEo7o2FC93I9k FuA8GkrYTUzltCpT4igzdk7XHAduylVnW0AgDHiFqyX7SbZhy/SOx/ZY0 Kt/q0Arn3Kr/EkQDyd7shOivXvy8FMIGHHCNLH8H/Xw3DU2gQqB/x6gis DRLXfMBwCYBsWxMhPQuiqEvxHecy1J8xHVx8vvdPohRYYjES91tnA6RkC EseyKKuILZKGcZCUyOuc9f/WR36ASVyXGnALykw41yWnbhw/9AsQ6dy4k Z4cElbWABoDUn/qahIfo2xmGDIDt61VaU8lYFcHh7ip9jqyEOPsl6h2Sg Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="458918297" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="458918297" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2023 08:47:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="684113034" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="684113034" Received: from araj-dh-work.jf.intel.com (HELO araj-dh-work) ([10.165.157.158]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2023 08:47:26 -0700 Date: Wed, 16 Aug 2023 08:45:52 -0700 From: Ashok Raj To: xingtong_wu@163.com Cc: ilpo.jarvinen@linux.intel.com, 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, lkp@intel.com, Ashok Raj Subject: Re: [PATCH v2 2/2] platform/x86/siemens: simatic-ipc-batt: fix logic error for BX-59A Message-ID: References: <20430731173417.2692-1-xingtong_wu@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20430731173417.2692-1-xingtong_wu@163.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 On Sat, Aug 01, 2043 at 01:34:17AM +0800, xingtong_wu@163.com wrote: ^^^^^^^^^^^^^^^^^^^^ Nice way to keep your mail on top of the sort :-).. You need to fixup your system date. > From: "xingtong.wu" > > The variable "priv.devmode" is missing from if statement that leads > to a logical error. Add the missing variable to the if condition. > > 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])) { > -- > 2.25.1 >