Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp327694rwr; Thu, 27 Apr 2023 01:43:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7pT5ocAIBHSTW12foAoRqSvu5K3D7UdxjoDWpOUCWl2kkjCJkycVgvH1fcqttZAUOAZ3qe X-Received: by 2002:a17:902:e850:b0:1a9:71d3:2b60 with SMTP id t16-20020a170902e85000b001a971d32b60mr1031134plg.0.1682584984745; Thu, 27 Apr 2023 01:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682584984; cv=none; d=google.com; s=arc-20160816; b=pVY8QXqmTRiAHPTO2Hkms1NS4DaDFBB/Yr3nWNUcjWUCpx/YMSrPTuRBfEBD88AY7a Vf6eJ7OAIO7MaWpxCqxBjBkba8uf1VKD1sh7DPqoLDy5xxurC2Zv2veNOMtMLQf29Ltg f5hVYFyZoujlkF/n915GSv1jFngm9ecZaLWy+rF5IYSdlzH42LTKOw5EPPVVVqRbdLf6 DrKV94mF/vPXyze1tfKhhXYpsMT7BIkK8WCP1d0oPbQ6x4qOHW1n0VRP+rNvQ8oSXBRK EG4jJVqTQpm/g00AdelOIrVYFdu7QAsrVXUvpWuOXcAyJmIFfkuC0E5WqgB5iLDMq/7X 7c9Q== 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; bh=bmObhfMfDSQO42B1vcLtLRDYfTVvb2zAq/aWWh4uZeI=; b=xyScku05SQy6rD0lBaHh9qrNBzpNuHdGF4esmgLFPiaEnWRCsA9bMVz7jBWMAZVk5i W2oxGvbg9YW8qd7oDsvXiWQ5xq/ynmuxRP5638G/AY/HrhAYwzL4HpCZjy9UAyl7SztN ieNxK3clhEuUO+TWAkDWj0GyU0QYL2C5YBQ85sT6RsyJotOYvZ0ajVt78E1Scl0PWEBw AB9gMKaHCQ6jbIMa1TVwD77gHvMrD4GIrt4uq97SoSVl9Cj0Ll26YbdwDZo8rb3X7BtH E7Khyfs6I2eXP/hv7wFEGvVmDfIAzrR0NRSqBdU2AJh4EW/Y7GTYA2qkMH76CGuRo3e3 /OFw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020a170902759100b001a511921c06si17624078pll.358.2023.04.27.01.42.50; Thu, 27 Apr 2023 01:43:04 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242904AbjD0IlQ (ORCPT + 99 others); Thu, 27 Apr 2023 04:41:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243120AbjD0Iky (ORCPT ); Thu, 27 Apr 2023 04:40:54 -0400 X-Greylist: delayed 605 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 27 Apr 2023 01:40:48 PDT Received: from vm3.sequanux.org (static.55.155.9.5.clients.your-server.de [5.9.155.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 81F8F4ED4; Thu, 27 Apr 2023 01:40:48 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by vm3.sequanux.org (Postfix) with ESMTP id 447661086A7; Thu, 27 Apr 2023 10:30:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at vm3.sequanux.org Received: from vm3.sequanux.org ([127.0.0.1]) by localhost (vm3.sequanux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C_QRgtPax6JY; Thu, 27 Apr 2023 10:29:55 +0200 (CEST) Received: from localhost (softwrestling.org [95.216.36.37]) by vm3.sequanux.org (Postfix) with ESMTPSA id 94A861080D6; Thu, 27 Apr 2023 10:29:55 +0200 (CEST) Date: Thu, 27 Apr 2023 10:29:41 +0200 From: Simon Guinot To: Henning Schild Cc: Linus Walleij , Bartosz Golaszewski , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Hans de Goede , Andy Shevchenko , Xing Tong Wu Subject: Re: [PATCH 1/1] gpio-f7188x: fix pin count on nct6116d bank 7 Message-ID: References: <20230425153911.32135-1-henning.schild@siemens.com> <20230425153911.32135-2-henning.schild@siemens.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Lk7i3m2T2NkJgXE3" Content-Disposition: inline In-Reply-To: <20230425153911.32135-2-henning.schild@siemens.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 --Lk7i3m2T2NkJgXE3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 25, 2023 at 05:39:11PM +0200, Henning Schild wrote: > The count was wrong because i looked at the wrong spec for the chip in > question. I now got access to the spec for that very chip and group7 has > all 8 pins, just like the other groups. Did you use the NCT6102D / NCT6106D datasheet in a first place ? If the only difference with NCT6116D is the number of pins on port GPIO-7, then maybe we should handle it and claim support for this models as well ? Simon =20 >=20 > Fixes: d0918a84aff0 ("gpio-f7188x: Add GPIO support for Nuvoton NCT6116") > Reported-by: Xing Tong Wu > Signed-off-by: Henning Schild > --- > drivers/gpio/gpio-f7188x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpio/gpio-f7188x.c b/drivers/gpio/gpio-f7188x.c > index 9effa7769bef..05c0edc4778f 100644 > --- a/drivers/gpio/gpio-f7188x.c > +++ b/drivers/gpio/gpio-f7188x.c > @@ -282,7 +282,7 @@ static struct f7188x_gpio_bank nct6116d_gpio_bank[] = =3D { > F7188X_GPIO_BANK(40, 8, 0xF0, DRVNAME "-4"), > F7188X_GPIO_BANK(50, 8, 0xF4, DRVNAME "-5"), > F7188X_GPIO_BANK(60, 8, 0xF8, DRVNAME "-6"), > - F7188X_GPIO_BANK(70, 1, 0xFC, DRVNAME "-7"), > + F7188X_GPIO_BANK(70, 8, 0xFC, DRVNAME "-7"), > }; > =20 > static int f7188x_gpio_get_direction(struct gpio_chip *chip, unsigned of= fset) > --=20 > 2.39.2 --Lk7i3m2T2NkJgXE3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEXW8DgovlR3VS5hA0zyg/RDPmszoFAmRKMnEACgkQzyg/RDPm szpmnBAAjOLLHaY/XpmFwJofHE0dYlcMU1TvJLrzVYngBLOXgJC1ItKIoinIdxqq ZT7M8iuEpH8/gJ0jcwWIOfnoZU0A4CF7CEeedW1c3ofrsOLipdrl4cdrQrO4+M0p WC1Kg+az2/Bi1IuYDzRZ1bcQFM3K6mJHOyFUFUjpPPabnPLpevBEx6t8mvBMu1J1 HeZN9Qvd9NNIKJw7osVAT39Azg7hoL+JRp2huGII0U0/4RnLwEFf4RfFc4cj9JBa tkYckAThgn6YCLhHl+GO/vrvtiIsJ07//I4LRKFPYOPF1O9fyXc3v9zJqVZLzk5T I962a+OIXC0nVyoHiRwfjMr5yZkSl0Zzjy8V+u3/YnWuxmNcaIFBY0YViIiS5jjJ q3lXewtwQlnEIti9/6qQN1wKWr54lBLtTu4/IPVbDzrbHQyz9Q9+4qfs3idyKwL1 jtQV5A1OnM2HDADW43qskGkQkdnC23zLC0TXk2L2S3K8twZ6SDcDjmwbxEbACZDS RyXu/DJIAJLAQEzWpfiHLPvcCe9C4yhS8zbvn4LLcs1lhwUWEJMLmrSE7NFTUmZq k6AXUsi/OMcN4cxOPwO5uzCRumm3EdklK4urSZp4FcKb6VGGmvgb9C07XnDx2M/V ay4WxrO0zySq8riy+0c9IA+Mp3zH4qqP7FX6NQb6IkEEkAiWgiU= =fkZu -----END PGP SIGNATURE----- --Lk7i3m2T2NkJgXE3--