Received: by 10.213.65.68 with SMTP id h4csp249310imn; Fri, 23 Mar 2018 03:55:27 -0700 (PDT) X-Google-Smtp-Source: AG47ELv8G/PcRq6X7jNf/YanLwndETVYtbsQy/pQKFNOVgLF6rN16WQj1XxtigA84Q/ofMSyxUkZ X-Received: by 2002:a17:902:468:: with SMTP id 95-v6mr29313344ple.360.1521802527072; Fri, 23 Mar 2018 03:55:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802527; cv=none; d=google.com; s=arc-20160816; b=r4nONW48qaDPLsWld0Q7GPpAYuFhd7E/20fxRCfYB7W+t0UXiHDMZIDuLfh4Ze2h88 kKz5oNrfaOlhMefGmNqubY/meIuQfR1FnG04VPb9BDUApsWdatRelnKXYQfAdJePRKD5 Oz6kEBUbSwkhwHHKoAWjfERuZqN94pw2QwAkeC7OqPssnUm8+wcFBnh/fCXVZFobxxML 2zB/rt/1Ti2tqldn6oMJk84lKIrWnEwfcaBNTmA+0neBI7AmJnKRUB8dw+mTltT/fPeM FjKVVi5cyK5FeOhTL6uuOpFauJXu058JEqli4yLuNuqkWewyN7Oj5bS/IiApda6GVuF8 GMyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jGyU++Z9lsLgAadIDx3GTThrYNlW1Yo9gRV6uhdFzJ4=; b=Z5qF2Uty9FPIdrRRTQtbK/0F7IhWhSNvX3Ho841NR+YeWQl5zZnF/kkGnb9PPKaCaG MSqJnSGN1B+dbba6dmMNjxi+6/vcesVzM8cVDRWg53FosIzbm8jpMK3IXZOenyfl8htd 03AjokHgzKp+im3FTO5OvWTCbWe1znZIS6WOGZrUv0+USe4PS5gmoLHM12kVFv9lgzf3 2FPRmGfKvghXFtB0qRQnKzC14MOBu1ODnArOLmv0hSWLda11814+ubjsWxmPIr+bUdJJ bRJMa7PrBO4IFJZIOF0XMsWCAfUs8urAqdKFp9PDt53IMZqa+H7M6XvawgG76nL4uXJQ zjqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si9211168pll.57.2018.03.23.03.55.12; Fri, 23 Mar 2018 03:55:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755900AbeCWKNg (ORCPT + 99 others); Fri, 23 Mar 2018 06:13:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44876 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755860AbeCWKNd (ORCPT ); Fri, 23 Mar 2018 06:13:33 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id ED0641216; Fri, 23 Mar 2018 10:13:32 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liam Girdwood , Mark Brown , Shawn Guo , Sascha Hauer , Robin Gong , Richard Zhu , Dong Aisheng , Sasha Levin Subject: [PATCH 4.4 07/97] regulator: anatop: set default voltage selector for pcie Date: Fri, 23 Mar 2018 10:53:54 +0100 Message-Id: <20180323094157.939739673@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dong Aisheng [ Upstream commit 9bf944548169f6153c3d3778cf983cb5db251a0e ] 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 Signed-off-by: Mark Brown Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/anatop-regulator.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/regulator/anatop-regulator.c +++ b/drivers/regulator/anatop-regulator.c @@ -296,6 +296,11 @@ static int anatop_regulator_probe(struct if (!sreg->sel && !strcmp(sreg->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;