Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753493AbdDKKCx (ORCPT ); Tue, 11 Apr 2017 06:02:53 -0400 Received: from mail-by2nam03on0061.outbound.protection.outlook.com ([104.47.42.61]:54636 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753227AbdDKKCO (ORCPT ); Tue, 11 Apr 2017 06:02:14 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Dong Aisheng To: CC: , , , , , , , Richard Zhu Subject: [PATCH 6/6] regulator: anatop: set default voltage selector for pcie Date: Wed, 12 Apr 2017 09:58:47 +0800 Message-ID: <1491962327-12477-6-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1491962327-12477-1-git-send-email-aisheng.dong@nxp.com> References: <1491962327-12477-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131363785324595587;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39450400003)(39860400002)(39850400002)(39380400002)(39840400002)(39410400002)(39400400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(36756003)(305945005)(47776003)(5660300001)(2351001)(5003940100001)(356003)(85426001)(106466001)(50466002)(189998001)(6916009)(104016004)(2950100002)(6666003)(105606002)(53936002)(48376002)(77096006)(50986999)(76176999)(81166006)(8936002)(8676002)(8656002)(33646002)(4326008)(50226002)(110136004)(38730400002)(39060400002)(2906002)(86362001)(575784001)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR0301MB1289;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD008;1:ZIpzUvUKL4SH7kUFVOjxHmndLUohhpBuHsPCch47YeDDrBh90cvRilNptTdahMgZJ5Ps0DkXcVXHPw6MtuI6RdfJzjns/YHiaWVjxqzIGQ1h2eJyQfTdhGo2dLpabtiSX/vGZuFDYOe1+ulhEmZXqLYUwK1Ikgg07lDVUOFDNbvrcQ4YPaeo2G8okkvHNnwTUcGOvXBdW7E1ho1V7epI3d+TW43R9mAnmu1DeT5gaBcbicGRHv5NIZ0Su6bEUVQj/r/hjws1xD+pY9PTsc5Ik7Tma7HUt9KJUYC4vP7x6d69hRMBsCiJhkhOBEuPYUk2g5hPsOCBSFggn9ntO9NcQq+YNQn7z85pKC5oVc4yaKst+E7xb4Iq8H9kG39oC13Kjyrepbh+jJO7ubSiDu9xudUxfCKvt4GEeCp5kuVJiYxbqDAAzIVaaOPIf2g8CPMAp4ai4CTpL7YC28g38mPHt3tUzrgSFhskEsuz6TstebFUL0IUh1uVjwabuYbFgRZ2us8DRIsCJArz31W+XiBbnVLL94rsH4oImrA1ibgxoHq2RWASqSPFGmfMQcPdiE1SLXWymQ79o5n3sBFsfMsDj9qEF5chmjliNLGk00QCAaUg/IBmbYvkvG4xq9khXIqFh8XJm+ADg7WO6m6MfKvu1KxPowdkq8ZRkinja2tGK3SKTdbhBdUxjblTekTDmvhZDmpcCN8byJCKxUqIzsNpFFzl5ou9YhgORlXC7WOzBuk= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 17950128-416b-45f6-7e83-08d480c1d303 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030255120)(201703131430075)(201703131517081);SRVR:CY1PR0301MB1289; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1289;3:xg83lRHyl6hpWiAgSKyHieh9/ngwOjye/wOw0Pj9WBbiwvECVcXjMjmUKEPSYVxZQ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8tJ/7eErJYwcAdUIWMyw+H/I2XoPnKoJ/XlyzZLIyTho5bOOkav7sJeFHdvayCXvIDSrqYRgABhZjeS5fxxF3WS90llY/KHdJzHiD+yvlF+FmaTZOVko/osjkzzSvm5WqH03+0CjLaMSdsAAdvXGeo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6095135)(601004)(2401047)(13015025)(8121501046)(5005006)(13017025)(13024025)(13023025)(13018025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259075)(20161123556025)(20161123563025)(20161123565025);SRVR:CY1PR0301MB1289;BCL:0;PCL:0;RULEID:(400006);SRVR:CY1PR0301MB1289; X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1289;4:Ts9WHcKJxFBk1NMcOixjdvhvTjwggpXQwSXLKAh6KEncJIC28e5xaDmrJTKAiFWSUaW6LLX/V7D2m+LMoMPTPMUHgY6QKMYz6Kc0u5Dwg80SW80SJlL0e4ev9KWyvxbt9ZHfAaTLtjoqfbB5PJb6rMWATgKbjOBzbG6xFxQqSYfqbGA5P4tBhmQhmbz05jXvgmKVTbLSG5OCQjcWnv9r0VhJAE6WmF4z1bus9VAlgUO78cVjPFq8LrVUX8Ev2ph11wnfqBosOBrNRaKzrJ4lsjJr5Pm6qeEsIEQQV4Br1zXS+MWdJw7B/Gzoin2QPYMOjglmiD4RLqWKuHaAfeJ1cHdyYNq4eE0uJBEF3arClfinNwNy47aLqOx2j+QRdlxVYirCObEYcRbEsGpYO2ZivxExalmDwWQx42nY+WsSEWA6PAHAIt1By53U3HaTuRnt6zT/OUZUkkUjpJ+EvedYjM9jSYJYaZ7umQ+e5zXiwY5CyaGaz+HKxdpsp6cflNcEYUjaCdML9qMppoigR6OZscRys45QKH/b2PEQjwhZRF6rgyLSH0+vZVI7feQHmUCQp4YTGNgt5djBO0BJxliAPykl2ca/34pkVuBAz8GjLJedMgsOg3B2Wk6jnL4ZdDLPWScaU9Y5mmxdrmHn6LAZWit2a6trW9OQOTG14UNh+AWsp1CK2vLaC5FoFicHbwZgNTUpvliFihWOLy9YsUzfXnW42RBYLw40pxSk7Ms9O2G18tH11+c3b0AfrXh/QNgauEpgCq9dtVXzFBVcbXU2JJiOBOqVEB/DKXdOnK3HcIe5k5arUNjqnugyMl706/9ebmUPDzNAfglrCSG+TiuEq/86bh2jqZceKy1p+FZXrF1h30tfrZJwaTurMCphdEGWFXXIwXO8VqiYMbACOEoN6nWePD+FppkFv0JjpedQTLg= X-Forefront-PRVS: 0274272F87 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR0301MB1289;23:o57qDgJZsvZ/SfHdJh5pW6IVxmH3zwOIhVq7RzJ?= =?us-ascii?Q?24TdiDj3D0Kikc+Z+x2yZEgZQnm4GEfkVR5CSIpLiGX4cBWNV3HjxGGQbP4h?= =?us-ascii?Q?rv/mXsZr12a+2UzPLh+tMKco22VOGPmXDRMIDJvU0shftNJ49no27ylcYYhA?= =?us-ascii?Q?3LwEv0+h+dctiCfpmVTh3fDUq3UAM4Vq0HTcxAiC4jS2k+5hxzmS1Apu43GB?= =?us-ascii?Q?jyZ351skOclKP1NqzivsIAFTuArOti4yJhldyVnwZHbhltLUU6cmwLtByy/0?= =?us-ascii?Q?JizTQEoqfsCaw2FuDe6vCEtykQkzG6iPh40akwuP4UF2Hs3gQIvTJT4s6hVK?= =?us-ascii?Q?UrRbh/H9E4L1USGX60zAc+gN2WiEuiXAcxoc1lSa7oxdnFliCrgy/nb+Ttw7?= =?us-ascii?Q?8CprmFF8ovBgOLzavObpoREkfGXzlK7FmYg2/QYcaJB01RjGjjX1Vr8sPRLR?= =?us-ascii?Q?rlUtSIVMiN799hm+iAqHsQMXzKI5w/or/y0iKAR26fNVPlbsKJlN+bI2gCmM?= =?us-ascii?Q?oPaPeTcrdF12Kto60jD3UqtCz8o5iMAvchxWk4q33dqc+Szz8hOxwomn8mXx?= =?us-ascii?Q?iOTxT2uV434na5iCSHBNH1JXZPMIu+5TcIVjvdRzFuC+UqzbOCQaobadjJmI?= =?us-ascii?Q?c3KGlC67mzBGL6LzsrfiQUpUx4LWRi2BM0gMDj4hmsA3vX4uLG67REziatLF?= =?us-ascii?Q?V0hOW7ilI+eS4HPT8uVUlz/2v7RstZYLeVPXTls/SGGA/1HEUuzvLUL1narJ?= =?us-ascii?Q?U/h3OnYQ3lmOEbwfEZM/hKZul2W1YZCCbq0tSsghWHT3zrkke+TP7gRyl7Cy?= =?us-ascii?Q?rvqCc0WqMsKwTT7y+G4Xi5LdD77356moqZmMZBvQHoypuu2BdSMSKEHbPrak?= =?us-ascii?Q?WeLQasI7X11jw9ciZsiYorvoZqS6agkminmoycOr3P8mC+EE+JYGaWtd3vJI?= =?us-ascii?Q?PdgNG35qMTos3a6SIfAQ5zBMkFvi0K/3UXSpeGbap5s/XpF2G3A5poeANV7P?= =?us-ascii?Q?nMgR4bKdLzvhPk9rBXVu2zN3dKpISvv1qh6OxRBMSGG5FOV4KUXi079ZGkn5?= =?us-ascii?Q?sYoRVKLZqyXVGZhhT36WPunit07AfzoVQbC4mMHosyBHBx70poGED75m+s8s?= =?us-ascii?Q?zMlvBMpD0iIM8Egjb2ObmjF/U1a5tjkSK/r3S2okvCNRbUXdH4kqMa9gmIcY?= =?us-ascii?Q?ncEqXf+Ue2+RPAesGSVYsNr1eQNxmxpi0bBNfRQ7PIhqY+f0lZTLX8AyfCtG?= =?us-ascii?Q?22WQXBHhjmPuAElViIP5I2RoB1vBJIMC+GzF7o460?= X-Microsoft-Exchange-Diagnostics: 1;CY1PR0301MB1289;6:reJXGWao6lftn4ddI2rSUzcjKJv3eJQyfp4PsqSyfnOOl2/ZVcYoJIHA7G1LNrW18OQyWRNp+JqAfttxzJFWS/04MEVjMog8SuT2bSQuTou9RsBepAiPBYvJus8AhOS9tNeBDa9b7nOPTXoMGH3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rivalTime: 11 Apr 2017 10:02:12.1319 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1289 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1379 Lines: 37 Set the initial voltage selector for vddpcie in case it's disabled by default. This fixes the below warning: 20c8000.anatop:regulator-vddpcie: Failed to read a valid default voltage selector. anatop_regulator: probe of 20c8000.anatop:regulator-vddpcie failed with error -22 Cc: Liam Girdwood Cc: Mark Brown Cc: Shawn Guo Cc: Sascha Hauer Cc: Robin Gong Cc: Richard Zhu Signed-off-by: Richard Zhu Signed-off-by: Dong Aisheng --- drivers/regulator/anatop-regulator.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/regulator/anatop-regulator.c b/drivers/regulator/anatop-regulator.c index 6da0b20..910adfd 100644 --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -301,6 +301,11 @@ static int anatop_regulator_probe(struct platform_device *pdev) if (!sreg->sel && rdesc->name && !strcmp(rdesc->name, "vddpu")) sreg->sel = 22; + /* set the default voltage of the pcie phy to be 1.100v */ + if (!sreg->sel && rdesc->name && + !strcmp(rdesc->name, "vddpcie")) + sreg->sel = 0x10; + if (!sreg->bypass && !sreg->sel) { dev_err(&pdev->dev, "Failed to read a valid default voltage selector.\n"); return -EINVAL; -- 2.7.4