From patchwork Tue Nov 8 10:07:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Gautam X-Patchwork-Id: 9417087 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 030996022E for ; Tue, 8 Nov 2016 10:09:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8ED72892B for ; Tue, 8 Nov 2016 10:09:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DDD752896A; Tue, 8 Nov 2016 10:09:10 +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 9A5A02892B for ; Tue, 8 Nov 2016 10:09:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932897AbcKHKJJ (ORCPT ); Tue, 8 Nov 2016 05:09:09 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:32796 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932432AbcKHKJH (ORCPT ); Tue, 8 Nov 2016 05:09:07 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 94CAD614E3; Tue, 8 Nov 2016 10:09:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478599746; bh=J0gGJxsDduFHumqES9VIS2kXs4zhjmcd06m09ZqMlmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=npVsGkoZI49hyBbtvakiPa0ezIuiUBemyZj52nUpG7xXWQjIUwV4Xe4ACiXVfosoK X6S+In6gPdVOQAgB8SkoqZD5Zn3qm8t7XYEWMJCJgjDZayqpSQ5zAkzlurxJ/ov7L9 2EqLiQt8ojHhfNWt73GvpZaIpjm7cHRaIlC0v43A= 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 3AAF461482; Tue, 8 Nov 2016 10:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1478599745; bh=J0gGJxsDduFHumqES9VIS2kXs4zhjmcd06m09ZqMlmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G3qH65r6SbD839bTZxe/QNdGOhUqSPpmlKB+e2qBOWgYEoYpGI3fTIOLeT8g3BlW3 c8g3kjUat25EHMMtVwcmy+M68A60hsluGsynoxQfeCbBY7HYXIhi2v8sk+j7X90GCL ufXIXDnumBxeypv9auAPMXQUeuDRt4ZLFsx2U0wE= DMARC-Filter: OpenDMARC Filter v1.3.1 smtp.codeaurora.org 3AAF461482 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 11/12] scsi/ufs: qcom: Add phy_exit call in hcd exit path Date: Tue, 8 Nov 2016 15:37:50 +0530 Message-Id: <1478599671-13071-12-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 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 --- 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 5f70a35..31df783 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1280,6 +1280,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,