Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp147010lqo; Thu, 16 May 2024 01:53:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuUxnzv6BQz3vX5XiPZdvLUxM1emBVZEYznrXqOevwpvImMmQCD3I97i7QZTlLLPxOp/Xs13DfSFiDVi1ThSQt4SYxxVeDOH2LnJdPRQ== X-Google-Smtp-Source: AGHT+IHoB76PLaXp9guYZhZ8f1hfeqAFttKPRAxxSkdd834DfgxOVDoqqtoO+vdpc4G3YSoFE5FD X-Received: by 2002:a17:906:3197:b0:a59:cf38:5339 with SMTP id a640c23a62f3a-a5a2d55a6e6mr1305196266b.6.1715849586886; Thu, 16 May 2024 01:53:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715849586; cv=pass; d=google.com; s=arc-20160816; b=xm1JRD+BwSvsyaMhsY+Q8b1+v2NswdZDmb7XXKoEikk8M67657dCulZKswSZX50DYk fIO0ea1l5J6POvAZFZnI6Deu+asHz+MtHDwVohjemBqpQE6b9bofg2ZARhh93gB8jViw PwrDzvY7P5sdmd9ccluy0JqenFp8f32xGzYHR4yU+es8y1JlXFMwOiQJL/RIz5WRKyok hZM5M0gwBuaoaX6sefnQtr/z1hqkcdDODFqxLxPaPjDCfCwF9Rq7L/xjdR6lMjF8xBAG avv0iduGRoSpdqABO0foAqaYwTRCjD1ocGDXxGX6DdunrSUoy8KilFvlZBFiVXKO5XOF +6xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=hBwoMBMjGCQnPXLlZjoQkBMRf+vVLmRtklv2WaJZwac=; fh=K4v4rPX0pRUS6ifNvS3DeEoW91pYLqcGPb3STmb/1mc=; b=I1jdFkl6JzG1K0vwartkvsewOP1+tEYOoyPJ4Ky1LdjHshlECTgt8khNmvw8dRsEV8 Yg6GY22gMk9gQRYVrHs+5VzphQNSKmBcH8kbdJ7g7Hfu/Fk9AziIXglkAB9NpGWNL9S+ rH/JI9yhmjcNHgnFGxlCLjnp5BgimOiYsUiPmXHrf8EkcJrO3CrZ5dDi3RoxtUYkdJBk VI0TRmASTmjEVsQVsDKUU1m4ewnK7nbgf3QnmYFg82o0J65sM5vyhPcLyQZvaaEhZkDX wNkrDz3AZ1HQyxTMgSMa+GxunOpn604fJBjftU5rZV0qJspC7TzJ5Fji4T4y0NWeiYJG Sy8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DdZW3PWR; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21c51si929754166b.357.2024.05.16.01.53.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DdZW3PWR; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180797-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180797-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9AB601F236A0 for ; Thu, 16 May 2024 08:53:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B45A6142E96; Thu, 16 May 2024 08:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DdZW3PWR" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E1722D054 for ; Thu, 16 May 2024 08:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715849578; cv=none; b=AUGM0bws4ON09r4uBbp9/thsnsKDow5q5DTtXSjevAneT2CpSFAfzVuvFqVQ2bryvt2ux7V4pymNDqGTmWpvZbnoGpWMvTMw/eUGMX0O7/GKAYCqGSNIb23L8pxDCxDQ2Oy4sNBNun3TmzPHKlRA9sF43OB9R6/5Ja9lv4iNX+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715849578; c=relaxed/simple; bh=SOFhZnbfrK+W7JMH+7jBr4uwGqHGYwqfkagAeEIjSZM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=fpaQI1DbmafDEtnRTWmJtk3D1Pn9GmE1xdHRAWzVuIdIO8hWcxDuPxMUVQ0A3+hzFKYuT/v59m8cerxaTQgkr04zSx83UnUCNTr+bqv9fMw321LzGVfyy1svR+057USeFooC9WATt4NFq68xpGk9d3cDMN+AktIgnb7k1ZGy1XE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DdZW3PWR; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-51f72a29f13so608329e87.3 for ; Thu, 16 May 2024 01:52:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715849574; x=1716454374; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=hBwoMBMjGCQnPXLlZjoQkBMRf+vVLmRtklv2WaJZwac=; b=DdZW3PWRDQH2KbUxeR2xGq14lrFJWTiqvt6OlhmF/1e1FRxFryUhmzcuXtbjt10BfW OD2etdukVOuO8hGC/GIVEgptdDfAA+hLk5gDRfg0s0M4Xk9LJp5974jzGZqcK+XRX8Z7 lMmvdsoq3r4cjvFIgD05ufNFpUHD0HRlVLKkxI03QGe5UI3FTlyUqNLW8L5xyyAvurik Rcd963Urpm+eGJYuXlL4aJC3pQR4QR2RLLzFZgIrqzyVQFvimiwiaMZXJghvmPpYF9AN A3LrZcajemrEmzLcFxbM8FTzU9OIRevxd5qsSxS0Zd2iUzH2Tm0qO7/o4jaiv2WcRYkx CnNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715849574; x=1716454374; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hBwoMBMjGCQnPXLlZjoQkBMRf+vVLmRtklv2WaJZwac=; b=tzRrgzYQJjZHGmM2CugdI9RRhTLxTDFdLRGqxDsjz6GBzPMGzN9rcZiXfZ2rOPX44U RAe6cviWPRJO7FoRB5K4oX4gv+YAt2N/QPQEY8cbNl0IMSDCuCBLpM04i+H3jTA3z6tr 59Cni50ytfH8+CJyoH3sWJX/Qd4xZvbCbGyBeOv0TUAIUT7Hqbgpk6+tPY2kXSsdAqmn LWBabs/7S9DpR8kJDjbDLJjtzAE578yuqXH2Ljg/0tWV2OJrUNdV3sUJlbKCOAsDQIlD CemXacFbU8D3x/eGMhjPdwNxktjr3JbJcfnRGT6iLfoYVCtnqOpoeHNnr/F1GdC9isVn 8bIQ== X-Forwarded-Encrypted: i=1; AJvYcCWrwKSRJUWcvqs2NVJebHE4IWOs3fdirDD4PiQqjJsvmT5KdrQLr+9AMCSaJ7otu0UyLp8LzC616ggxvrOQl+BbtPdwiqLyR3VVvqs4 X-Gm-Message-State: AOJu0YwhetZRAJDjBrVcd+aGy+ISmcaNlNcgD5F5suJeQlNyBT/xbRhB ITzx+vsc43pratsrVLC7l+L9uuVQkCOj/KoiMEFaPrM/RdmrQvD/ X-Received: by 2002:ac2:490b:0:b0:522:3817:6d4c with SMTP id 2adb3069b0e04-52238176e26mr9277531e87.68.1715849571976; Thu, 16 May 2024 01:52:51 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d33f5sm2907563e87.133.2024.05.16.01.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 01:52:51 -0700 (PDT) Date: Thu, 16 May 2024 11:52:44 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Matti Vaittinen , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] regulator: misc fixes Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZrHgggBSNMa7JqiA" Content-Disposition: inline --ZrHgggBSNMa7JqiA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This series adds couple of a bit unrelated fixes/improvements which I implemented while working to support yet another ROHM PMIC. Patch1 addresses a potential problem where the voltage selector for pickable-ranges is used in same fashion as a 'apply-bit'. Eg, when a regulator voltage is changed so that also the range changes, the effect of the range and voltage selector change is not taken into account until the voltage selector is written to hardware. In such case caching the voltage-selector value will cause the voltage range change to not change the actual output voltage. Patch2 is a fix to ROHM bd71818 and bd71879 low-power state specific voltage settings where some of the voltages were common to many states. The old behaviour was that changing voltage for one state caused it to change for all states. This had a potential impact of accidentally changing the runtime voltage when trying to configure voltage for a low-power state, potentially hurting the boot-up process. Patch3 is just a minor print improvement to help pinpointing unsupported voltage in device-tree. Series is based on v6.9 --- Matti Vaittinen (3): regulator: don't cache vsel to ensure voltage setting regulator: bd71828: Don't overwrite runtime voltages regulator: rohm-regulator: warn if unsupported voltage is set drivers/regulator/bd71828-regulator.c | 58 +-------------------------- drivers/regulator/helpers.c | 10 ++++- drivers/regulator/rohm-regulator.c | 4 ++ 3 files changed, 14 insertions(+), 58 deletions(-) base-commit: a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 --=20 2.44.0 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --ZrHgggBSNMa7JqiA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmZFyVkACgkQeFA3/03a ocWj0ggAqjmxyioG5eZWDWnRZhhWTOz5qk97OpSSyrQvopNcnpHR6mKdeMFB2Qi9 Xk2DpUH+FN6dNbEt5zXnYSMzWL7ohP2mOl65Ny1k/QnT7RuD2krxLENx93I7Ek4s /wfqBRNu2Hcw+9a2NYK1sumUz/H5o0vRgP3DzCbBhIh5JYO1ID4+bi7tHNm4Ufmj DOPzeDuocNNM/SuSoKbNDFjafAu1wzItMMSyUeFEem9lHa3iPbPNFEUWRQowaM6u oXzD+6cuWc+RuyvOn/Jvz/DEf3LfHadsm8jwI43PykE13s/MZHb7H7loyWrCe81e 6lMERZMBvu0J7Wand14vHmOYSPQBXw== =29Zh -----END PGP SIGNATURE----- --ZrHgggBSNMa7JqiA--