Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5503095rwb; Tue, 1 Aug 2023 03:50:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlHwdi3Zhn5XcmPi9FUhBYuHLiI7WvDsXP4jRLexcUBnoot10f/ejMyQQ2BkWMQ/ZDS1MZZN X-Received: by 2002:aa7:c481:0:b0:522:aa48:d207 with SMTP id m1-20020aa7c481000000b00522aa48d207mr2076624edq.22.1690887021958; Tue, 01 Aug 2023 03:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690887021; cv=none; d=google.com; s=arc-20160816; b=sfg8o9a+KAjDfWYGCvTkze68sooRFTMrBLfqZCouTkWIPZXbbPYPYlvmcZS5bzBlLz ZdqZZx7ep8HQVApZa1x4o4Hs4gA2zOojnChJA4CIv6axUTqbESBYL3civkkjrSpaAvU9 tse54GJdsZxqnwNBSRREtxE2PjYQRFKZ03JNb3L2hMgkO5oZl+xixqAjulD9vyHCOuaK AMgrs5Ov9xGfUDszvaVQ6oQHtU66XIpPFsurqPOKp2TPNFZ6pldErwZo2wW2bEBfhA7Q x2H0kQjSi71n+ypjECb1moFDnqKDelT6nOsZVH1bhNdDGArhBc8smpjYgKYfVVa0vBAP 0iIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BqbBRygnNivDKtJsUxqFpisfRta6pDIOOG6ye7lk4xE=; fh=EPY85GFsYXZtElNCCdgXcYCSgYzYM6oYzuv2gEjsf80=; b=o1pHqejLH4wVD/P/srWGlSHKr1wYnR2yUWIpsuMzjNzzY4ojDFtoOotJkBl26WmD4o /CtfrhiHnffomWXcW5lCt7ZA3P9Fui/tW04IYjOHo9PZSFxqffESudga8EZJfNvNFkVy 0blsHhnOEp47fufqSkJDL/6B0q2DvJUVerD702yKtwUDRysiDw2c0gzclspekikMBRDc b/0oNyp/cnj67qfSzT1Ksc9B9nlSpvhW3hi7rmK5LDkDOdJjcWsjYq9aeZIcwwiM+9OU WmiKZdXq7NFydaZQK7rki9l/8oTQcJ+xyrHDiNyJJ2kOhWDPPcq6IzRJzFF8bqXBNYjq br2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=MpTY6n14; 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=163.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020aa7c403000000b005221e2f99e6si7823390edq.506.2023.08.01.03.49.58; Tue, 01 Aug 2023 03:50:21 -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=@163.com header.s=s110527 header.b=MpTY6n14; 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=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232851AbjHAJX3 (ORCPT + 99 others); Tue, 1 Aug 2023 05:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233015AbjHAJXN (ORCPT ); Tue, 1 Aug 2023 05:23:13 -0400 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F21C93C2F; Tue, 1 Aug 2023 02:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=BqbBR ygnNivDKtJsUxqFpisfRta6pDIOOG6ye7lk4xE=; b=MpTY6n142V6vKTBIQJRG/ 3HZ2o9Xsx00f6C4t0giDfO7HrYY6h094K/yrhV75IFSOpOkOs3RnR8N6obUGHV06 tArb9kISJ7/BBvGhb2Pvl53jyPlL1aVAaCg4BcOybB0opVi1cfYOpsmLFNyMoal+ izs/CquROycRewQGAvtx4s= Received: from localhost.localdomain (unknown [39.144.138.221]) by zwqz-smtp-mta-g5-2 (Coremail) with SMTP id _____wAHpHClyshkAPmxBw--.34257S2; Tue, 01 Aug 2023 17:04:38 +0800 (CST) From: xingtong_wu@163.com To: hdegoede@redhat.com, markgross@kernel.org, andriy.shevchenko@linux.intel.com, xingtong.wu@siemens.com, lee@kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: gerd.haeussler.ext@siemens.com, tobias.schaffner@siemens.com, kernel test robot Subject: [PATCH 1/2] platform/x86/siemens: simatic-ipc: fix logic error in BX-59A Date: Tue, 1 Aug 2023 17:04:23 +0800 Message-Id: <20230801090423.4747-1-xingtong_wu@163.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230731071424.4663-2-xingtong_wu@163.com> References: <20230731071424.4663-2-xingtong_wu@163.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wAHpHClyshkAPmxBw--.34257S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7uw1xWr1Duw48KryxGryxGrg_yoW8GF47pF 4rG3WIkrW5W34Utwn5Gay7ZFZ8Z3Z8KrW7GFy7AwnrZwnF9F1jqr12ya1fXFW7tr45Way3 Wa9xtr43Gan8ur7anT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j61v3UUUUU= X-Originating-IP: [39.144.138.221] X-CM-SenderInfo: p0lqw35rqjs4rx6rljoofrz/1tbiTBe+0GI0aQoqpgABsN X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L4,SPF_HELO_NONE, SPF_PASS,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 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: b8af77951941 ("platform/x86/siemens: simatic-ipc: add new models BX-56A/BX-59A") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202307312322.Aa8upHWK-lkp@intel.com/ Signed-off-by: xingtong.wu --- drivers/platform/x86/siemens/simatic-ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/siemens/simatic-ipc.c b/drivers/platform/x86/siemens/simatic-ipc.c index 02c540cf4070..8ca6e277fa03 100644 --- a/drivers/platform/x86/siemens/simatic-ipc.c +++ b/drivers/platform/x86/siemens/simatic-ipc.c @@ -129,7 +129,7 @@ static int register_platform_devices(u32 station_id) pdevname = KBUILD_MODNAME "_leds"; if (ledmode == SIMATIC_IPC_DEVICE_127E) pdevname = KBUILD_MODNAME "_leds_gpio_apollolake"; - if (ledmode == SIMATIC_IPC_DEVICE_227G || SIMATIC_IPC_DEVICE_BX_59A) + if (ledmode == SIMATIC_IPC_DEVICE_227G || ledmode == SIMATIC_IPC_DEVICE_BX_59A) pdevname = KBUILD_MODNAME "_leds_gpio_f7188x"; if (ledmode == SIMATIC_IPC_DEVICE_BX_21A) pdevname = KBUILD_MODNAME "_leds_gpio_elkhartlake"; -- 2.25.1