From patchwork Fri Jun 3 02:04:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12868456 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 59759C43334 for ; Fri, 3 Jun 2022 02:06:46 +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=uhHaqAYy3XixP9C7yM2RWSY4xBHkT3yjiwyyd7jm3Io=; b=rA2XjyB03hn0Pu lORqZqtINrgV1pJNnbpz3FgFkUhb3/Ft4yEueN55mcyW9FbdVfdXJ3iEB7ZehifaEbv6JAl1dUn7F 9tebDSXd83jrefL+HKJctlSRtSnAWfhaxpacdxCMknPI51sVihU3QAVkNY/S4Ox3D85i24m/K0rP9 +VzQWNYigs8QZY3WMVQ9grhDKUZ1oLqdN7WqkK81aScfouwSGrh2dPNdAr5axF7ao3D2/AI9xTDJG LpdBCuPm1PZtGX3KVNNtOXUMnu+dnGG0LUjFV6PUr62AO4TFCT5G4VMLxJgtJSsgZY1cqHCMQmkvE YESDeFsbmWS0VEhT6jSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwwgt-005Rct-U3; Fri, 03 Jun 2022 02:05:32 +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 1nwwfx-005RJm-AG for linux-arm-kernel@lists.infradead.org; Fri, 03 Jun 2022 02:04:37 +0000 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220603020429epoutp026376898e6c79caf3d48ecd34a4e49373~0_ga7XkxA0617806178epoutp023 for ; Fri, 3 Jun 2022 02:04:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220603020429epoutp026376898e6c79caf3d48ecd34a4e49373~0_ga7XkxA0617806178epoutp023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654221870; bh=1xDi2uqdIZyRSSKjAMcD4/NNmO07IOtQu/3O9HtKFN0=; h=From:To:Cc:Subject:Date:References:From; b=jNvVxxSio4avKTxxplZ63N5lAjnoNEWZ3ywL8QRc+fvl3V+ZhznakNfp0M32sBtWh WToOpagEu/p8nSL/EYuhafWOCbg+753DpPpYdbLUInFiZCzBTohlG4wGp4wTi+IuWK 2mMh2Cv/COdW3yUhc+haf85e50wF2wEkvcYebmg0= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas2p2.samsung.com (KnoxPortal) with ESMTP id 20220603020429epcas2p2da19fa79623f0fa45797a62b5e6b263c~0_gaVwIDX1635416354epcas2p2d; Fri, 3 Jun 2022 02:04:29 +0000 (GMT) Received: from epsmges2p3.samsung.com (unknown [182.195.36.92]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4LDmQy5Tvwz4x9Q9; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) Received: from epcas2p4.samsung.com ( [182.195.41.56]) by epsmges2p3.samsung.com (Symantec Messaging Gateway) with SMTP id A8.BD.10028.A2C69926; Fri, 3 Jun 2022 11:04:26 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220603020426epcas2p4799d10beba3455061b8d8e965904cafe~0_gXe6YyW2972129721epcas2p4Y; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220603020426epsmtrp20caaccfffcc77cecdb47de4cd274f111~0_gXcbwqa0586805868epsmtrp2K; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) X-AuditID: b6c32a47-573ff7000000272c-cc-62996c2aa266 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 92.FF.08924.A2C69926; Fri, 3 Jun 2022 11:04:26 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220603020426epsmtip140820b0d69c3e19e575a2b34e614134e~0_gXPtNzg2995029950epsmtip1W; Fri, 3 Jun 2022 02:04:26 +0000 (GMT) From: Chanho Park To: Kishon Vijay Abraham I , Vinod Koul , Krzysztof Kozlowski , Alim Akhtar , Rob Herring , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-phy@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chanho Park Subject: [PATCH v3 0/5] support secondary ufs for Exynos Auto v9 SoC Date: Fri, 3 Jun 2022 11:04:05 +0900 Message-Id: <20220603020410.2976-1-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGJsWRmVeSWpSXmKPExsWy7bCmha5Wzswkg67L2hYP5m1js7i8X9ti /pFzrBYXnvawWfS9eMhssff1VnaLTY+vsVpMWPWNxWLG+X1MFq17j7Bb7LxzgtmB22PTqk42 jzvX9rB5bF5S79G3ZRWjx/Eb25k8Pm+SC2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QvkRMNFNS3rj1bsdxHiaU4I9FQi7moOBEAvJ/+PikEAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGLMWRmVeSWpSXmKPExsWy7bCSnK5Wzswkg3MPOS0ezNvGZnF5v7bF /CPnWC0uPO1hs+h78ZDZYu/rrewWmx5fY7WYsOobi8WM8/uYLFr3HmG32HnnBLMDt8emVZ1s Hneu7WHz2Lyk3qNvyypGj+M3tjN5fN4kF8AWxWWTkpqTWZZapG+XwJVx7/kVxoIzPBVTp5xn b2D8z9nFyMEhIWAiMXthZRcjF4eQwA5GictbprF3MXICxWUlnr3bAWULS9xvOcIKUfSeUaLj 5nomkASbgK7EluevGEESIgLdTBJzNvUzgTjMAtsZJT4sXccCskJYwEXi0oYikAYWAVWJL9c+ soDYvAK2Es/637JBbJCX2DC/lxkiLihxcuYTsBpmoHjz1tnMExj5ZiFJzUKSWsDItIpRMrWg ODc9t9iwwCgvtVyvODG3uDQvXS85P3cTIziotbR2MO5Z9UHvECMTB+MhRgkOZiUR3pJdU5OE eFMSK6tSi/Lji0pzUosPMUpzsCiJ817oOhkvJJCeWJKanZpakFoEk2Xi4JRqYFrQNLdzc7bB M9knKd5/FjRtXrby/K942R+Rd0+01VemfMuTdBWdq5OonNVdriQcNedNzoXYaZd2llyZWdH4 /fUC6S8TrO8mr9r455y4hsS/n4kPGie7tb0yXlUq8nuScLwBb/j6mRMXLF3QuXLqvPim54qz WlitZR8vLVp7IibpWcruKzd/TbysuKpgWTrH1e71x05bM/0WsLDfyTD7737bkpL+zl0CR7dW 85n/8OZJWPfKdvoTFa5ZBcvCquwc3f/N3c8R90ltzR+38P/7JSWubL6yWpKn2ZzpzL2PSmKR szYoNBxc87L5gG7tffeQy3X/NdnyWB+z/O0NKTivX3Kj6uV07fL5y+w3MYruPcusxFKckWio xVxUnAgA9q/3wdkCAAA= X-CMS-MailID: 20220603020426epcas2p4799d10beba3455061b8d8e965904cafe X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220603020426epcas2p4799d10beba3455061b8d8e965904cafe References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220602_190433_760372_8424C435 X-CRM114-Status: GOOD ( 14.18 ) 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 To support ufs #1 for Exynos Auto v9 SoC, we need to control its own pmu register. So, we need to specify the offset of the register via an argument of syscon node. Changes from v2: - Exclude dts patchset because they'll be queued by Krzysztof after v5.19 merge window. - 0001-dt-bindings: Add "maxItems: 1" to the first level pmu-syscon items as suggested by Krzysztof - 0002: The patch has been added to clarify the variable name - 0004: The patch has been added to remove drvdata pointer as suggested by Krzysztof Changes from v1: - dt-bindings: Correct tab align and add "minItems: 1" to make the second cell as optional. - Add 0001- patch to constify phy_cfg. - Allocate phy->isol and copy data from drvdata to avoid const qualifier error - Add 0004- patch to apply dt style for ufs0 as Krzysztof's suggestion - Align tab and apply ufs node naming for device tree nodes Chanho Park (5): dt-bindings: phy: samsung,ufs-phy: make pmu-syscon as phandle-array phy: samsung: ufs: rename cfg to cfgs for clarification phy: samsung: ufs: constify samsung_ufs_phy_cfg phy: samsung: ufs: remove drvdata from struct samsung_ufs_phy phy: samsung: ufs: support secondary ufs phy .../bindings/phy/samsung,ufs-phy.yaml | 14 ++++++++--- drivers/phy/samsung/phy-exynos7-ufs.c | 2 +- drivers/phy/samsung/phy-exynosautov9-ufs.c | 2 +- drivers/phy/samsung/phy-samsung-ufs.c | 18 +++++++++----- drivers/phy/samsung/phy-samsung-ufs.h | 24 ++++++++++--------- 5 files changed, 38 insertions(+), 22 deletions(-)