Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp732999ioo; Thu, 26 May 2022 13:31:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZflcFqiBMRAJ1lyJA5CdKcVev2xI0HInspZ+RyHDIxVEJpdXwX5/qeP6q2sZEfCv3Gy1P X-Received: by 2002:a17:902:bf04:b0:149:c5a5:5323 with SMTP id bi4-20020a170902bf0400b00149c5a55323mr39620991plb.97.1653597104260; Thu, 26 May 2022 13:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653597104; cv=none; d=google.com; s=arc-20160816; b=d/UNbNvfWYZKCA/pUgJsW4ZKWY6MTH4PVb9n/Yoek7QrAJ2MG0Fr2FumKBxovqgbDa K5dDDuKoeg4dQ3EaxsVNiW6nRYdA3zNWjGEVCyw40DzfQbV4vkPoSkdhwUKFEYA9UWws SF4h85kRPPCyv5akjkT9Da7OPozLsiKKLUJxoVgTHAmVzr6gcvuIItFd07VdtZDQfmHe +QsfGbmDidd15tIxJeHeKkUZGwAp3GqmWqUQ4bZpOojcVC8LS+EXAVqAf12JaVT9AfcD DZniuj05SiR8NN96S674VEEd/TJqfTBqqL+542n8Hbd1Cl2x8cB84C45ka55lSf0h6Bu pqRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8HeN6KRb40WyARPYQFZIyhT+SZNu5PP/+lWy1gK9aPI=; b=boVW0CNtaT7b7DULxM18JRsp6fpcuV2iZ3WMF6HdxRT9IuqKHyLs4NRd+pKeWh82F2 mTbH9Y8yMUcVZue6419g/i97ubWZXIna8doipWijTwwXSa4yUaVnA8LJfOG8pY456lfv g6lo+Onn+JGJK4urmGs4833ph0O12LWwDk0hmuIv8Ba4ylmXhCzeSdAJ/OXFoBBWFneZ niIvrIESS7RBg3kDo6x+PFltamLz8+HAvMbj8PpSxo8aNpVPUQSF/iItFIXysefn1q8N tkrEWwjAQTy6vgCtAMbHlr3K/GlcwQj9v3MjbkoVTMh4vvwnJ4iwRaUtpUzU25uEF4Ev cq3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=O18kXhUs; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 19-20020a170902e9d300b001583459615esi3181548plk.86.2022.05.26.13.31.33; Thu, 26 May 2022 13:31:44 -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=@quicinc.com header.s=qcdkim header.b=O18kXhUs; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345250AbiEYVCh (ORCPT + 99 others); Wed, 25 May 2022 17:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345208AbiEYVCf (ORCPT ); Wed, 25 May 2022 17:02:35 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47107369DB; Wed, 25 May 2022 14:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1653512554; x=1685048554; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=8HeN6KRb40WyARPYQFZIyhT+SZNu5PP/+lWy1gK9aPI=; b=O18kXhUssYyKk4/nCYNfddkz6f/Wsk/fNXl8AEBejGNOupPXXt69S+GA FAo3EFrQqGhFFi4Na5Bk0+/rtxRD1Td4cFTqWHmLMReAbz9BAo4ODet6m 6+iNc458/HmBQTUfWnNPOvKk/mC82e92Zq5lvBkAHcD0hlBpNuHT0XT1M E=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 25 May 2022 14:02:34 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 May 2022 14:02:33 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 25 May 2022 14:02:33 -0700 Received: from khsieh-linux1.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 25 May 2022 14:02:32 -0700 From: Kuogee Hsieh To: , , , , , , , , , , CC: Kuogee Hsieh , , , , , , Subject: [PATCH v13 1/3] phy: qcom-edp: add regulator_set_load to edp phy Date: Wed, 25 May 2022 14:02:18 -0700 Message-ID: <1653512540-21956-2-git-send-email-quic_khsieh@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1653512540-21956-1-git-send-email-quic_khsieh@quicinc.com> References: <1653512540-21956-1-git-send-email-quic_khsieh@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 This patch add regulator_set_load() before enable regulator at eDP phy driver. Signed-off-by: Kuogee Hsieh Reviewed-by: Douglas Anderson --- drivers/phy/qualcomm/phy-qcom-edp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-edp.c b/drivers/phy/qualcomm/phy-qcom-edp.c index cacd32f..7e357078 100644 --- a/drivers/phy/qualcomm/phy-qcom-edp.c +++ b/drivers/phy/qualcomm/phy-qcom-edp.c @@ -639,6 +639,18 @@ static int qcom_edp_phy_probe(struct platform_device *pdev) if (ret) return ret; + ret = regulator_set_load(edp->supplies[0].consumer, 21800); /* 1.2 V vdda-phy */ + if (ret) { + dev_err(dev, "failed to set load at %s\n", edp->supplies[0].supply); + return ret; + } + + ret = regulator_set_load(edp->supplies[1].consumer, 36000); /* 0.9 V vdda-pll */ + if (ret) { + dev_err(dev, "failed to set load at %s\n", edp->supplies[1].supply); + return ret; + } + ret = qcom_edp_clks_register(edp, pdev->dev.of_node); if (ret) return ret; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project