From patchwork Tue Sep 15 13:04:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 53646 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id BD93422A22 for ; Tue, 15 Sep 2015 13:07:47 +0000 (UTC) Received: by wicuu12 with SMTP id uu12sf8016462wic.2 for ; Tue, 15 Sep 2015 06:07:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=X7FWrqg1P6bN/7ln6DwdaNe3npJN48Trs1PgdTGknDE=; b=fDwAt9ag6G7cdNFNtoAg0XuGWbg0USV6iioPHleeQ7EGArVi+W934EGT5VVn7BxmHh 44LYtTMDjh/eBvxbpgJEP2NVMt9Hep5+xAP6E9GQvEg/8fe1AXOzlugUxLQASj1KV9XH 0xABjlWbNLAMN44wzB7DeILZl1zq0jy0sBrBMlycfNHC1OYhn18O2dd1XxjkSElLl5Pf WhdIibFwM6X5rX8afs7wlmCWv8JG1lvfkNrAi4LHxpdFWGggwHMd2o2nx0fXexTF8b6R Xq4nbaICBVWBa2Klz5d082wcNpZcSkM46ZRuqArPZmq4imXKFikfewJO6/RTLW3PDWeW VlGA== X-Gm-Message-State: ALoCoQktRaCfv6/BAIPAOTG2X6wpDEgJTw12E170OhdrQSinLloHyd1l3h2p76CvXD0VIIVtgUMI X-Received: by 10.195.18.100 with SMTP id gl4mr989407wjd.4.1442322467042; Tue, 15 Sep 2015 06:07:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.225 with SMTP id e1ls795616laa.108.gmail; Tue, 15 Sep 2015 06:07:46 -0700 (PDT) X-Received: by 10.152.6.162 with SMTP id c2mr14229201laa.26.1442322466842; Tue, 15 Sep 2015 06:07:46 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id xu2si11836941lbb.104.2015.09.15.06.07.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Sep 2015 06:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lamp12 with SMTP id p12so105873256lam.0 for ; Tue, 15 Sep 2015 06:07:46 -0700 (PDT) X-Received: by 10.152.5.170 with SMTP id t10mr6204396lat.112.1442322466744; Tue, 15 Sep 2015 06:07:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp1793805lbq; Tue, 15 Sep 2015 06:07:45 -0700 (PDT) X-Received: by 10.66.248.72 with SMTP id yk8mr47386864pac.112.1442322465454; Tue, 15 Sep 2015 06:07:45 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id uh9si15822168pac.58.2015.09.15.06.07.44; Tue, 15 Sep 2015 06:07:45 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752614AbbIONFO (ORCPT + 29 others); Tue, 15 Sep 2015 09:05:14 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:47982 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752311AbbIONFJ (ORCPT ); Tue, 15 Sep 2015 09:05:09 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id t8FD4r0C018721; Tue, 15 Sep 2015 08:04:53 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8FD4rZ2012267; Tue, 15 Sep 2015 08:04:53 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Tue, 15 Sep 2015 08:04:53 -0500 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id t8FD4Vre016139; Tue, 15 Sep 2015 08:04:50 -0500 From: Kishon Vijay Abraham I To: , CC: , , , , , , , , Subject: [PATCH v2 5/9] phy: ti-pipe3: use ti_pipe3_power_off to power off the PHY during probe Date: Tue, 15 Sep 2015 18:34:27 +0530 Message-ID: <1442322271-26230-6-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1442322271-26230-1-git-send-email-kishon@ti.com> References: <1442322271-26230-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , No functional change. Previously omap_control_phy_power() was used to power off the PHY during probe. But once PIPE3 driver is adapted to use syscon, omap_control_phy_power() cannot be used. Hence used ti_pipe3_power_off to power off the PHY. Signed-off-by: Kishon Vijay Abraham I Acked-by: Roger Quadros --- drivers/phy/phy-ti-pipe3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c index 1991efd..0ce4194 100644 --- a/drivers/phy/phy-ti-pipe3.c +++ b/drivers/phy/phy-ti-pipe3.c @@ -475,8 +475,6 @@ static int ti_pipe3_probe(struct platform_device *pdev) if (ret) return ret; - omap_control_phy_power(phy->control_dev, 0); - platform_set_drvdata(pdev, phy); pm_runtime_enable(dev); @@ -495,6 +493,9 @@ static int ti_pipe3_probe(struct platform_device *pdev) return PTR_ERR(generic_phy); phy_set_drvdata(generic_phy, phy); + + ti_pipe3_power_off(generic_phy); + phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate); if (IS_ERR(phy_provider)) return PTR_ERR(phy_provider);