From patchwork Tue Jun 7 07:29:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanho Park X-Patchwork-Id: 12871449 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 2966DC433EF for ; Tue, 7 Jun 2022 07:31:26 +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=XkTD1z1OLFwXXAyfo/VjDSJ/Mot/34WT9mCoCQmqUv8=; b=PzrjqYJabtHEmd EJ+cFafvlQihRxIXa1VcpIRTsKs6QZ142Gy65No+yNgcEILewAFAcKDbNbxH0Bt4ebt8lmYdbnT2Q Vv/TRP3Ds9vsUm6EMeFhz8CCuvGvxEVpJ31A1/E4ZBKew7OkJUI/JSVBFCLBGaHyYTZFiQ7ianXt8 3VyN8nhBDavEekVWjgv6FrlBRR5vN5vwcW9gpegyu36nBfbdXk1hF6qtJZPNCAOclbuYcwFWG7LHu IAsRzquXyC1pJt9uVLOKdYFQC2Nz90mG6XnlT3m3MxUBxgj90Gdl5Nc1RVB88i5Yg74Sn4aRRZ0yA KJGE2/iX6t4TihYHXV5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyTf5-005SIv-Np; Tue, 07 Jun 2022 07:29:59 +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 1nyTep-005SCq-Q9 for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2022 07:29:47 +0000 Received: from epcas2p2.samsung.com (unknown [182.195.41.54]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20220607072940epoutp02a1a804bb83556fc5fad3949d8a519fb8~2Rhe-NtON0860908609epoutp02l for ; Tue, 7 Jun 2022 07:29:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20220607072940epoutp02a1a804bb83556fc5fad3949d8a519fb8~2Rhe-NtON0860908609epoutp02l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1654586980; bh=j1WnS18PqFphWR7BASAq0cOIb7VLkVfVHpJqMSIeYQo=; h=From:To:Cc:Subject:Date:References:From; b=PjiQmaX8tPITuoCrxW3aFzxn0xqSH8Gtx8I8rf2esTevqipgl1PqG5T1H8jMSK7Nv L1NjNyH4tLEmPWwzxVjJBfD3w7luUNQpvZkedr/3xBSp7qGVuKjhhnXMFP+ol1qG7m g4OW09MJl+3OJ4XgJWpmWHHSO9ByYgPoPwN1u4/Y= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p4.samsung.com (KnoxPortal) with ESMTP id 20220607072940epcas2p47d354a40afbe5d6cfd75b61af6a54eb9~2RheSXdDl1805918059epcas2p4d; Tue, 7 Jun 2022 07:29:40 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.36.69]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4LHMSL6HgWz4x9Pr; Tue, 7 Jun 2022 07:29:38 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id 57.A0.09694.26EFE926; Tue, 7 Jun 2022 16:29:38 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p4.samsung.com (KnoxPortal) with ESMTPA id 20220607072937epcas2p4e3e1bf3258e021c20692b0d348abdd8b~2RhcQ0HXS0598205982epcas2p4e; Tue, 7 Jun 2022 07:29:37 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220607072937epsmtrp29cc7b319551e4433fd28cfd31b50a99a~2RhcPtm242177421774epsmtrp2F; Tue, 7 Jun 2022 07:29:37 +0000 (GMT) X-AuditID: b6c32a48-495ff700000025de-c6-629efe62cf1e Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id DA.53.08924.16EFE926; Tue, 7 Jun 2022 16:29:37 +0900 (KST) Received: from localhost.localdomain (unknown [10.229.9.51]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220607072937epsmtip1269c806c5ee74836e64ea18281ad886c~2RhcEfAL70442604426epsmtip1a; Tue, 7 Jun 2022 07:29:37 +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 v4 0/5] support secondary ufs for Exynos Auto v9 SoC Date: Tue, 7 Jun 2022 16:29:02 +0900 Message-Id: <20220607072907.127000-1-chanho61.park@samsung.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBJsWRmVeSWpSXmKPExsWy7bCmmW7Sv3lJBvfuGVk8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5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9wwrOlr0XOPzZ/6P3vkaDlg9VO 0W4m2f+eRfU9PNwhmbpngsIKBz+ptg8zYi/7rFNiKc5INNRiLipOBABotsZWKwQAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsWy7bCSnG7iv3lJBjdfmlk8mLeNzeLyfm2L +UfOsVpceNrDZtH34iGzxd7XW9ktNj2+xmoxYdU3FosZ5/cxWbTuPcJusfPOCWYHbo9NqzrZ PO5c28PmsXlJvUffllWMHsdvbGfy+LxJLoAtissmJTUnsyy1SN8ugSvj+6u7LAUfeSt29fk1 MDZwdzFyckgImEj0r5vA3MXIxSEksINR4uzffcwQCVmJZ+92sEPYwhL3W46wQhS9Z5SY/a+f DSTBJqArseX5K0aQhIhAN5PEnE39TCAOs8B2RokPS9exgFQJC7hITPjXCDaKRUBV4nDPUjCb V8BeYt/W72wQK+QlNszvZYaIC0qcnPkErJcZKN68dTbzBEa+WUhSs5CkFjAyrWKUTC0ozk3P LTYsMMpLLdcrTswtLs1L10vOz93ECA5rLa0djHtWfdA7xMjEwXiIUYKDWUmE13/y3CQh3pTE yqrUovz4otKc1OJDjNIcLErivBe6TsYLCaQnlqRmp6YWpBbBZJk4OKUamFyqm5pO/OUNsxc4 Vnjl+aujX/3UXoTsF95+tj5fQO6uqbho7evL337OCRNyjHX4FBL0uGepsYv1+v5rib9ZD11I Pmf9Wfb+l+Unlu0J37zeQcxKvdwlqzlVrnTv85pSxroAV5vtW65E/lHr/7NM0XfWPtm6pq06 jE6s9/MXBQtvKUuL0qv1T1vmEB1mEfHG0r/5/srbN9t+904MFb54+C+Hq+nCpw91nF402rYL e5YFcxS6fei1Pa82V3r797UFn+oDeztSPDYwhes+znYRtWx7wn35oVJspIh0+eVSLavM3ZkV 0wsDDO+8mHP1pV1AUm0bY41PnNiGK27rFkV82HvovYx445FNvDH+m8OUWIozEg21mIuKEwE0 zSeB2gIAAA== X-CMS-MailID: 20220607072937epcas2p4e3e1bf3258e021c20692b0d348abdd8b X-Msg-Generator: CA X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220607072937epcas2p4e3e1bf3258e021c20692b0d348abdd8b References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220607_002944_356342_EA9E76AF X-CRM114-Status: GOOD ( 14.14 ) 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 v3: - 0003: Apply array of const pointers and const data as suggested by Krzysztof - Add Krzysztof's RB tags to all patches except 0003 patch. 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 | 23 +++++++++++-------- 5 files changed, 38 insertions(+), 21 deletions(-)