Message ID | 20220603154714.30532-6-alim.akhtar@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9ED33C43334 for <linux-phy@archiver.kernel.org>; Fri, 3 Jun 2022 15:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=G4rRPynIkxoODWx2sPAJJwhNPeLloiF9wpU26bc77RY=; b=21E1mznJFEUaEn bD6g3P7vztgkCQDKc1B8wQXMMHuoiFzv174kvELfEymMmewU3Ca5OlVW3mJlMj/UlC5lVaS3hdbBZ Ng3nkCIb6K95+EYd8sAOX/dd+lrI+RGpxKUzLmrlsFGVT96T00nN5ZYJSvzVR6B8ufQwADrwcok+F KbgWgHP9csdek7ZPKkWToJqldPy7kHs6p7kpJwc8waX9NBlPiiUFDJXPhr7qR10uCJ+UNAUOIL+7l RFBx5lYLIHlY8jIca73VuUAFAcrGBl+154d4AyhHNQN7mMeSgZUNsNy8JMEsuwzPBRBopGgxzM9ZU R/axCsTluX4t7j33kA4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx9ZQ-0083oi-N7; Fri, 03 Jun 2022 15:50:40 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nx9Xz-0083Cm-Ca for linux-phy@lists.infradead.org; Fri, 03 Jun 2022 15:49:13 +0000 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220603154908epoutp027f64f03ee4226c52cf4cd200677aa6b2~1JwbhrBa81535315353epoutp023 for <linux-phy@lists.infradead.org>; Fri, 3 Jun 2022 15:49:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220603154908epoutp027f64f03ee4226c52cf4cd200677aa6b2~1JwbhrBa81535315353epoutp023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654271348; bh=wBz3WyDv6QKq3q350/xaW+hbym69+M1flHfWWIhawTM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A4v7qPt839toWdjDyMry46VV1DZ3vxPVUYb7frPmtqUjhjm6+etRWTr/nDB/Dmkuz 2v5Gb2DGWPlk1L18hOwMS2RL8wiHnD+vhAMq5Bd1o3ksgCa58vMLBJMUoDzgGYFKJl AS1enzBHCCHAIGmP5Kizd6c+nsRc9XG8QrtGTwLQ= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20220603154908epcas5p3417691c5148eb2f866666e56cff9f1c6~1JwbBGkc51875418754epcas5p3r; Fri, 3 Jun 2022 15:49:08 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.181]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LF6kT4kR5z4x9Pt; Fri, 3 Jun 2022 15:49:05 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 61.B8.10063.17D2A926; Sat, 4 Jun 2022 00:49:05 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20220603154904epcas5p21615dfab6f57f563889230c81a717835~1JwXhOyiV1442914429epcas5p2W; Fri, 3 Jun 2022 15:49:04 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220603154904epsmtrp14a825d285599b92f7570e8c37be5ed32~1JwXgZaEM2840728407epsmtrp1S; Fri, 3 Jun 2022 15:49:04 +0000 (GMT) X-AuditID: b6c32a49-4cbff7000000274f-53-629a2d71d4aa Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 47.6C.11276.07D2A926; Sat, 4 Jun 2022 00:49:04 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220603154901epsmtip1e8aa68a0a95f4e58b580484f51bb73a1~1JwVV-0cp0345503455epsmtip1J; Fri, 3 Jun 2022 15:49:01 +0000 (GMT) From: Alim Akhtar <alim.akhtar@samsung.com> To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, avri.altman@wdc.com, bvanassche@acm.org, martin.petersen@oracle.com, chanho61.park@samsung.com, pankaj.dubey@samsung.com, Alim Akhtar <alim.akhtar@samsung.com> Subject: [PATCH v2 5/7] ufs: ufs-exynos: add mphy apb clock mask Date: Fri, 3 Jun 2022 21:17:12 +0530 Message-Id: <20220603154714.30532-6-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220603154714.30532-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgF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VuX tchzreSf+U/rKvfH/7FR+Kr91rTq5aRSXq/zK/Ni33OIJxyZfnZ7gmrz+/4jivHTfy66eTWk b2rEysdLBERmtiuxFGckGmoxFxUnAgAenjyF2QIAAA== X-CMS-MailID: 20220603154904epcas5p21615dfab6f57f563889230c81a717835 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220603154904epcas5p21615dfab6f57f563889230c81a717835 References: <20220603154714.30532-1-alim.akhtar@samsung.com> <CGME20220603154904epcas5p21615dfab6f57f563889230c81a717835@epcas5p2.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220603_084911_790023_9ABDB992 X-CRM114-Status: GOOD ( 11.86 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list <linux-phy.lists.infradead.org> List-Unsubscribe: <https://lists.infradead.org/mailman/options/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-phy/> List-Post: <mailto:linux-phy@lists.infradead.org> List-Help: <mailto:linux-phy-request@lists.infradead.org?subject=help> List-Subscribe: <https://lists.infradead.org/mailman/listinfo/linux-phy>, <mailto:linux-phy-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" <linux-phy-bounces@lists.infradead.org> Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org |
Series |
[v2,1/7] dt-bindings: phy: Add FSD UFS PHY bindings
|
expand
|
> Subject: [PATCH v2 5/7] ufs: ufs-exynos: add mphy apb clock mask > > Bit[3] of HCI_CLKSTOP_CTRL register is for enabling/disabling MPHY APB > clock. Lets add it to CLK_STOP_MASK, so that the same can be controlled > during clock masking/unmasking. > > Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com> Reviewed-by: Chanho Park <chanho61.park@samsung.com> And tested on my ExynosAutov9 SADK board. Tested-by: Chanho Park <chanho61.park@samsung.com> Best Regards, Chanho Park
diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index a81d8cbd542f..cc128aff8871 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -52,11 +52,12 @@ #define HCI_ERR_EN_DME_LAYER 0x88 #define HCI_CLKSTOP_CTRL 0xB0 #define REFCLKOUT_STOP BIT(4) +#define MPHY_APBCLK_STOP BIT(3) #define REFCLK_STOP BIT(2) #define UNIPRO_MCLK_STOP BIT(1) #define UNIPRO_PCLK_STOP BIT(0) #define CLK_STOP_MASK (REFCLKOUT_STOP | REFCLK_STOP |\ - UNIPRO_MCLK_STOP |\ + UNIPRO_MCLK_STOP | MPHY_APBCLK_STOP|\ UNIPRO_PCLK_STOP) #define HCI_MISC 0xB4 #define REFCLK_CTRL_EN BIT(7)
Bit[3] of HCI_CLKSTOP_CTRL register is for enabling/disabling MPHY APB clock. Lets add it to CLK_STOP_MASK, so that the same can be controlled during clock masking/unmasking. Signed-off-by: Alim Akhtar <alim.akhtar@samsung.com> --- drivers/ufs/host/ufs-exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)