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 A32C03B8BA4; Tue, 21 Jul 2026 20:58:02 +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=1784667493; cv=none; b=vEmVtydfkA7npEYLuf8zY6P5P3TjTMh5iFY6DBOGN43klxmBde/4UIkpMYBgWURJOBFg980TLE5csSZC5YKLhC0YetIq1avtBbcfpEp/HTBkyBzlVljG5ezy20NJEQdtIfSItXEFeGbpjToZ3TSlNVSL2fUFlrZEUnAOQ0HlRWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784667493; c=relaxed/simple; bh=43wTuHRJnEFXpDU3kdNX8dPjZiJbZHGHwVKhN4JnBsM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mi2rhjCNVYoo73IVeE49RDIthhTYK2+KYvGgjrZlne8Gk76ZZQi++bbJZEZKovpcQPFhC3ZUZSWm14bT1vY0dm23auLE7QHl7qLhtepwERjzdDea+hXNL6HRyaLViFmSJeLOj3rHik7PDBgXmqU2NDKYE6ICJc7s0n5u6JTqioc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ndHgWouw; 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="ndHgWouw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F05881F000E9; Tue, 21 Jul 2026 20:58:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784667482; bh=w0/NyeK0CPluetnMqnn/YdRr6AOJCF4hyGxksNOYUEs=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ndHgWouw+woLQY6vb1Ud8hYWofO229rrqYSpqx8aLMEcFIUC8PCPLKJbuIuDvCwop N6QpKMwCfQObtTB73tPCSJw9/Gpgw88mxG2r41C/nZlJMF4qG9d9+V4uYJ/axoH105 hK34Qozv9MC3rf+/HZ8JLqnZgfTR/Qcxgg65zoLU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Paul Louvel , Bartosz Golaszewski Subject: [PATCH 6.6 1078/1266] gpio-f7188x: Add support for NCT6126D version B Date: Tue, 21 Jul 2026 17:25:15 +0200 Message-ID: <20260721152505.937980349@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152441.786066624@linuxfoundation.org> References: <20260721152441.786066624@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.6-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;