Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1512146lqm; Thu, 2 May 2024 18:42:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJmf3j5N5Pn/VRBkjyrai25V9rSe4GTaBP2UlvyeXm7o6Si7rbfZjBp8byXlGwPsI4RjOc6Fx4YykJCynorZuxma3E6ZgPvtR0HjmcmA== X-Google-Smtp-Source: AGHT+IEkNpLZYP9U5bGoBt5wuCOrIkHYeFRDbpimUGSeMjCt5szKnL9JJi1ACGJ1VG5xNEKnajJf X-Received: by 2002:a17:90a:6fc7:b0:2aa:b57c:b178 with SMTP id e65-20020a17090a6fc700b002aab57cb178mr1696456pjk.34.1714700533807; Thu, 02 May 2024 18:42:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714700533; cv=pass; d=google.com; s=arc-20160816; b=0wR2xwOP8+QisC+puB/mowYS6972hp29rW/lgCye7C28Zb1e/BYCfy+00evbgzXBgB pafSwxD4WnrLSrjElQCi4sOUEMPr0fSdI/i7scnMsyIIO/F85VBA92dMO77Hf99B06sz QXEv/SLjuM39ZVlY1siTSzeqWOiZ4vdH126vljUIkjsK/oDeFzjq9M8TjySNeG9QH3pR lu5vTWLBq06Z/CP9PdLvA9LoH3jrb7LMeMhJRX9Db+UBu1zUVut6jvHIymOdRbVQJI8v 9TeRmuHt5jXoYrjFt+oaAJljJyyfG9ntlymlnC71IP/FN30gCQf5ctez37UP31HhnSHI e/4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WzkfQ+4kIoMkXHz6XjF9YBYiVeBsZnV0svz918dX2Y4=; fh=QGJXzpbnQoRTf+//Ljm+sVRZbG1G7pRrM5SsEzhz0+s=; b=L0xx7476TT8W8SiwlJc9Ngfcy2CwgVmcVsIKAKEkUFWT1MKD6wRAWxh8AoGfU/QqLA IpsnPJUlJlbWhkL85AyUkdsXG0TAe5Y6tumQSfXUJ+nB3bc0PpDoOb8USE2R7bg9I1EH QprPb7MnCSJfRC124FIygHI2gb4a7nJ2I4+BLd+j/yNr4zCmRGF5O6CGtzhFfBqnq4cS xu0+G9YeVwRrHp59X1cE9hi4GDuuc9H6d8iLOadJpEgPe14riW/rK6mX7RhoiY6ClYW9 hKF/XonsfT1rzu7LrLgXXBefRbSxKH+sqG18WlGV9e9ImBk5sHgyzQTVimky0/49Z/jX oCyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQrYFdbw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z8-20020a17090a014800b002b118a7c2e8si2026204pje.44.2024.05.02.18.42.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 18:42:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jQrYFdbw; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167152-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167152-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4C5F9B23483 for ; Fri, 3 May 2024 01:41:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D53AFC0C; Fri, 3 May 2024 01:41:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jQrYFdbw" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9B816E541 for ; Fri, 3 May 2024 01:41:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714700467; cv=none; b=DtdgnA9s0/b/D8Vxc+8lZXqG9fTSEtH2NTiTIMW4YeNrTANR2i3nCQLtu2KB1QxTM/xj8khwDUDc3UFbV86A22Agy51fbRqnwOS+18YEACq0+ScTfH6EwnLepG7PMmfzACRQX1RaQx6vVuPBcbsCliFx/XHC7NCgWOllq3MXpgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714700467; c=relaxed/simple; bh=IGq7YAK1DyJEdi0gyI8AFsujwGjRxsNggeBJbUDhPHo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KaQYhHADpzPkV1mkgM7j5o3vOKdDye+CRRR0uItxgOnK2Y7XAsTXAjJTv19L6ib1B4qeNPOQvq9quIkWSQjaIQ+BbcOF8MCyWtVGcKwiP80o4TMhzIIP7gB3WDtj4VfS010yaUM3JK0g23cxA4VRnBdzXVFN7Nr6vrL0qM4AWqg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jQrYFdbw; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF0C4C113CC; Fri, 3 May 2024 01:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714700467; bh=IGq7YAK1DyJEdi0gyI8AFsujwGjRxsNggeBJbUDhPHo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jQrYFdbwGtgM+zHoTX5rdYIXT0pM8vKbi94UG08dXoxSqtMQPO8UUwVCpPVqzJf3Q f7z5tKjIQs30PyDXbpVZlrsky70GHoqo15ai+Eput/SV43Rpd0JzXB3ssRJKT2gqvO ZH8a3S6ADD7Vjwg+8LDtbxXzmdVgnFEmZCNvFACNBvUb1DTdCXznGZ+/idu0QrgPlV Ci8YOrQAmtrSh32FfzUc5y1Ot5fMpPCUrqi8a2STDNCjABxch8tDm2qwaa3hP945/y N96C3wVmYeXC6ulI5qaTDzrPl0cLHxtVgpH6gEFVuVY9fTbAJW5gAJmRQLnTea7eeT fXhZtcjDlLIBw== Date: Fri, 3 May 2024 10:41:04 +0900 From: Mark Brown To: Alina Yu Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org, johnny_lai@richtek.com, cy_huang@richtek.com Subject: Re: [PATCH v2 2/4] regulator: rtq2208: Fix LDO to be compatible with both fixed and adjustable vout Message-ID: References: <20240502073029.GA4055@linuxcarl2.richtek.com> <20240502092614.GA31518@linuxcarl2.richtek.com> 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-sha512; protocol="application/pgp-signature"; boundary="v3Pbxy3XR/i3izJR" Content-Disposition: inline In-Reply-To: <20240502092614.GA31518@linuxcarl2.richtek.com> X-Cookie: lisp, v.: --v3Pbxy3XR/i3izJR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, May 02, 2024 at 05:26:14PM +0800, Alina Yu wrote: > For the fixed LDO Vout, it will be set to either 0.9V or 1.2V, which are outside the range of 1.8V to 3.3V. > The determination of whether it is fixed or adjustable lies solely with the user. > This modification aims to ensure compatibility with the user's application. That's a substantail reconfiguration of the regulator, it would be better to have an explicit property for these non-standard fixed voltages rather than trying to do this using constraints, or at the very least have validation that the values being set are supported by the hardware. The code should also be very clear about what is going on. --v3Pbxy3XR/i3izJR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmY0QK8ACgkQJNaLcl1U h9AG+ggAgPDHwSBgOVlPGTgUQMeT5eYCmBzi9FIfmdiPaU88tF2UzX5hGzI0RuvB ntbNtCdIrgaF9Z8n4V+xIYoUhBK53+8+rNXR9YtAjJvK8DPhKLfH0dyEYzUl+Akt i38SGrUUfHcS6ZCWFCeK7Gvm3eE5yEIkhkG+rwhivnWiJOpx1HgUGO8Rz1gZbeyc 0/W6upAeHiSJkwwTYeWS2OBcS1aE/JV/+4BsW+gEmY49QZ83BeV2+00q9M/JInr5 mugnyUEc9aMaaTOkLZu8F3jzx4ys9nj3i+B7O/aXDDqjOqFFgxOC2t2Bg0bd6AKE 0/J8trkNef+nN15GAWLn0MQGepvTUA== =E/Hq -----END PGP SIGNATURE----- --v3Pbxy3XR/i3izJR--