Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2978109rwd; Wed, 14 Jun 2023 09:34:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ71Ew4nSi262i82Ay+K/zcFPX+qa2Mh9yy20NS6snSptI+7CxuClSWFeeHwKE86JjhBtPwc X-Received: by 2002:a17:902:d4cb:b0:1ac:6d4c:c24b with SMTP id o11-20020a170902d4cb00b001ac6d4cc24bmr13447069plg.3.1686760478628; Wed, 14 Jun 2023 09:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686760478; cv=none; d=google.com; s=arc-20160816; b=QaHc6rPJwL8f3xJlDIXRPi8ZYDaYiff91DPCRO7O4IVnpJT+OahsuClSI8VurEX3df 50yV6Gu7BWYbAQn2gj5TggkjVaXGpgkXTdt/VDuLRWsK3uoanzzzTwHwjuEEHO4+sOio MND06FfRV3I+1QPzyYhhEPi+DnC1f0LPp0RZcDom5cXR/ZM3+42Zw5WyMhIF1MQb7l+L lpEU3RhwuelpvgfT41W4nRKIyUvIYYG7ciq5+Xf51HzmPNsQv+/46hCPorcrFhvVbU+C WXgezAqONU/9+Mx+w7VaLWEb2JNjEWxpClrA5W+m+SWG7KfCapDrz96B0heZvyZyT4eu p2Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UIeUnyosIQ0XZoGJAMj+js3K0e/h9/QwcH0ekRkeYcw=; b=TDZBUXRxq/Wp2hEcAhEaN3H/4g2dJqI/Jypj011dhxaNACvc2TqH0Shxq6FVZdUY4c qohagbjVlSH5RnAgBPF76r5Ir28IWmpBNPHhcPccP55VKM94+iFfTO21Cha3dvKek73I 61QN+lqaiIaMF997NGoRISeS69k62eheBJO0c6JRL85pg8mUKZ3TB2ao/VJrOb1I04EN kqzbgXPqN1oiJQwsA2gzkUEEbfGbuMH65j9u7FZ42lopYvOK5whHsQW8HxA02hm+7waA xYHd5xSYZBrQJ9Hzp8E6Cp2axAN3F7yIVvTJ8oG1HEhUKidQxbD6kNVOBfVgvg++hpp/ sVyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lOZXkpqu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a170902ac9500b001ab2431f012si6800080plr.423.2023.06.14.09.34.25; Wed, 14 Jun 2023 09:34:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lOZXkpqu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232434AbjFNQPI (ORCPT + 99 others); Wed, 14 Jun 2023 12:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232288AbjFNQPC (ORCPT ); Wed, 14 Jun 2023 12:15:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E4B52101; Wed, 14 Jun 2023 09:15:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DE013641FA; Wed, 14 Jun 2023 16:15:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D78FBC433C0; Wed, 14 Jun 2023 16:14:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686759300; bh=osSAHvFKMIO/cCPOuijjFPZuIw7zTc4XSarO6SeGtKM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lOZXkpqughP+6yDHDr/iXuYUQQVJN3FV81lEUSxOLXPgZr7XkgKHHFKmFC6h5hPbD +stzTnoz+dtAuXrVeNO69NJyimoBs9NwtQfmOvfSOpZGi5Tpz1RHXSeLp5sTwOX5CL UHEb5HYyLr5+iWPros+latdXJOEtb3kPyf9YkF8WS6rIpGviBS8f9HB/gdRBqkPaLa Ol0w7bPpAbVl8IqcAQTymTp2/hiVSzUTVIRVDcVRFX7nY7Gkc3sg8kgtNbCervw3JH AUjZm/1v/l5uuIc1m+wbQ7se7ZDg4ELVWsu9fjrz2i5ryUkepRCIUpo1RmDZ+tpNNk dzz017m2frKFA== Date: Wed, 14 Jun 2023 17:14:54 +0100 From: Mark Brown To: Chen-Yu Tsai Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 7/9] regulator: mt6358: Add output voltage fine tuning to fixed regulators Message-ID: References: <20230609083009.2822259-1-wenst@chromium.org> <20230609083009.2822259-8-wenst@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FVyTKi8Xrk+toeDA" Content-Disposition: inline In-Reply-To: <20230609083009.2822259-8-wenst@chromium.org> X-Cookie: MS-DOS must die! X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --FVyTKi8Xrk+toeDA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 09, 2023 at 04:30:04PM +0800, Chen-Yu Tsai wrote: > The "fixed" LDO regulators found on the MT6358 and MT6366 PMICs have > either no voltage selection register, or only one valid setting. > However these do have a fine voltage calibration setting that can > slightly boost the output voltage from 0 mV to 100 mV, in 10 mV > increments. This and the followup patch break the build on both arm64 and x86_64: /build/stage/linux/drivers/regulator/mt6358-regulator.c:127:29: error: =E2= =80=98MT6358_VFE28_ANA_CON0=E2=80=99 undeclared here (not in a function); d= id you mean =E2=80=98MT6358_VIO28_ANA_CON0=E2=80=99? 127 | .vsel_reg =3D MT6358_##vreg##_ANA_CON0, \ | ^~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:525:9: note: in exp= ansion of macro =E2=80=98MT6358_REG_FIXED=E2=80=99 525 | MT6358_REG_FIXED("ldo_vfe28", VFE28, MT6358_LDO_VFE28_CON0,= 0, 2800000), | ^~~~~~~~~~~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:127:29: error: =E2= =80=98MT6358_VCN28_ANA_CON0=E2=80=99 undeclared here (not in a function); d= id you mean =E2=80=98MT6358_VCN18_ANA_CON0=E2=80=99? 127 | .vsel_reg =3D MT6358_##vreg##_ANA_CON0, \ | ^~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:526:9: note: in exp= ansion of macro =E2=80=98MT6358_REG_FIXED=E2=80=99 526 | MT6358_REG_FIXED("ldo_vcn28", VCN28, MT6358_LDO_VCN28_CON0,= 0, 2800000), | ^~~~~~~~~~~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:127:29: error: =E2= =80=98MT6358_VXO22_ANA_CON0=E2=80=99 undeclared here (not in a function); d= id you mean =E2=80=98MT6358_VIO28_ANA_CON0=E2=80=99? 127 | .vsel_reg =3D MT6358_##vreg##_ANA_CON0, \ | ^~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:527:9: note: in exp= ansion of macro =E2=80=98MT6358_REG_FIXED=E2=80=99 527 | MT6358_REG_FIXED("ldo_vxo22", VXO22, MT6358_LDO_VXO22_CON0,= 0, 2200000), | ^~~~~~~~~~~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:127:29: error: =E2= =80=98MT6358_VAUX18_ANA_CON0=E2=80=99 undeclared here (not in a function); = did you mean =E2=80=98MT6358_VRF18_ANA_CON0=E2=80=99? 127 | .vsel_reg =3D MT6358_##vreg##_ANA_CON0, \ | ^~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:528:9: note: in exp= ansion of macro =E2=80=98MT6358_REG_FIXED=E2=80=99 528 | MT6358_REG_FIXED("ldo_vaux18", VAUX18, | ^~~~~~~~~~~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:127:29: error: =E2= =80=98MT6358_VBIF28_ANA_CON0=E2=80=99 undeclared here (not in a function); = did you mean =E2=80=98MT6358_VIO28_ANA_CON0=E2=80=99? 127 | .vsel_reg =3D MT6358_##vreg##_ANA_CON0, \ | ^~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:530:9: note: in exp= ansion of macro =E2=80=98MT6358_REG_FIXED=E2=80=99 530 | MT6358_REG_FIXED("ldo_vbif28", VBIF28, | ^~~~~~~~~~~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:127:29: error: =E2= =80=98MT6358_VAUD28_ANA_CON0=E2=80=99 undeclared here (not in a function); = did you mean =E2=80=98MT6358_VA12_ANA_CON0=E2=80=99? 127 | .vsel_reg =3D MT6358_##vreg##_ANA_CON0, \ | ^~~~~~~ /build/stage/linux/drivers/regulator/mt6358-regulator.c:535:9: note: in exp= ansion of macro =E2=80=98MT6358_REG_FIXED=E2=80=99 535 | MT6358_REG_FIXED("ldo_vaud28", VAUD28, | ^~~~~~~~~~~~~~~~ --FVyTKi8Xrk+toeDA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmSJ530ACgkQJNaLcl1U h9DhkAf9EVYQutfKyk5zzsMdyzKxxy1jBQx4nck+rXG0YrNyCWLNpIvxcyZNwDfP GTkol0LepOtpOfVQVKnL3keDcs/vaP+q9Wy3++ZQHszZJWn6RapeZwNNfPQh03Ah hS0U8RTVbgfQ2fNSdw9he638sRwNQ5nX7WOT6EcW5EIPa1hy2tIiXryQ0MX+0T0I g7x2RANQx+Bbo1paDbHiF/38ZpR+RcfFhi/ZuLDCmhBTzenNht40NKGPbP8ZBrR1 xwyr1BMOyi++ISZ37nwUjpDL5o7PHdwLFYnEcXqNp2DsmeebwqbP3WXHA63dYB8r RXqDQFtdb7J4Dvh0ErXLr/Oj/+8bWQ== =w5A8 -----END PGP SIGNATURE----- --FVyTKi8Xrk+toeDA--