From patchwork Thu Mar 6 14:38:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 25818 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E8D9A203C3 for ; Thu, 6 Mar 2014 14:40:33 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf6607880pbc.8 for ; Thu, 06 Mar 2014 06:40:33 -0800 (PST) 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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=p/uxBqGKEa0kEJrSLrhcfCF7uQPpAHHhLlEi6O6u9O0=; b=dhr7ehZlcWkxdTnqi3S64NkJ6e29kHzzu/f805shBwKn+OnRrKwVYPooEEK9frnxXw jqkX6reiaWCGspDHgWPhox8oWNY/9yop3S/Qd4f4ECDqUBgqhZ09iiTpKnizS7nSaGeH MsTJLiV+Sq9c/vfxe+05IoHowHVvJBErYvx8H/qoFBp0ko1HJtW7z1BpfSvXE9PMvo5V AqI/JeMEXoJHXK3IIMiGvrttHPfsA+fqZYajY5u9pTJX28WXO+6nOZV+y5wJ4x7zAvnH P3Nd93IQgnil9iExuYsvDzlCPbKNAmTOEAevGHLebcrIVogjyycGiXn6tu/l+XO5W8Py p4SQ== X-Gm-Message-State: ALoCoQmv5DLPpD8uISb7ejlJYZX5NIJLW3srUK39ODE4xuCzZ59i6QamylSui9KBev4BoLbXSalB X-Received: by 10.66.102.8 with SMTP id fk8mr5598483pab.24.1394116833110; Thu, 06 Mar 2014 06:40:33 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.88.203 with SMTP id t69ls787091qgd.87.gmail; Thu, 06 Mar 2014 06:40:32 -0800 (PST) X-Received: by 10.58.91.101 with SMTP id cd5mr5507641veb.5.1394116832939; Thu, 06 Mar 2014 06:40:32 -0800 (PST) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id lz6si1148845vcb.31.2014.03.06.06.40.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Mar 2014 06:40:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id lf12so2721401vcb.3 for ; Thu, 06 Mar 2014 06:40:32 -0800 (PST) X-Received: by 10.58.95.161 with SMTP id dl1mr5570999veb.21.1394116832831; Thu, 06 Mar 2014 06:40:32 -0800 (PST) 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.220.78.9 with SMTP id i9csp43303vck; Thu, 6 Mar 2014 06:40:32 -0800 (PST) X-Received: by 10.66.49.74 with SMTP id s10mr15146566pan.0.1394116831654; Thu, 06 Mar 2014 06:40:31 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qy5si5091864pab.311.2014.03.06.06.40.31; Thu, 06 Mar 2014 06:40:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-usb-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 S1753046AbaCFOjr (ORCPT + 3 others); Thu, 6 Mar 2014 09:39:47 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:55631 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbaCFOjo (ORCPT ); Thu, 6 Mar 2014 09:39:44 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s26EdF6I032369; Thu, 6 Mar 2014 08:39:15 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s26EdFg7002027; Thu, 6 Mar 2014 08:39:15 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.174.1; Thu, 6 Mar 2014 08:39:15 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s26EcoCT026929; Thu, 6 Mar 2014 08:39:12 -0600 From: Roger Quadros To: , , CC: , , , , , , , , , Subject: [PATCH v2 06/13] phy: ti-pipe3: Don't get 'wkupclk' and 'refclk' for SATA PHY Date: Thu, 6 Mar 2014 16:38:42 +0200 Message-ID: <1394116729-28811-7-git-send-email-rogerq@ti.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394116729-28811-1-git-send-email-rogerq@ti.com> References: <1394116729-28811-1-git-send-email-rogerq@ti.com> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rogerq@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=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: , SATA PHY doesn't need 'wkupclk; and 'refclk' so don't try to get them for SATA PHY. Signed-off-by: Roger Quadros --- drivers/phy/phy-ti-pipe3.c | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/drivers/phy/phy-ti-pipe3.c b/drivers/phy/phy-ti-pipe3.c index f141237..baa3f78d 100644 --- a/drivers/phy/phy-ti-pipe3.c +++ b/drivers/phy/phy-ti-pipe3.c @@ -294,16 +294,22 @@ static int ti_pipe3_probe(struct platform_device *pdev) phy->dev = &pdev->dev; - phy->wkupclk = devm_clk_get(phy->dev, "wkupclk"); - if (IS_ERR(phy->wkupclk)) { - dev_err(&pdev->dev, "unable to get wkupclk\n"); - return PTR_ERR(phy->wkupclk); - } + if (!of_device_is_compatible(node, "ti,phy-pipe3-sata")) { + + phy->wkupclk = devm_clk_get(phy->dev, "wkupclk"); + if (IS_ERR(phy->wkupclk)) { + dev_err(&pdev->dev, "unable to get wkupclk\n"); + return PTR_ERR(phy->wkupclk); + } - phy->refclk = devm_clk_get(phy->dev, "refclk"); - if (IS_ERR(phy->refclk)) { - dev_err(&pdev->dev, "unable to get refclk\n"); - return PTR_ERR(phy->refclk); + phy->refclk = devm_clk_get(phy->dev, "refclk"); + if (IS_ERR(phy->refclk)) { + dev_err(&pdev->dev, "unable to get refclk\n"); + return PTR_ERR(phy->refclk); + } + } else { + phy->wkupclk = ERR_PTR(-ENODEV); + phy->refclk = ERR_PTR(-ENODEV); } phy->sys_clk = devm_clk_get(phy->dev, "sysclk");