Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp212083lqm; Tue, 30 Apr 2024 19:19:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmNaD3iDY7LS7IhJ8k5WdZt44XoSwYK0ObjHJNcbQmDB9FkA7cO9n/hnoGqXahjup6+I3AA5fsTKybJrsw3C2wAJXM28r+PTcfhYOCfg== X-Google-Smtp-Source: AGHT+IGihGkDwVodJeTnuws2rc884yCo24qmWzAWTiVe0K0uPK5LV0FILtFSFxKN67ooYau1Oc9i X-Received: by 2002:a05:6870:2187:b0:229:a2a4:58b7 with SMTP id l7-20020a056870218700b00229a2a458b7mr1363361oae.40.1714529959460; Tue, 30 Apr 2024 19:19:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714529959; cv=pass; d=google.com; s=arc-20160816; b=K89zhAzjSuUZ6J2t06vgdVhm44mU+zMVcGK9kh4yaTa2foYCwhSzVZ1E6AYDHOxvIg zTJALW6RF89b1MXqm78ZuIwez8u5PTHgFRs/U2VPBVipxoJs96/Muk4Ua64SyKBRfU2G PAPah8lOLnjRkt5AHy7uCtwYzm7W47FkYRlRbQcSI3wZ+PniLlCzm9U5vPBJjUh3kFqj QtkRyX3bCxOXXQgwFCpwR7ShZH0p8pqyvUAjaynvwy1VwoAraC4wx183iUZMv0np7xOJ Iie5Jum5AkzTR0Ffx9lBN6qpM3FG2JLFziu7b0a+xi4OiihfIh4s9/PL1IultMKLVSHC k5gA== 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=gEQMas1OQQaUFPmQ1FcXI0gtngb0aifotCfe4Gq2K40=; fh=QGJXzpbnQoRTf+//Ljm+sVRZbG1G7pRrM5SsEzhz0+s=; b=bH3D4jka8IZfxP+i1KwB9Uz/MLtVaqHcXpF7CRdUhtAxGyybBTZW5oRJEW85mqAAYg 3dRGH3EMa+w8DwAPEGiROx3Kr9bv+C1uzy4Ce5kxqtSiMisNSpwKcDJGWTHmyluIKFzb w9meZdiE4tWr5xHfCOnbOpvxyk0yzGj2fG8/FTGCqM9i6DjDgKHxs7XAujdvYAt3EzHY lspLtno5nzVjwhtfCUsZvhJ2wztphouK16nrSoi47xS2hzRpoO7YksZ0uEw/NGLo30JN tck6wGl0NwX0IDJBeBIgFviagcBfn1BjB758BvptaWuBUXEnKiqR5y4FdWSojt3MAazp +boA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jW1bmFjs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164873-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id a12-20020a65654c000000b005fd813310cfsi17897064pgw.503.2024.04.30.19.19.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 19:19:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jW1bmFjs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164873-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 137092834A8 for ; Wed, 1 May 2024 02:19:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 682C6134CC; Wed, 1 May 2024 02:19:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jW1bmFjs" 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 91EFD11CAB for ; Wed, 1 May 2024 02:19:08 +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=1714529948; cv=none; b=b7kvAvoTbgaUP70l2DpcADoiUjgD/Kgylzlg7IEfC3of2xdra9YN2dHSxPnYVtypBD8iA0ptANd3zdogMCOeo90wcK1UAxWkndw0vT03Ig5NS3u2WPiIQ2TZdDi62ywFaKy4o45l/geBmnq+DPU1U6ifkvkZFBqxggzJR/mrOoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714529948; c=relaxed/simple; bh=1VcapQ93ruE/UvGkBUNCPXJf+4grWuZ4C0nUxAGJUZk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zjspx0/El+FgZkhC87lU5hKH6Y2so4wtaDqcsLmxxw3ou4vlYf5AstjUE3P4DOgVgUp45ny46mdd4D6steCu7iaBgJiaqJKTIeEi7MIfsS5qJ7rVkDGt1nbC1sECX0TadUHeGvXjoJPY3NVcxaXqaAyVP82UKlYe6S/mA+PXOvg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jW1bmFjs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFD4DC2BBFC; Wed, 1 May 2024 02:19:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714529948; bh=1VcapQ93ruE/UvGkBUNCPXJf+4grWuZ4C0nUxAGJUZk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jW1bmFjsmZTi3mp9Z7tz1ja/LUhLRUlzj1eEv9RfkB+oebkJUgsBaSTcUUMA58lpP Yw5umspTsm2yipGh2fhzw9uJ/9o33V1fAXmL8pJiZj4pzBKuPcO+z0d/j4J7uX07zE /SrtJ2GMeFoztAOOPZvG/jbaicuH+wZdytL+FtKZiEig9rXzAgdjzWGlum4pVrduyY CSSCnjn21SIV/b4YUhyuOwew8+kFeDkQwPLGKbXp0IKR+kJb8Qv7WX+okz5PTcMDlh o2zKVMzZKWaJqn/VPVCltIvjSuP9Y7fptvLlZmtsiekqnIre5IjkoGBEa9AGlXdR6M Non6pqxksbbIQ== Date: Wed, 1 May 2024 11:19:05 +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: 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="yl7/Eyy5kVACNkCg" Content-Disposition: inline In-Reply-To: X-Cookie: lisp, v.: --yl7/Eyy5kVACNkCg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 30, 2024 at 05:58:25PM +0800, Alina Yu wrote: > In this patch, LDO's adjustable and fixed Vout settings are compatible. > The LDO Vout ability depends on the init_data->constraints. > If adjustable, the Vout can be set to either 1800mV or 3300mV. > + if (init_data->constraints.min_uV == init_data->constraints.max_uV) { > + desc->n_voltages = 1; > + desc->fixed_uV = init_data->constraints.min_uV; > + desc->ops = &rtq2208_regulator_ldo_fix_ops; > + } else { > + desc->n_voltages = ARRAY_SIZE(rtq2208_ldo_volt_table); > + desc->volt_table = rtq2208_ldo_volt_table; > + desc->ops = &rtq2208_regulator_ldo_adj_ops; > + } Why are you making this change? The operations supported by the regulator don't change depending on if the system is going to chnage the voltage. --yl7/Eyy5kVACNkCg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYxppYACgkQJNaLcl1U h9ApSgf+LgoXJNxcFSw3tb07ue63Ba7DUWaYbOaUrYuzQic4YN68AXn7b79upQWH LmAuIwHrohpDbvgPh2xNoC+sQhs6EHa6Pb9TlXelRg2Um4mMVGdrOWV34+wTgtm8 NdTOMLI1Y6uhYQZaxtZ5PN4TU/hjbqdUYfObsU4k6kjTbrmhlNXhH2BsM0gmQhg3 UiaWeMd7puJxf1SLu7vVWtOwFR/aGk4Yiy3hcJc0InTeHISdT3N5A3U/56UT/L65 0JDauDxcX1dPLnYcMLQx1mN44cAz0GgLbpzrGVnCW+9Pdc4lrcBAuJ32k6GzuSYv VJ1NIXVocd4Sg2zZi/r8BemcjzmnhQ== =F+eV -----END PGP SIGNATURE----- --yl7/Eyy5kVACNkCg--