From patchwork Sat Mar 8 09:29:24 2014 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: 25919 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 71BAB2055F for ; Sat, 8 Mar 2014 09:35:19 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id r5sf12392516qcx.9 for ; Sat, 08 Mar 2014 01:35:19 -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: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=kpmoyPd3m7IJ71PHuxzOEbJ2hx67mi6lsU2lCrCgJok=; b=ZKvY1ikOWCQ41xhE/KyINd3o2oSLK37kRNpe5gIDHwE7BrT68UCuTshgp5BICUzj2u oVfWcz51OLijG0K9P1+yCoAdPrwtcvsltFkozsMfyNmjrZzObuavZUeA+zDc5Y3i2HR2 ME1CJ3mGEj3QtLfFeVFccnVhnWFYX9IQM3OjxJ2bHAVhsimh72iPGJRKdwFNxNHZmDbD 6w7FyYpsgM/+DXbpR7VwgQVTcjkLFG+cYeLbGus9ScJjSgzMQafHmt4kAQL2y78MYfdD lsSf5yxkEb7b/Q89PjDhMeZacaQ+3+9ceBZbqpXFwqn1P1qD1uTIjAkiPCXcHm2+aUXZ qPRA== X-Gm-Message-State: ALoCoQlszdX6w6GHjtWgBlU3LB43AuUeH6fBhLlmjDMjwGpTJ+0jk3deTcNsfTgSPy9M/w3N6zEV X-Received: by 10.58.171.135 with SMTP id au7mr8111602vec.22.1394271319261; Sat, 08 Mar 2014 01:35:19 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls1539328qgd.52.gmail; Sat, 08 Mar 2014 01:35:19 -0800 (PST) X-Received: by 10.58.165.68 with SMTP id yw4mr14400088veb.17.1394271319125; Sat, 08 Mar 2014 01:35:19 -0800 (PST) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id rq10si2920185vcb.99.2014.03.08.01.35.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 08 Mar 2014 01:35:19 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id lh14so3232392vcb.34 for ; Sat, 08 Mar 2014 01:35:19 -0800 (PST) X-Received: by 10.58.187.133 with SMTP id fs5mr12111176vec.14.1394271319049; Sat, 08 Mar 2014 01:35:19 -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 i9csp173014vck; Sat, 8 Mar 2014 01:35:18 -0800 (PST) X-Received: by 10.66.151.205 with SMTP id us13mr27249689pab.93.1394271317822; Sat, 08 Mar 2014 01:35:17 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zj6si10851934pac.291.2014.03.08.01.34.47; Sat, 08 Mar 2014 01:34:47 -0800 (PST) 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 S1752608AbaCHJaa (ORCPT + 26 others); Sat, 8 Mar 2014 04:30:30 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:43001 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752382AbaCHJaI (ORCPT ); Sat, 8 Mar 2014 04:30:08 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s289U7l0000615; Sat, 8 Mar 2014 03:30:07 -0600 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s289U7F7004894; Sat, 8 Mar 2014 03:30:07 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Sat, 8 Mar 2014 03:30:07 -0600 Received: from localhost.localdomain (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s289TUGs006693; Sat, 8 Mar 2014 03:30:06 -0600 From: Kishon Vijay Abraham I To: , , Subject: [PATCH 23/28] phy: ti-pipe3: Don't get 'wkupclk' and 'refclk' for SATA PHY Date: Sat, 8 Mar 2014 14:59:24 +0530 Message-ID: <1394270969-11851-24-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394270969-11851-1-git-send-email-kishon@ti.com> References: <1394270969-11851-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=neutral (google.com: 209.85.220.175 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: , From: Roger Quadros SATA PHY doesn't need 'wkupclk; and 'refclk' so don't try to get them for SATA PHY. Signed-off-by: Roger Quadros Signed-off-by: Kishon Vijay Abraham I --- 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");