From patchwork Tue Nov 8 10:07:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 9417063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 219376022E for ; Tue, 8 Nov 2016 10:08:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1067D2892B for ; Tue, 8 Nov 2016 10:08:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04F602896A; Tue, 8 Nov 2016 10:08:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7FF52893F for ; Tue, 8 Nov 2016 10:08:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932696AbcKHKIl (ORCPT ); Tue, 8 Nov 2016 05:08:41 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:60312 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932212AbcKHKIk (ORCPT ); Tue, 8 Nov 2016 05:08:40 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 93CF3614E4; Tue, 8 Nov 2016 10:08:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478599719; bh=kZ7R/iNtWFs1vpYSHLS9neInMhVAt8b8XsnXtDfN6cY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cslXhIuTh1A8TVF0BOwYEtAnfXIDhw1JJl1aNZyAanXx7HaoeZ70oHW+IA/8LI6pr /90WYVYn6mKxygxR9pZnSKwEt2X90QjYmSFW6qyfKDTBzpX2WairqJeGZJ7T6kOzwq T15byrF/tKnRQW4K9GlBviTgfzdsY2FoQ+XcWFEk= Received: from blr-ubuntu-41.ap.qualcomm.com (unknown [202.46.23.61]) (using TLSv1.1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek.gautam@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3E0E1614E2; Tue, 8 Nov 2016 10:08:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478599717; bh=kZ7R/iNtWFs1vpYSHLS9neInMhVAt8b8XsnXtDfN6cY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CpAFaVoV7SVN6C7qGftGp+1cq6iX9kUxCtm0yfV2kJjAFSlQbZsCttlVyGKmhzohA TFtG6TzFL4emD9Xv7uAVyzHjp6bOWiisYvxNLjypzTKSeecb72Me94/hDq6StssQBV pFpBLo3Khwa35yYIMxgwgfFGT9KrIU85yI2D9uns= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 3E0E1614E2 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=vivek.gautam@codeaurora.org From: Vivek Gautam To: kishon@ti.com, jejb@linux.vnet.ibm.com, vinholikatti@gmail.com, martin.petersen@oracle.com Cc: sboyd@codeaurora.org, subhashj@codeaurora.org, ygardi@codeaurora.org, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vivek Gautam Subject: [PATCH v5 05/12] phy: qcom-ufs: Skip obtaining rx/tx_iface_clk for msm8996 based phy Date: Tue, 8 Nov 2016 15:37:44 +0530 Message-Id: <1478599671-13071-6-git-send-email-vivek.gautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1478599671-13071-1-git-send-email-vivek.gautam@codeaurora.org> References: <1478599671-13071-1-git-send-email-vivek.gautam@codeaurora.org> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The tx_iface_clk and rx_iface_clk no longer exist with UFS Phy present on msm8996. So skip obtaining these clocks using compatible match. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- drivers/phy/phy-qcom-ufs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/phy/phy-qcom-ufs.c b/drivers/phy/phy-qcom-ufs.c index b0171fe..3fa7b07 100644 --- a/drivers/phy/phy-qcom-ufs.c +++ b/drivers/phy/phy-qcom-ufs.c @@ -182,6 +182,10 @@ int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) { int err; + if (of_device_is_compatible(phy_common->dev->of_node, + "qcom,msm8996-ufs-phy-qmp-14nm")) + goto skip_txrx_clk; + err = ufs_qcom_phy_clk_get(phy_common->dev, "tx_iface_clk", &phy_common->tx_iface_clk); if (err) @@ -197,6 +201,7 @@ int ufs_qcom_phy_init_clks(struct ufs_qcom_phy *phy_common) if (err) goto out; +skip_txrx_clk: /* * "ref_clk_parent" is optional hence don't abort init if it's not * found.