From patchwork Tue Oct 18 14:28:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 9382211 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 2483D6086B for ; Tue, 18 Oct 2016 14:30:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 175F728623 for ; Tue, 18 Oct 2016 14:30:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0BF3928733; Tue, 18 Oct 2016 14:30:46 +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 C1C5428623 for ; Tue, 18 Oct 2016 14:30:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761745AbcJROai (ORCPT ); Tue, 18 Oct 2016 10:30:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42256 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933560AbcJRO31 (ORCPT ); Tue, 18 Oct 2016 10:29:27 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CC13861875; Tue, 18 Oct 2016 14:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476800966; bh=70Q6aZRlUCzf0c6rHcgai/0aj8cQqSolaDgNVjiXftA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0uWuKhB0Laf6pGgibnUVXcj1IuPzQ/jEs+GTCUnbn8ROX3/VzXFlT/1QmOc80TJ/ 8imihCy4iHA+aivaUXNgMka5wOkffCxafVD5cXBzqz+tJsI0uakhl/NZVm2sHoydwo wQHFWsXL9a4ZQF6QIaH5Ry/CS2w23SAKe6KZPuVI= 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 534DA61818; Tue, 18 Oct 2016 14:29:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1476800962; bh=70Q6aZRlUCzf0c6rHcgai/0aj8cQqSolaDgNVjiXftA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bWcR7ELRm0IytY+wGgPvk6jdkA52+AL9q6QWjZGjD0yX9lYWLLF79okQVT3HI+xJw s17NvVxOikH1T6gmzNnKk2b7+CPFFQaW5bx0n5YOUo4DU0GKE8dyz0P4FE6rW+VFBn 7MYVOi8F3gAMOUhQYHV6jznH33o8UAghIShNkwcU= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 534DA61818 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, linux-kernel@vger.kernel.org Cc: subhashj@codeaurora.org, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vivek Gautam Subject: [PATCH v2 09/10] scsi/ufs: qcom: Add phy_exit call in hcd exit path Date: Tue, 18 Oct 2016 19:58:16 +0530 Message-Id: <1476800897-19898-10-git-send-email-vivek.gautam@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476800897-19898-1-git-send-email-vivek.gautam@codeaurora.org> References: <1476800897-19898-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 Do a phy_exit() over the ufs phy in the ufs qcom exit path to de-initialize the phy. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- New patch added in v2 series. drivers/scsi/ufs/ufs-qcom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 6e4ce5f..dfd2af8 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1272,6 +1272,7 @@ static void ufs_qcom_exit(struct ufs_hba *hba) ufs_qcom_disable_lane_clks(host); phy_power_off(host->generic_phy); + phy_exit(host->generic_phy); } static int ufs_qcom_set_dme_vs_core_clk_ctrl_clear_div(struct ufs_hba *hba,