Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FA1B1A683A; Tue, 21 Jul 2026 20:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664025; cv=none; b=esF2OF5Yv0Dvkumxf/ReHks2IdS6ZEJZqedHDnr0Cwx7QQDdQSyJxL0XNe+DZc5bcM+JxCr+YZSQ41Izx+YiDe1WbTsouB5ks1xw+vaWkcZaqa6xVqWGk7UVjfX+8HRokq1949nfsEki8bGS1ymCHhmen3H2qaM0UH0oGNhyxQc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784664025; c=relaxed/simple; bh=cV5ptbs9zylQxWPJeIHdySo1DVPZ465nlALJxEgMg4E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=d5pRYcZ5RgEL/qOP4336H3ZqIXJwP60Z3NuqMwI5R/ucCoswO5LIigWeQD2EVNHXB0tIQGGV2WBVN5S2jn3kFrTWdFphOG8IlHB8NjWK77QPgyJZ1djAbZgYiUjyRmTh+CPUzHLxTL8fICe1x9j5/qAODnfpo7zBHe8Webn7iWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L8/eBjnL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L8/eBjnL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F9891F000E9; Tue, 21 Jul 2026 20:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784664024; bh=qj1GHYnky/JREazZsSlfJIU6GWfVvRd5j9VU7VSBr6Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=L8/eBjnLvEanr2DNV25uCZttQYOsNI7bVtrLNS/SrBByQtDn3o4/hARvFvWyxUSqQ PohXVL8pLbORMBppDlea3ewDM3Ykc4weHQupD8Z0Ep+22rXvfZkpBdHc0RtxIcWji3 jy8wSeQArwobqkuDiYDHww/faJQ1eb37McwaUVHM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Paul Louvel , Bartosz Golaszewski Subject: [PATCH 6.12 1043/1276] gpio-f7188x: Add support for NCT6126D version B Date: Tue, 21 Jul 2026 17:24:46 +0200 Message-ID: <20260721152509.325761985@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152446.065700225@linuxfoundation.org> References: <20260721152446.065700225@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Paul Louvel commit 9a6c0b6ea12746d50cf53d59a7e05fd83f974bda upstream. The Nuvoton NCT6126D Super-I/O is available in two hardware revisions. According to the manufacturer datasheet revision 2.4, version A reports chip ID 0xD283, while version B reports chip ID 0xD284. The driver currently only recognizes only the version A ID. Version B only contains hardware fixes unrelated to the GPIO functionality, so it can be supported by simply adding its chip ID without any other driver changes. Fixes: 3002b8642f01 ("gpio-f7188x: fix chip name and pin count on Nuvoton chip") Cc: stable@vger.kernel.org Signed-off-by: Paul Louvel Link: https://patch.msgid.link/20260629-gpio-f7188x-nct6126d-version-b-v1-1-a06226c02a2d@bootlin.com Signed-off-by: Bartosz Golaszewski Signed-off-by: Greg Kroah-Hartman --- drivers/gpio/gpio-f7188x.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- a/drivers/gpio/gpio-f7188x.c +++ b/drivers/gpio/gpio-f7188x.c @@ -48,7 +48,8 @@ /* * Nuvoton devices. */ -#define SIO_NCT6126D_ID 0xD283 /* NCT6126D chipset ID */ +#define SIO_NCT6126D_VER_A_ID 0xD283 /* NCT6126D version A chipset ID */ +#define SIO_NCT6126D_VER_B_ID 0xD284 /* NCT6126D version B chipset ID */ #define SIO_LD_GPIO_NUVOTON 0x07 /* GPIO logical device */ @@ -559,7 +560,8 @@ static int __init f7188x_find(int addr, case SIO_F81865_ID: sio->type = f81865; break; - case SIO_NCT6126D_ID: + case SIO_NCT6126D_VER_A_ID: + case SIO_NCT6126D_VER_B_ID: sio->device = SIO_LD_GPIO_NUVOTON; sio->type = nct6126d; break;