Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp786866rwe; Thu, 1 Sep 2022 07:37:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5V7TnAfIIrvTD1Sn3o+6bkBS2y0IGLl8Yarpa2LS0zogP2BhzitzDcxzyFpJqTUvf6Tq+N X-Received: by 2002:a17:90b:3803:b0:1fa:ebea:e90e with SMTP id mq3-20020a17090b380300b001faebeae90emr9088168pjb.111.1662043071873; Thu, 01 Sep 2022 07:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662043071; cv=none; d=google.com; s=arc-20160816; b=WMCJal6wYpraCVozv0gPnQjpAWI+pehvhQUl4vBuVUDZrCC+f/SVRGIVTBBi67jt4i oEgFyKWrVVhJXegL+wwtYTK46LB9xEna6ndaLeqaxMlUf1drXu4Vso4Kddo91xx782MM mIxBWrgcJ06oeBNFW93S3wbX5ejk6hEMXSW3QRWNthJVFq13ntTUHKx1BSWMNqrNN58k 5pG3EGX7wt7HXYRHP/saXU7Pj8VXbd9KSwn5VC03ajwjF75IilPfXyZOwX2MqMWS6LO3 +ij6iwbeVn5NlwZjFDXeBa6bFC5VEXt43nLO1YcRokTRkHMgY5fQ6iWUmsJx8ZPLJdMx HVhQ== 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=7t86a/Rwz4UEXAxEsqFbp8XPc3B6sw3pJVS11c5HqPA=; b=ANoHMjPxoDgBIIckG9QxLUpDKc2BxNryiLb7Qyh2VnPBW0wjEDmwWH8QQtOnh6TDu6 Yo49H9m0wTea9xRd2yYDoxLgERf87rvfDzEyeg/WFIGCb4b/mBJWcHJdhR9kHtqSG2Rx 9Y1xIOzj0YI7cSyn3PvPLQcKottmIIAZF/6dGBgGLtZJKVDmIZeJx7AOmRV6LDnn/+Oo G+rhV04mlIkBkRF0I1WAcCnFLetyLuH4PQH9pC9mHBKXuLHZDvIV2Gt571eDKPuygOy4 1z03eB9AnAp7n3dYGJqZ12Q1OkAyomcdaRpsNR2Sg8eVTTFccewMTul6sNUEwGVI2hMF L12Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KUQyy4Hl; 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 7-20020a630007000000b0042bc59df111si7645361pga.305.2022.09.01.07.37.38; Thu, 01 Sep 2022 07:37:51 -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=KUQyy4Hl; 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 S234746AbiIAO0J (ORCPT + 99 others); Thu, 1 Sep 2022 10:26:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234722AbiIAOZt (ORCPT ); Thu, 1 Sep 2022 10:25:49 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12996D75 for ; Thu, 1 Sep 2022 07:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1662042283; 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=7t86a/Rwz4UEXAxEsqFbp8XPc3B6sw3pJVS11c5HqPA=; b=KUQyy4Hl5WIPUC2SjupxDGX07qIzRURYOs2YBznNs3Gt4moJPfp8mOGk2/CoRn9exHPSOC YujMll1EAqbDQ91/Z2C4HRIkNYL0mphC4jBxvAeqhKd6rWFosGBD+n/iqKy/ZEyMipTWUA 2BP2Zzw09d21zy2Zscv2jN4aMMzYZe8= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-491-9bWk7lKgO46TijqHdnmoPw-1; Thu, 01 Sep 2022 10:24:42 -0400 X-MC-Unique: 9bWk7lKgO46TijqHdnmoPw-1 Received: by mail-ed1-f70.google.com with SMTP id z20-20020a05640235d400b0043e1e74a495so11943250edc.11 for ; Thu, 01 Sep 2022 07:24:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=7t86a/Rwz4UEXAxEsqFbp8XPc3B6sw3pJVS11c5HqPA=; b=cpe/cnnrYXOH6PEuYn9jfteJGmkO5uokH7CKGHq7qYwZ+17rzpup9CmBKKvrmKdbry SJM0qY1xlTtQidcxhddud0t2gYjz9IotDnU8f7AdDrc8w1RR8NPcsl4Ho3BnoRfVYUTB 0zGDz+r9jMpYgJF8a4apfbU2nQWV7EadzYUn1I2oc9dTw5l+o7Ug4IXVd8umSRY33VGJ 7SyQzF8F2JW4ZCesz4VujF1lxEn1YILUVTR02YtuCfU5MmeWe564nMjCEziIAlJypm/U 6YTyOvrtHMQjHV6D7C4ALE/kAvbzKTNdv9oA6A6htQfTUlfh18/Wep/4juB+zo+K9YPJ cYTg== X-Gm-Message-State: ACgBeo1LhnSrIZVuuhYzK+glNak10JkSrvFXzEXPybC7/1w6mI4FHwRb m2/iTR8KpSkdpZyeqhzSx3e1bbg3gZxZTSN+D4EuLiNFgwmlEjjv1fNj+1A9PEyziOftqqEV0Op 0Z7XamlF1D7Ez5GpYdSk44VAB X-Received: by 2002:a17:907:75c1:b0:730:aa62:7f65 with SMTP id jl1-20020a17090775c100b00730aa627f65mr22949859ejc.355.1662042281159; Thu, 01 Sep 2022 07:24:41 -0700 (PDT) X-Received: by 2002:a17:907:75c1:b0:730:aa62:7f65 with SMTP id jl1-20020a17090775c100b00730aa627f65mr22949832ejc.355.1662042280901; Thu, 01 Sep 2022 07:24:40 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:d69d:5353:dba5:ee81? (2001-1c00-0c1e-bf00-d69d-5353-dba5-ee81.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:d69d:5353:dba5:ee81]) by smtp.gmail.com with ESMTPSA id f20-20020a17090631d400b006fee7b5dff2sm8671735ejf.143.2022.09.01.07.24.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Sep 2022 07:24:40 -0700 (PDT) Message-ID: <9a306d9d-1c47-e250-9cf5-fc6f5d2347de@redhat.com> Date: Thu, 1 Sep 2022 16:24:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v6 0/7] add support for another simatic board Content-Language: en-US To: Henning Schild , Linus Walleij , Bartosz Golaszewski , Pavel Machek , Mark Gross , Andy Shevchenko , Lee Jones , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org Cc: Sheng-Yuan Huang , Tasanakorn Phaipool , simon.guinot@sequanux.org References: <20220825104422.14156-1-henning.schild@siemens.com> From: Hans de Goede In-Reply-To: <20220825104422.14156-1-henning.schild@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 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_LOW,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 All, On 8/25/22 12:44, Henning Schild wrote: > changes since v5: > - adding patch to convert to pr_fmt > - adding patch to prefix macros with "f7188x_" > - rebased p1v4 to be p3v5 and added tag > > changes since v4: > - remove int case from a printk in p1 > - include tags into commit messages > > changes since v3: > - update Kconfig as well > - drop chip names from comment in driver header > - add manufacturer check for Fintek again, Nuvoton not possible > - drop revision printing for Nuvoton > - restructure defines again > - add new model 427G > > changes since v2: (p1 only) > - rename macros that change behavior > - use chip type not device id in the macros > - reorder defines a bit > > changes since v1: > - remove unused define > - fix bug where (base + 2) was used as second data bit > - add macros for "inverted" and "single data bit" > > The first two patches apply some style refactorings before actual > functional changes are made. > > Later, This series enables a SuperIO GPIO driver to support a chip from > the vendor Nuvoton, the driver is for Fintek devices but those just are > very similar. And in watchdog and hwmon subsystems these SuperIO drivers > also share code and are sometimes called a family. > > In another step the individual banks receive a label to tell them apart, > a step which potentially changes an interface to legacy users that might > rely on all banks having the same label, or an exact label. But since a > later patch wants to use GPIO_LOOKUP unique labels are needed and i > decided to assign them for all supported chips. > > In a following patch the Simatic GPIO LED driver is extended to provide > LEDs in case that SuperIO GPIO driver can be loaded. > > Last but not least the watchdog module of that same SuperIO gets loaded > on a best effort basis. > > The very last patch enables a second model of that same board type. > > Henning Schild (7): > gpio-f7188x: switch over to using pr_fmt > gpio-f7188x: add a prefix to macros to keep gpio namespace clean > gpio-f7188x: Add GPIO support for Nuvoton NCT6116 > gpio-f7188x: use unique labels for banks/chips > leds: simatic-ipc-leds-gpio: add new model 227G > platform/x86: simatic-ipc: enable watchdog for 227G > platform/x86: simatic-ipc: add new model 427G Despite the "leds: simatic-ipc-leds-gpio: add new model 227G" missing an ack from the LED subsys maintainers I have decided to move forward with this. The LED changes in that patch are quite small / trivial, it actually touches both drivers/leds and drivers/platform/x86 and the latter changes are bigger and it also has been Reviewed by both me and Andy. So I'm going for the it is easier to ask for forgiveness then ... route here wrt the missing LEDs subsys ack. I've just pushed a new platform-drivers-x86-simatec branch which contains 6.0-rc1 + these 7 patches. Next I'm to send out a pull-req (based on a signed tag) to the involved subsys maintainers and merge that signed tag into my review-hans branch (and from there it will go to pdx86/for-next). Regards, Hans > > drivers/gpio/Kconfig | 3 +- > drivers/gpio/gpio-f7188x.c | 275 +++++++++++------- > drivers/leds/simple/simatic-ipc-leds-gpio.c | 42 ++- > drivers/platform/x86/simatic-ipc.c | 10 +- > .../platform_data/x86/simatic-ipc-base.h | 1 + > include/linux/platform_data/x86/simatic-ipc.h | 2 + > 6 files changed, 216 insertions(+), 117 deletions(-) >