Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp232216pxb; Tue, 28 Sep 2021 20:27:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3teEu9zFHaYNBAtUJZqfcaMzCedzl7DH+ZoapTrqBBont7Outv/YJ85Y0E8AhV5o3G2uJ X-Received: by 2002:a17:90a:4091:: with SMTP id l17mr3858074pjg.138.1632886048107; Tue, 28 Sep 2021 20:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632886048; cv=none; d=google.com; s=arc-20160816; b=0mL3K1fBHCitf9qaiXJoKoMuEcF53Hvqu/0bi01TqIXgIDPZsS2r38fitSlEYbTFwU +LR/Ax6gIkx5p03Uo0Lr8+TnjvI7N8DWiXBp10/iwy6AZD2hX32iOSmZw9HfVRglF9AQ 583lkK0VoWzv1FEsfHpqMss73KPhJT50nX/aaaGpj5q3vn/7w3uzsEb8jW17Nt/Qt0C2 EHomxEZmLxL0WQXQmgXc1QpsWu7QznKWWsgnotzc8h79TcV6fN9B0IK4jrRRDieJiMhT 9SGA2u1EeJzcbxydUP8Rn5iCV13L2/K3+zDWDgEb/Uda3bD1DbvfkCOEzhTRsa7fVib/ Edkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type:content-language :thread-index:content-transfer-encoding:mime-version:message-id:date :subject:in-reply-to:cc:to:from:dkim-signature:dkim-filter; bh=IaMYQS1lqoNxu3W1BOxesvck03z7/43KHkhq9l1WpTk=; b=DUyRAM+H56/n2o78mSdzY8rqNu3kBs8Sd0g1/GLNiz5Vc0rfersTqbNbG6x2ybyQZj iRqk3BIBMkkrtw/2FontcaKt8WWP//j1300pyNc3EnhNbg30PKqXxEiAeFv1lHnUIO1/ 5QApj2NOg2Y1YLs9N4kDJpKXyw5fAcXneJbZQ7Uex3Nl8Wmk8WthSNmnlTTTURhTTnlh z5Bk//E9me6S4bRqGwPI+jAYMgtVlcgAPgKE9nhkleJb0UfNvpACrp7dHRRE1k7Z6c+I gkN32kIbrd/CU2mf7ris7ISso4qGht/UJxQgBhzB1nu6D8rhaHFMEbIQ8+GLdDp6Wc+u TFdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=N+e4WwvI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si1123512pff.241.2021.09.28.20.27.15; Tue, 28 Sep 2021 20:27:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=N+e4WwvI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243857AbhI2D0K (ORCPT + 99 others); Tue, 28 Sep 2021 23:26:10 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:40711 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243931AbhI2D0J (ORCPT ); Tue, 28 Sep 2021 23:26:09 -0400 Received: from epcas5p4.samsung.com (unknown [182.195.41.42]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20210929032427epoutp033f0f27a6b6bbde771c89e61915f21a0e~pLQt8TnEw2789427894epoutp03J for ; Wed, 29 Sep 2021 03:24:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20210929032427epoutp033f0f27a6b6bbde771c89e61915f21a0e~pLQt8TnEw2789427894epoutp03J DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1632885867; bh=IaMYQS1lqoNxu3W1BOxesvck03z7/43KHkhq9l1WpTk=; h=From:To:Cc:In-Reply-To:Subject:Date:References:From; b=N+e4WwvI+KkOMku49feu08OCDBYmfYrk2rRPYfJQatTnMoar+imwTiJC49A+fd6Jj /cqCK+F30dgx/votTGMIWDsmygR7EgCgvFI+T3JFPeK9aZ5GvNXKPmgessLTrSf6D5 V1phgh5YooP7WeqgRxPaR2nk+G2M6NnASK/iVm9k= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20210929032426epcas5p32aeb9274eb68bcde0990c062eac424fa~pLQtfTBDu0995609956epcas5p3y; Wed, 29 Sep 2021 03:24:26 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.181]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4HK1v916j1z4x9QM; Wed, 29 Sep 2021 03:24:21 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 40.F1.59762.15CD3516; Wed, 29 Sep 2021 12:24:01 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20210929031358epcas5p2bcc25bd81a117ddb35e053ddea0606a1~pLHkBF2982380823808epcas5p2W; Wed, 29 Sep 2021 03:13:58 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210929031358epsmtrp2e56fc0d37baa0db2ad4ca2c126a566c2~pLHj-jUuU1008010080epsmtrp2b; Wed, 29 Sep 2021 03:13:58 +0000 (GMT) X-AuditID: b6c32a49-125ff7000000e972-fa-6153dc510563 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 75.76.08750.5F9D3516; Wed, 29 Sep 2021 12:13:58 +0900 (KST) Received: from alimakhtar03 (unknown [107.122.12.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210929031355epsmtip2836ddd52a5aa308a920324f5575a5d05~pLHh2dAs-2133521335epsmtip2G; Wed, 29 Sep 2021 03:13:55 +0000 (GMT) From: "Alim Akhtar" To: "'Bao D. Nguyen'" , , , , Cc: , "'Avri Altman'" , "'James E.J. Bottomley'" , "'Bean Huo'" , "'Stanley Chu'" , "'Bart Van Assche'" , "'Jaegeuk Kim'" , "'Adrian Hunter'" , "'Keoseong Park'" , "'open list'" In-Reply-To: Subject: RE: [PATCH v2 1/2] scsi: ufs: export hibern8 entry and exit Date: Wed, 29 Sep 2021 08:43:54 +0530 Message-ID: <00f801d7b4e0$0acfe630$206fb290$@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJbPZpAqiweWuut4hQb/UQ8HpO3kgIzDpUNAWSkPZSqlocLkA== Content-Language: en-us X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJsWRmVeSWpSXmKPExsWy7bCmlm7gneBEg5Y3RhYnn6xhs9jbdoLd 4uXPq2wWBx92slhM+/CT2eLT+mWsFk/Wz2K2WHRjG5PF8ZPvGC0m7j/LbnF51xw2i+7rO9gs lh//x2TxsWs2o8XSrTcZHfg9Ll/x9rjc18vksXjPSyaPTas62TwmLDrA6NFycj+Lx/f1HWwe H5/eYvHo27KK0ePzJjmP9gPdTAHcUdk2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW 5koKeYm5qbZKLj4Bum6ZOUC/KCmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIKTAr0 ihNzi0vz0vXyUkusDA0MjEyBChOyM468fM1c0ClV8bD/EWsD4y2xLkZODgkBE4lZny4xdzFy cQgJ7GaU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" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20210928090634epcas5p149638a0e4d0cc009d1c068dcb7a18b44 References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, >-----Original Message----- >From: nguyenb=codeaurora.org@mg.codeaurora.org >[mailto:nguyenb=codeaurora.org@mg.codeaurora.org] On Behalf Of Bao D. >Nguyen >Sent: Tuesday, September 28, 2021 2:36 PM >To: cang@codeaurora.org; asutoshd@codeaurora.org; >martin.petersen@oracle.com; linux-scsi@vger.kernel.org >Cc: linux-arm-msm@vger.kernel.org; Bao D . Nguyen >; Alim Akhtar ; Avri >Altman ; James E.J. Bottomley ; >Bean Huo ; Stanley Chu ; >Bart Van Assche ; Jaegeuk Kim ; >Adrian Hunter ; Keoseong Park >; open list >Subject: [PATCH v2 1/2] scsi: ufs: export hibern8 entry and exit > >From: Asutosh Das > >Qualcomm controllers need to be in hibern8 before scaling up or down the >clocks. Hence, export the hibern8 entry and exit functions. > >Signed-off-by: Asutosh Das >Signed-off-by: Bao D. Nguyen >--- Reviewed-by: Alim Akhtar > drivers/scsi/ufs/ufshcd.c | 4 ++-- > drivers/scsi/ufs/ufshcd.h | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index >3841ab49..f3aad32 100644 >--- a/drivers/scsi/ufs/ufshcd.c >+++ b/drivers/scsi/ufs/ufshcd.c >@@ -227,7 +227,6 @@ static void ufshcd_hba_exit(struct ufs_hba *hba); static >int ufshcd_clear_ua_wluns(struct ufs_hba *hba); static int >ufshcd_probe_hba(struct ufs_hba *hba, bool async); static int >ufshcd_setup_clocks(struct ufs_hba *hba, bool on); -static int >ufshcd_uic_hibern8_enter(struct ufs_hba *hba); static inline void >ufshcd_add_delay_before_dme_cmd(struct ufs_hba *hba); static int >ufshcd_host_reset_and_restore(struct ufs_hba *hba); static void >ufshcd_resume_clkscaling(struct ufs_hba *hba); @@ -4116,7 +4115,7 @@ int >ufshcd_link_recovery(struct ufs_hba *hba) } >EXPORT_SYMBOL_GPL(ufshcd_link_recovery); > >-static int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) >+int ufshcd_uic_hibern8_enter(struct ufs_hba *hba) > { > int ret; > struct uic_command uic_cmd = {0}; >@@ -4138,6 +4137,7 @@ static int ufshcd_uic_hibern8_enter(struct ufs_hba >*hba) > > return ret; > } >+EXPORT_SYMBOL_GPL(ufshcd_uic_hibern8_enter); > > int ufshcd_uic_hibern8_exit(struct ufs_hba *hba) { diff --git >a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index 52ea6f3..124f50b >100644 >--- a/drivers/scsi/ufs/ufshcd.h >+++ b/drivers/scsi/ufs/ufshcd.h >@@ -1001,6 +1001,7 @@ int ufshcd_init(struct ufs_hba *, void __iomem *, >unsigned int); int ufshcd_link_recovery(struct ufs_hba *hba); int >ufshcd_make_hba_operational(struct ufs_hba *hba); void ufshcd_remove(struct >ufs_hba *); >+int ufshcd_uic_hibern8_enter(struct ufs_hba *hba); > int ufshcd_uic_hibern8_exit(struct ufs_hba *hba); void >ufshcd_delay_us(unsigned long us, unsigned long tolerance); int >ufshcd_wait_for_register(struct ufs_hba *hba, u32 reg, u32 mask, >-- >The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a >Linux Foundation Collaborative Project