From patchwork Sat Oct 29 20:22:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 9404119 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 4C833606DC for ; Sat, 29 Oct 2016 20:22:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4042A28E66 for ; Sat, 29 Oct 2016 20:22:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34EFA2914F; Sat, 29 Oct 2016 20:22:53 +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 DC53329155 for ; Sat, 29 Oct 2016 20:22:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755375AbcJ2UWw (ORCPT ); Sat, 29 Oct 2016 16:22:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46420 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755347AbcJ2UWv (ORCPT ); Sat, 29 Oct 2016 16:22:51 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2CE53616B4; Sat, 29 Oct 2016 20:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1477772570; bh=G5qENjzmDMAqn3bl83KnJP0oIpinrZS7n5++3WBCZDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DiAdDtOXjcnPlqsJuQnhbxPomp85qXPJlt6rXGEj42cDO/sG9bKjqLv+tEWsr3J03 bQp8u8iMjKCgbtSErkYIFGBMsQA+tvjuvyYirdCTNlLjoa4dO6PWGrA6Px5PuHhiQ4 CMiOQ3iAFGJGQGUWjNjw2qOcWWR7ulI4a8EL0Nv4= 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 5234761712; Sat, 29 Oct 2016 20:22:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1477772568; bh=G5qENjzmDMAqn3bl83KnJP0oIpinrZS7n5++3WBCZDU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnSaArpYPGBJDndqmu3dRniAd+Bsx3dXeWxVlojlrONiv/ZSvDefoDXLW3viHaXys 0kEIRV7qzuPZpZyI3HRh0arNCyeU6gGDUhoBOnVdLhYG11xB8bOWocL7cxpBnp4ZD3 qw/pT4HXNs1SymKYbzf5k4JIc59K552KEU5v8mwI= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 5234761712 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 v3 05/12] phy: qcom-ufs: Skip obtaining rx/tx_iface_clk for msm8996 based phy Date: Sun, 30 Oct 2016 01:52:07 +0530 Message-Id: <1477772534-14170-6-git-send-email-vivek.gautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1477772534-14170-1-git-send-email-vivek.gautam@codeaurora.org> References: <1477772534-14170-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 --- New patch in v3 of this cleanup series. Comes in place of the following patch in v2 - phy: qcom-ufs: remove failure when rx/tx_iface_clk are absent 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 a173b30..11c8cae 100644 --- a/drivers/phy/phy-qcom-ufs.c +++ b/drivers/phy/phy-qcom-ufs.c @@ -184,6 +184,10 @@ int ufs_qcom_phy_clk_get(struct device *dev, { 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) @@ -199,6 +203,7 @@ int ufs_qcom_phy_clk_get(struct device *dev, if (err) goto out; +skip_txrx_clk: /* * "ref_clk_parent" is optional hence don't abort init if it's not * found.