From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795023457; b=o7Kxv0rTPKAoMpx7KXRlFcpggQQth61fNo4mEpMlZKTbNU6ElBX0hhFclXyjUrkDy8Pj WP+CLzmi7NuBy/T7+pGw9+KdprL3OaslA/+nfm2vWCnaf9nX1cFff6E/wGmzBlF49xOdO Y/uIHgwQ+Yzj2DJMgDrAnNeH4xIutJy1RlyT85KsRYhH55dbecfrjW5abLxYrddysBty1 q3zIVrFrQPixHblVtuVcObVULyBMa0RaLqukl7ZKiziAJULM+kbpK78xQy24zcJzn5SoU mDyVR515NFnGzKdoKbQbpa0v9HxQpQw8pSIQeSOx9273Tn9TGz9PCY1r9ensSsoEZng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795023457; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=GkXu47p0masevPro08OinaXwQxP7Y9JZjO/rrauTtNM=; b=jit2BM4qV2+dBNZ7YdIrtIqgl5pBS0gtI5LU2oQKYW8Lqz32mkhQilkQld0vCVbpBRQO gVmKh3SHGfkVaRPkn+bDnqzSIo4PNzESxUz50XwhGkMMpo1VuqNI6zlWz3t/7P4Gm3IEA iRT2b5V22o65FkFPzU8SBVAwc5Gahpe0E1EJT70jIyQTdBP+lIxLX5tkvUv7GZNcdbT1B hojUd1CyYLwVvx2f2ratbq1I8+fO9z1B3Uk12OYyphgV8YHxnlEgOmLgntdLFBRpVPHk3 aXPxNKDcgYLLk6tqpsbKonS8tTLaKH+jbqOdpHZv+54vOTsne36aUqj8aZ8pvyv/nMQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BxjkaduJ; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36E90606CA45; Wed, 18 Nov 2026 17:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=BxjkaduJ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 480761F000C4; Wed, 18 Nov 2026 17:37:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795023456; bh=GkXu47p0masevPro08OinaXwQxP7Y9JZjO/rrauTtNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BxjkaduJyA7morl7HY4Sj4bJw4h0N29CmTWfP/KbK0uzJAf/uhCaaGQsZa8G0AJDw zvrOhZV7x6p8FJJ1/9z7LR61hjsWRyV0pvE/MkK/lC49wWEmWIY/PBYTS+Izr6xB8a IA0iIoCL3T6saMVgURNZ0kFd9mXpbkyxi79CEU4w= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Linus Walleij , Mark Brown , Sasha Levin Subject: [PATCH 6.18 0375/2151] regulator: ab8500: Treat cut 1.0 VAUX3 as fixed Date: Wed, 18 Nov 2026 15:35:10 +0100 Message-ID: <20261118150135.753329272@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150121.603863898@linuxfoundation.org> References: <20261118150121.603863898@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Linus Walleij [ Upstream commit b9fc8a8d31b914b09329240f532ff0e9c00cd727 ] The early-cut workaround currently gives AB8500 cut 1.0 the 16 programmable VAUX3 settings introduced with cut 1.1. On cut 1.0 the selector is not programmable and VAUX3 is fixed at 1.2 V. Register VAUX3 as a fixed-voltage regulator on cut 1.0 and retain the 16-value workaround only for cut 1.1. Reference: AB8500 User Manual, UM0836 Rev 3, p. 240 Fixes: 2b75151a1041 ("regulators: Added ab8500 v2 support") Assisted-by: LLM Signed-off-by: Linus Walleij Link: https://patch.msgid.link/20260901-ux500-dts-snowball-regulator-v2-4-fe88b01829bf@kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/regulator/ab8500.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index 5e24e6cdc7732..42cb8dfdc7c90 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -1783,9 +1783,14 @@ static int ab8500_regulator_register(struct platform_device *pdev, config.driver_data = info; config.of_node = np; - /* fix for hardware before ab8500v2.0 */ - if (is_ab8500_1p1_or_earlier(ab8500)) { - if (info->desc.id == AB8500_LDO_AUX3) { + /* Handle the different VAUX3 implementations in early AB8500 cuts. */ + if (info->desc.id == AB8500_LDO_AUX3) { + if (is_ab8500_1p0_or_earlier(ab8500)) { + info->desc.ops = &ab8500_regulator_mode_ops; + info->desc.n_voltages = 1; + info->desc.volt_table = fixed_1200000_voltage; + info->voltage_mask = 0; + } else if (is_ab8500_1p1_or_earlier(ab8500)) { info->desc.n_voltages = ARRAY_SIZE(ldo_vauxn_voltages); info->desc.volt_table = ldo_vauxn_voltages; -- 2.53.0