From patchwork Wed Jul 6 02:02:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12907231 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 E61E9C433EF for ; Wed, 6 Jul 2022 02:07:05 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:References:MIME-Version: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:In-Reply-To: List-Owner; bh=ugycxz/LgdZQjALKp5l4L9GTQ3iAg8uID9IQD8kOLRc=; b=ZSzhacLIqBLdOY UxSbW2nuIBA4jzAoasDVsY7p+yGtCJ2Ytl7rVmtPXifD/wOdRzLpJxCy2EYvhoNj3I9Ns/hHRyfe8 unAW6R9r36IuVrVkk8FbVeQX7k7kJkTdVgXQqRRW3cRWWGIV2Yqzixshx34A1beQ8tn8H07MA9EbY 2VeWj8wOMXuDKAib1ChzKTYC6yybZKlqZLvNzTOSQlOSBtrb8a6Fn2UqqE/qQybrBIl7G4W8Fsle1 PpfAVtLwNtLWNFH1DpQKKORWNEeE+ZMeqZ3AAtu3QkuVIT+wKGHW5M6iBEyVAlYmTRUc00Q9D35hp R7RrxbH8nur3X3T28xUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8uQJ-005ItM-0o; Wed, 06 Jul 2022 02:05:51 +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 1o8uQE-005Iqd-5G for linux-arm-kernel@lists.infradead.org; Wed, 06 Jul 2022 02:05:48 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220706020542epoutp02ffb494e142234868e59cbd0941d4c0fc~-Gz4_AzOR2990529905epoutp02t for ; Wed, 6 Jul 2022 02:05:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220706020542epoutp02ffb494e142234868e59cbd0941d4c0fc~-Gz4_AzOR2990529905epoutp02t DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1657073142; bh=9i/7uIINk7h19B61IlxH9j7oMZ1qse+Kwf0O6YUL1+U=; h=From:To:Cc:Subject:Date:References:From; b=hlOS1YBk6e75ngJnzMzui7ov/2L0B1hXt/CVYDKql0k6ntISLu6+nKoGIeROrWeCm OA28MaDAKXJGdDOmjOsvD0/QloQ3nu1YRXxPwk2PMPk7TyMIT1UYDNR7ugLKl9/rwL ZyL6QnS4Y1HBunZyWCJC4wK6T+jKF0dmejr8MeRo= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20220706020541epcas2p29a430bb26e66725b0c59b3448219a72f~-Gz4pj9NQ2896328963epcas2p2E; Wed, 6 Jul 2022 02:05:41 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.97]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Ld2v91N6Kz4x9QB; Wed, 6 Jul 2022 02:05:41 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id 73.C8.09642.5FDE4C26; Wed, 6 Jul 2022 11:05:41 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p3.samsung.com (KnoxPortal) with ESMTPA id 20220706020540epcas2p37a8b697af2c6786db9e4ed67cf20a40f~-Gz3wo2_l2943729437epcas2p38; Wed, 6 Jul 2022 02:05:40 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220706020540epsmtrp2cd4c7ce6ed8737711695d791710cb99c~-Gz3vzB6-3159231592epsmtrp26; Wed, 6 Jul 2022 02:05:40 +0000 (GMT) X-AuditID: b6c32a47-5e1ff700000025aa-b3-62c4edf50a53 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 37.5B.08802.4FDE4C26; Wed, 6 Jul 2022 11:05:40 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20220706020540epsmtip27c133ad13e1d669b35ce5235c8c9c897~-Gz3b5I5K1055210552epsmtip2D; Wed, 6 Jul 2022 02:05:40 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , "James E . J . Bottomley" , "Martin K . Petersen" , Alim Akhtar , Bart Van Assche Cc: linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Chanho Park Subject: [PATCH v2 0/3] change exynos ufs phy control Date: Wed, 6 Jul 2022 11:02:52 +0900 Message-Id: <20220706020255.151177-1-chanho61.park@samsung.com> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFJsWRmVeSWpSXmKPExsWy7bCmqe7Xt0eSDF5tZbN4MG8bm8W0Dz+Z LS7v17ZYdGMbk8WFpz1sFntfb2W32PT4GqvFhFXfWCxmnN/HZNF9fQebx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x+a8OHv2XMofHSWW4oxEQy3mouJEAKzGSN/tAgAA X-CMS-MailID: 20220706020540epcas2p37a8b697af2c6786db9e4ed67cf20a40f X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220706020540epcas2p37a8b697af2c6786db9e4ed67cf20a40f References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220705_190546_730479_30E74A07 X-CRM114-Status: GOOD ( 14.95 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Since commit 1599069a62c6 ("phy: core: Warn when phy_power_on is called before phy_init"), below warning has been reported. phy_power_on was called before phy_init To address this, we need to remove phy_power_on from exynos_ufs_phy_init. The first patch is for changing phy clocks manipulation from controlling each symbol/ref clocks to clk_bulk APIs. The second patch is for making power on/off sequences between pmu isolation and clk control. Finally, the third patch changes the phy on/off and init sequences from ufs-exynos host driver. Changes since v1: - Add Krzysztof's R-B tags for #1 / #2 patches - Get back the error check of phy_power_on Chanho Park (3): phy: samsung-ufs: convert phy clk usage to clk_bulk API phy: samsung-ufs: ufs: change phy on/off control ufs: ufs-exynos: change ufs phy control sequence drivers/phy/samsung/phy-exynos7-ufs.c | 7 +- drivers/phy/samsung/phy-exynosautov9-ufs.c | 7 +- drivers/phy/samsung/phy-fsd-ufs.c | 7 +- drivers/phy/samsung/phy-samsung-ufs.c | 121 ++++++--------------- drivers/phy/samsung/phy-samsung-ufs.h | 10 +- drivers/ufs/host/ufs-exynos.c | 17 +-- 6 files changed, 66 insertions(+), 103 deletions(-)