From patchwork Fri Jun 10 10:41:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alim Akhtar X-Patchwork-Id: 12877385 Return-Path: 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 E6872CCA47B for ; Fri, 10 Jun 2022 10:46:54 +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=X/3/jiNa/8Q0wK2OHPwjyibQFIFN4DhC//iiY/X2r+s=; b=nAZe+pryMfaIQs 0iqNnmrvnrmzeJKalnxWMXuQcyMb7V+a5PVzsfNqQgYc7oMNotCPFmmhdq1wpSRJaVfFmY98g/RHk BDsTNlQ+tKylI5KfU25nwBWh7SycE3o57qkK8l6l3Vy6K1N7Nky1UYk8dunuf6yJ33po0vgmo5Ob+ a7c6CgnHSHv16hih3dJYc3Air8aswz91bJFfEAfcPXwwd9CSaxj0OGPJ7FrGwg8pReSdFM3URGnOc OXF52GoHInvbZq5F9MKLqUBy7Rr/f9eFIa+Rl3wIotksIVduui27V+o84TG/QRIclwOQuigDhHwi9 Ryh9JcLk+nOrJ9dV1RHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzc94-007f7T-47; Fri, 10 Jun 2022 10:45:38 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nzc7a-007eRK-WB for linux-arm-kernel@lists.infradead.org; Fri, 10 Jun 2022 10:44:08 +0000 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20220610104405epoutp010d9d0f502c3a4685c53394530fab1d1a~3PHFD0K841531915319epoutp012 for ; Fri, 10 Jun 2022 10:44:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20220610104405epoutp010d9d0f502c3a4685c53394530fab1d1a~3PHFD0K841531915319epoutp012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654857845; bh=mzLAmWqCxZhs1S6BV/xNsG1aAfxb0YUHxD4qs10oM1Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t5VJZobK/7rITCARZg2OgpOfChue4sfj+wcQ1NqyhKeXFJbevhUXBE9iAjXrDsbeq z+lKA5x8nEBy/2N959y+Skobg4wSa4AInJ/D6tfytRYpODGaz2xAmbRCoxUmVJsPrb 6IzExwZRGMskDLnOAMT1xjxi3e3+N+RH/R0aCLvY= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20220610104404epcas5p1e522b006fdee5c85f380dd3fc3086a90~3PHEtc-8Z0424004240epcas5p1N; Fri, 10 Jun 2022 10:44:04 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.183]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4LKHdD44fgz4x9Pv; Fri, 10 Jun 2022 10:44:00 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 07.7E.10063.D6023A26; Fri, 10 Jun 2022 19:43:57 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20220610104356epcas5p4343acd45f6677723a1b44534fcc4e289~3PG9AsCo02785727857epcas5p4C; Fri, 10 Jun 2022 10:43:56 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20220610104356epsmtrp13d7de3a8e9de5c8d82d775322e5c0224~3PG865RcI1337313373epsmtrp1T; Fri, 10 Jun 2022 10:43:56 +0000 (GMT) X-AuditID: b6c32a49-4b5ff7000000274f-01-62a3206d8874 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 96.4D.08924.C6023A26; Fri, 10 Jun 2022 19:43:56 +0900 (KST) Received: from Jaguar.sa.corp.samsungelectronics.net (unknown [107.108.73.139]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220610104354epsmtip1036d2cbc6dcefc32a22d4b7441cbb51f~3PG7CBmks1361013610epsmtip1I; Fri, 10 Jun 2022 10:43:54 +0000 (GMT) From: Alim Akhtar 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 Subject: [PATCH v4 5/6] ufs: host: ufs-exynos: add mphy apb clock mask Date: Fri, 10 Jun 2022 16:11:18 +0530 Message-Id: <20220610104119.66401-6-alim.akhtar@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220610104119.66401-1-alim.akhtar@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPKsWRmVeSWpSXmKPExsWy7bCmpm6uwuIkg/s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ki6tjQ6fotno+n2xx0fO1ZvGDD8etPsz/xsU8+aQ798WYnzdX 355/VV11qmePfHvaBiWW4oxEQy3mouJEANvUOpvYAgAA X-CMS-MailID: 20220610104356epcas5p4343acd45f6677723a1b44534fcc4e289 X-Msg-Generator: CA CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220610104356epcas5p4343acd45f6677723a1b44534fcc4e289 References: <20220610104119.66401-1-alim.akhtar@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220610_034407_439223_74C5C054 X-CRM114-Status: GOOD ( 15.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Chanho Park Tested-by: Chanho Park Reviewed-by: Krzysztof Kozlowski --- drivers/ufs/host/ufs-exynos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)