Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2210826rwp; Fri, 14 Jul 2023 02:35:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjiqpQ9/8A0LCkAPZPVtO1DO2j9ws/UdhH2aynfl1Cc/9k/gpV2DnAjNnOmD5lUYt1IjvI X-Received: by 2002:a17:906:220e:b0:993:ff9d:2c2b with SMTP id s14-20020a170906220e00b00993ff9d2c2bmr4506495ejs.7.1689327316441; Fri, 14 Jul 2023 02:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689327316; cv=none; d=google.com; s=arc-20160816; b=AINK4kr1xdhNzyvYofj/NEo9LpvorFh/Xb9nB2rZINup39VnZUZcKTJ3xO6x/V0FV8 nBic0+NHIn6PS7+s6q59gJjcVL1lgUMu1U/yXrfHnNBUoKHd4ofrN9pBAInitCrfebyy /ds8lIqP1gYU1S6HI8O9aDR8OebKQ1saDiTS1u0IsXG9izjbFV4kFGZ7dLFB66jd1d2N q46B0CgDnHl1CoNHFemj0dCORxP6szkv7n21HvtCylTGOSYD3SL/HaSs6Px4OCH91Zux BCrZRy+6ndhXfC7L4Mtnn7Ic8O9V7eCw9aeM+rGx91kV5HIu+2ntw8VzIqRpj/YENoqX WHKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vDaEBbTaDpFH7NoW1SbIcf7d5Ua0WtZqmfHsROXmwco=; fh=CmKggbd9o5JIN2/rlLvOvRsowKPdzXIaP/LtdGfTegM=; b=H4kSMlUlMFuvCsgiYzhOXh4bK3trkfiiMw8jZpWE5c8KWXnTSPCGgwXkg032qqkbLs u5CmrGEvxyUMY4Q0CBOOBWBOFy1cuvTBfRBGpaTHwua9ibXJa4wDtAGClsWfZKBcGPyf JmGLEXWrHhAttM4cK7N/JWlLWG0Fqzd0vtwIlCOHT5Gv0SOHQZz8KPZKvhCtnbj7nUsL jPnBYtYUcW6bJvXTBmtIMITB/2VPuvi1SGLYFjD2INEX2QouK6iVYg5ZqWL4c6O5cSwO ybKHMAebMHjBwARuf251awg9cZ/vrSqgWVKXSHEJl4H1B0frtnBlR301AUR075HIh3qE MT0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Ylis3wRB; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb1-20020a1709070f8100b0099202eaf99asi8182916ejc.724.2023.07.14.02.34.52; Fri, 14 Jul 2023 02:35:16 -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=@redhat.com header.s=mimecast20190719 header.b=Ylis3wRB; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235460AbjGNJ0l (ORCPT + 99 others); Fri, 14 Jul 2023 05:26:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235428AbjGNJ0g (ORCPT ); Fri, 14 Jul 2023 05:26:36 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A2E02D63 for ; Fri, 14 Jul 2023 02:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1689326746; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vDaEBbTaDpFH7NoW1SbIcf7d5Ua0WtZqmfHsROXmwco=; b=Ylis3wRB+9l13SR5y8w2EdrCcHrV22jyPKYGshLDISvsvekjD5mfSROy1C6r48vIIHFbhR 4By2frZBj8gIMnKHSmH2a1Gx6WU/8nsPE7RThuUYDfBsOQmyZChZ+4h77flYHEVjbflNoJ zRrtBSqjiX+NAfe/vM5N1zpI9MhyJTE= Received: from mail-lf1-f69.google.com (mail-lf1-f69.google.com [209.85.167.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-562-gvAo_04PP3GbJ6M2-mfMoQ-1; Fri, 14 Jul 2023 05:25:45 -0400 X-MC-Unique: gvAo_04PP3GbJ6M2-mfMoQ-1 Received: by mail-lf1-f69.google.com with SMTP id 2adb3069b0e04-4fb9087a677so1504201e87.1 for ; Fri, 14 Jul 2023 02:25:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689326744; x=1691918744; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vDaEBbTaDpFH7NoW1SbIcf7d5Ua0WtZqmfHsROXmwco=; b=imj86G7UzKsuH7Ma+tD6KXkxi50S/M9s7m+twyhk6YaXF25PvKAx7T1fDmdMKC4/cv OBgwlYJZH7c//Ygd1X/Qalt2tBlzMCLzfxGTPZ+SWPeoK6t4C+/v6wz/7Hdw46gvHwqr W65ZgaoyhswKltha1J/2cLC1Yk+wruN6u1MgUXAOJFb+SwmF45Ilrg829l8fbCOg9TVd 7TSSL4QB9ZTrCz2UYayrFq6ZV6QwOnJHrvH7+a4rkVM3Ku+xNAgfji8QiLVu8GZvG2dD NCh7tBhCHCoxnn3TD6KjoPVeGT0v/gkbSGl/LrzdLg918RUFnXhPH5cy9439DepWNX1z nsUA== X-Gm-Message-State: ABy/qLYwm6FKKPlZ17LDbkhaVu2gz+665A2cebFf2I8Dxz50Qq3Zsm5q IxuR4cMpfjOL2LTVu49y9NS9uveD4tz9OLcRI68YnSzRoG2yF0Ul3RrA1cNSBKZyRCjyv1sPP0T 907H8GkToRDwMDCOCT7BOnPrK X-Received: by 2002:a19:675e:0:b0:4fb:8b2a:5e07 with SMTP id e30-20020a19675e000000b004fb8b2a5e07mr3196196lfj.36.1689326743961; Fri, 14 Jul 2023 02:25:43 -0700 (PDT) X-Received: by 2002:a19:675e:0:b0:4fb:8b2a:5e07 with SMTP id e30-20020a19675e000000b004fb8b2a5e07mr3196186lfj.36.1689326743611; Fri, 14 Jul 2023 02:25:43 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id h13-20020a50ed8d000000b0051a1ef536c9sm5439545edr.64.2023.07.14.02.25.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jul 2023 02:25:43 -0700 (PDT) Message-ID: <40d9263d-85be-4838-be5e-b1150c21be7b@redhat.com> Date: Fri, 14 Jul 2023 11:25:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v2 1/2] platform/x86: simatic-ipc: add another model BX-21A Content-Language: en-US, nl To: Henning Schild , Pavel Machek , Lee Jones , Mark Gross , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Tobias Schaffner , "xingtong . wu" References: <20230713115639.16419-1-henning.schild@siemens.com> <20230713115639.16419-2-henning.schild@siemens.com> From: Hans de Goede In-Reply-To: <20230713115639.16419-2-henning.schild@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE,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 Hi, On 7/13/23 13:56, Henning Schild wrote: > This adds support for the Siemens Simatic IPC model BX-21A. Actual > drivers for that model will be sent in separate patches. > > Signed-off-by: Henning Schild Thank you. I've merged this into a new platform-drivers-x86-simatic-ipc branch where I'm collecting all the pending platform/x86: simatic-ipc work. I'll tag + send a pull-request for Lee later today so that Lee can merge the (immutable) tag and then apply 2/2 of this series on top. Regards, Hans > --- > drivers/platform/x86/simatic-ipc.c | 3 +++ > include/linux/platform_data/x86/simatic-ipc-base.h | 3 ++- > include/linux/platform_data/x86/simatic-ipc.h | 3 ++- > 3 files changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/simatic-ipc.c b/drivers/platform/x86/simatic-ipc.c > index c773995b230d..4402cd354104 100644 > --- a/drivers/platform/x86/simatic-ipc.c > +++ b/drivers/platform/x86/simatic-ipc.c > @@ -48,6 +48,7 @@ static struct { > {SIMATIC_IPC_IPC477E, SIMATIC_IPC_DEVICE_NONE, SIMATIC_IPC_DEVICE_427E}, > {SIMATIC_IPC_IPCBX_39A, SIMATIC_IPC_DEVICE_227G, SIMATIC_IPC_DEVICE_227G}, > {SIMATIC_IPC_IPCPX_39A, SIMATIC_IPC_DEVICE_NONE, SIMATIC_IPC_DEVICE_227G}, > + {SIMATIC_IPC_IPCBX_21A, SIMATIC_IPC_DEVICE_BX_21A, SIMATIC_IPC_DEVICE_NONE}, > }; > > static int register_platform_devices(u32 station_id) > @@ -72,6 +73,8 @@ static int register_platform_devices(u32 station_id) > pdevname = KBUILD_MODNAME "_leds_gpio_apollolake"; > if (ledmode == SIMATIC_IPC_DEVICE_227G) > pdevname = KBUILD_MODNAME "_leds_gpio_f7188x"; > + if (ledmode == SIMATIC_IPC_DEVICE_BX_21A) > + pdevname = KBUILD_MODNAME "_leds_gpio_elkhartlake"; > platform_data.devmode = ledmode; > ipc_led_platform_device = > platform_device_register_data(NULL, > diff --git a/include/linux/platform_data/x86/simatic-ipc-base.h b/include/linux/platform_data/x86/simatic-ipc-base.h > index 57d6a10dfc9e..68c455f5edad 100644 > --- a/include/linux/platform_data/x86/simatic-ipc-base.h > +++ b/include/linux/platform_data/x86/simatic-ipc-base.h > @@ -2,7 +2,7 @@ > /* > * Siemens SIMATIC IPC drivers > * > - * Copyright (c) Siemens AG, 2018-2021 > + * Copyright (c) Siemens AG, 2018-2023 > * > * Authors: > * Henning Schild > @@ -20,6 +20,7 @@ > #define SIMATIC_IPC_DEVICE_127E 3 > #define SIMATIC_IPC_DEVICE_227E 4 > #define SIMATIC_IPC_DEVICE_227G 5 > +#define SIMATIC_IPC_DEVICE_BX_21A 6 > > struct simatic_ipc_platform { > u8 devmode; > diff --git a/include/linux/platform_data/x86/simatic-ipc.h b/include/linux/platform_data/x86/simatic-ipc.h > index a48bb5240977..1a8e4c1099e3 100644 > --- a/include/linux/platform_data/x86/simatic-ipc.h > +++ b/include/linux/platform_data/x86/simatic-ipc.h > @@ -2,7 +2,7 @@ > /* > * Siemens SIMATIC IPC drivers > * > - * Copyright (c) Siemens AG, 2018-2021 > + * Copyright (c) Siemens AG, 2018-2023 > * > * Authors: > * Henning Schild > @@ -34,6 +34,7 @@ enum simatic_ipc_station_ids { > SIMATIC_IPC_IPC227G = 0x00000F01, > SIMATIC_IPC_IPCBX_39A = 0x00001001, > SIMATIC_IPC_IPCPX_39A = 0x00001002, > + SIMATIC_IPC_IPCBX_21A = 0x00001101, > }; > > static inline u32 simatic_ipc_get_station_id(u8 *data, int max_len)