From patchwork Fri Oct 6 12:55:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Majewski X-Patchwork-Id: 13411465 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 960C3E81DF6 for ; Fri, 6 Oct 2023 13:01:19 +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=oX1sgs2g3IvY51mlJ8Cen5Hlb2z1U1bAqVSfIgFWI0I=; b=L3g7yaQC54hLvF S6hUC8hera/t37ODZpgasROBtEWLPJi7+IyQCCPoOPKTnNkLq4Lf2rfRXbKrkdXnsWgj5D5Wwpgb+ 4a0n/xJEf5nvetpjtpcNVOleA/x1MJnC1VGk/WO2bt+KiMmyD1b/v7MCGi2r0gHx/MgFsOZqQAZk9 /baN8b8/AiT4ECJiS+Zp+TmB1R2ZqqZxXmgOPAxNtHkjCk2woe+CV8zXh+rA43Tc/hPVBqF4VYf/3 8Sda0CMaLz3gdvaw4wzvOG4l+3wGK6uQgCDVcdVR0nnJZ4Fyl+LvFAF+Oslb7ZZK3lr0XSI9Vh3/s g7H86LrVnxgfvmCwLdfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qokRg-005q5C-22; Fri, 06 Oct 2023 13:00:44 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qokRd-005q36-2B for linux-arm-kernel@lists.infradead.org; Fri, 06 Oct 2023 13:00:43 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20231006130033euoutp016108f1eeb19d125359b1d1f745208956~LhjHZUU0w0441504415euoutp01G for ; Fri, 6 Oct 2023 13:00:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20231006130033euoutp016108f1eeb19d125359b1d1f745208956~LhjHZUU0w0441504415euoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1696597233; bh=yMIQ2PYZ0kLOnFppm+QOgiVTZ3gELpCwexB+P4HZV9Q=; h=From:To:Cc:Subject:Date:References:From; b=bI83gpthaxVbs9/Jqm+MJQdCdNWT0ISzvPZ/rF1NtxgHfvaK7WdtQtQ5vczbnQuEd TmGJ0W7bdTbzm6CsYxB28Kugss9kUv3Fe8FkaJjRBuUvfO/7m4nrIBkM+aDhFAG1es rMpSjMN6IdR+Kw+YQfZ2Rv+lAvdNKr5EqzSmPNF0= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20231006130032eucas1p23c52d6b50a6384c50e5c0e4061bbaf3b~LhjHHKA9s3165431654eucas1p2n; Fri, 6 Oct 2023 13:00:32 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id C8.4A.42423.0F400256; Fri, 6 Oct 2023 14:00:32 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20231006130032eucas1p18c6f5c39614768911730fa6ed0201ee3~LhjGq_j_v3011630116eucas1p1l; Fri, 6 Oct 2023 13:00:32 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20231006130032eusmtrp1c043748a9e569b00072a6619a276d8c4~LhjGqXn_z3155531555eusmtrp1l; Fri, 6 Oct 2023 13:00:32 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-2b-652004f02a45 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id C5.AA.25043.0F400256; Fri, 6 Oct 2023 14:00:32 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231006130031eusmtip2d39c030222cb278c8c6958b14326d884~LhjF---HQ2114821148eusmtip2e; Fri, 6 Oct 2023 13:00:31 +0000 (GMT) From: Mateusz Majewski To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mateusz Majewski , Tomasz Figa , Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Linus Walleij , Marek Szyprowski Subject: [PATCH 0/4] Fix Samsung pinctrl driver static allocation of GPIO base warning Date: Fri, 6 Oct 2023 14:55:53 +0200 Message-ID: <20231006125557.212681-1-m.majewski2@samsung.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA02Sf0yMcRzH932eu3ue4vJ0ZfehyMptmHIlPFRiQ7dsTdrMItzqcaW6co9T GD1UKPlx7pSuIkQcLUq33NImXEsNYbeb1JKY1VkqZrZbuevJ+O/1eX/en1/bh8Ql14RzyTT1 AUajVmYEijwFZuvvl8HfBQsYOadbTfdfMYvox8NNBG1w1mJ0wyebkG686kT0W0uliL78qhWj dVY9Ttc96yXop45TQtpkcaJ1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fmlJqkJGfnGJrVK0oYWRnqGlhZ6RiaWeobF5 rJWRqZK+nU1Kak5mWWqRvl2CXsapqbvYC3axVUy5N5GpgXEFaxcjJ4eEgInEm1mPGUFsIYGl jBK/d/JBxKUlDn+Zwg5hC0v8udbF1sXIBVTTzCQx6edssASbgIHEgzfLwGwRgW5GiW8TuUCK mAUOMEksmXWQDSQhLBAm8eHUDjCbRUBV4tnt1UwgNq+ArcSq7jcsEBvkJfYs+g4VF5Q4OfMJ WJwZKN68dTbzBEa+WUhSs5CkFjAyrWIUSS0tzk3PLTbSK07MLS7NS9dLzs/dxAiMhW3Hfm7Z wbjy1Ue9Q4xMHIyHGCU4mJVEeNMbZFKFeFMSK6tSi/Lji0pzUosPMZoC3TeRWUo0OR8YjXkl 8YZmBqaGJmaWBqaWZsZK4ryeBR2JQgLpiSWp2ampBalFMH1MHJxSDUz5Gr1XD1bzN/lvkWl6 PHNaUrrdh7c2PtP7xY5Lb4ivTOURfHjyo3pO1vT++vpokdsMwV0Zh2Z9SRFof8EmpeTWV7DE 3Ixp7o+pM5qy1k2dPvVC8ALp8MRH/G9r/tr7CbRNTlz9xMyq+Eb8lbme8eEnayTkbb4tdS2P achdLJpUOU/Y45KD678jXo+vJzTaWv3NK5eM0SzRi8t/yaUQlfJeKufNwUTT5f+fzdUsUP6S vS5mTxn77j8utXOO97jkrtSJ6G97+3x779w/lz3+3PlurJCu4yjYtTiQz2TtpLJq2e/hx94K +jZq8ibv29zKM19mqscc8WVhvEz1575wFV9v+NbHKZeoXGoX/MRBiaU4I9FQi7moOBEAFUD+ TQ4DAAA= X-CMS-MailID: 20231006130032eucas1p18c6f5c39614768911730fa6ed0201ee3 X-Msg-Generator: CA X-RootMTR: 20231006130032eucas1p18c6f5c39614768911730fa6ed0201ee3 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231006130032eucas1p18c6f5c39614768911730fa6ed0201ee3 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231006_060042_116334_2729BD74 X-CRM114-Status: GOOD ( 10.88 ) 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 The object of this work is fixing the following warning, which appears on all targets using that driver: gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. This needs a small refactor to how we interact with the pinctrl subsystem. Finally, we remove some bookkeeping that has only been necessary to allocate GPIO bases correctly. Mateusz Majewski (4): pinctrl: samsung: defer pinctrl_enable pinctrl: samsung: use add_pin_ranges method to add pinctrl ranges pinctrl: samsung: choose GPIO numberspace base dynamically pinctrl: samsung: do not offset pinctrl numberspaces drivers/pinctrl/samsung/pinctrl-samsung.c | 56 ++++++++++++----------- drivers/pinctrl/samsung/pinctrl-samsung.h | 4 +- 2 files changed, 31 insertions(+), 29 deletions(-) Reviewed-by: Sam Protsenko Tested-by: Sam Protsenko Tested-by: Marek Szyprowski