From patchwork Mon Mar 7 02:11:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12771073 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 25DE4C433EF for ; Mon, 7 Mar 2022 02:14:30 +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:MIME-Version: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=TX00wJR+nH9Xs8y4DlQGnq+R0K4TPJ/d1Sveb7Gs38Q=; b=A+kZCb6VrhGoPo Hz9VRuy91bhJo3WMoffH5OcnJjv8w8iHNr0lIH+FzBx2P4nw7P2+txTKLtPZCNxCmUwhbEvAtOmh8 XWc0zdHge4/qC4O1cD1Kn3QXdHzPfTv7on3QeJecATRb6R6RWk1lx+l9Dgd3P7A9nt0tiWu79dX1/ bOF8dwO/G2JJAfKuUfOo2Pxi41KgeQh5NoHZ0WQt4/5mTTKBjuGsVKx7mZ4Pwa9AbkogeYIlkJvmS M16Xq2V6CSYZhraWD05oxEsiXnO01jYKqtXZz79DbFizAlehzT104LXQNCUbCdwPiYfvqzH6JOXXS An0ROAi/4itQlWHl7xRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR2ro-00FXZf-Qp; Mon, 07 Mar 2022 02:12:57 +0000 Received: from mail-dm6nam10on2072d.outbound.protection.outlook.com ([2a01:111:f400:7e88::72d] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nR2rR-00FXQl-Cz; Mon, 07 Mar 2022 02:12:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sp5in53jzu3wnn/BdskwppXLK5zC1hLjwSi+XzYnXJttrVA/to2DcNE93nJuOzh+KdihQg1aY3KhNoKbc3mCanwpRte+rPcUPSgNUeJBpY/cW8JZNS/0PTbjbExzcm1CHaWyczCo3L2EUc/4oDpRO5iqxVDpDafMKK+QfBeJjLFQEPcpPJiquKomB4osWrCepz6ZgE1zSmZtiDyyWKr//2+gCUfE4Agw7xOmi/576twnOZ4m7Ngp6JKWtETM1ESXw2JKa1V5ukSYMpzLn9KhMQ9eMBwTV8j9G1Ma1Vwxz+Sbyv/dNeIhBtdHcFtFZjNuoSDT0ewLoNUeoQLcWJUcmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7hJjodq4GG2vfBpX7f0GbXAm1LzTx1uG4qV88Nu7HeQ=; b=SUr4K5r8pOKnOTR60BJagQwDsnRWR5Lgjomris4x4Ob+EXvMcVV1niExf3r2DjUHK1aYqtFHn3P8ao1s2T3ai9p70R4BIgtszy2uwnQFZ1D/1sweuJpfDTOJwXjWTpxSimH0QJfg0JXlcP0YFQi5LCAluYeDyEvzdbjNA2Nmfiw9ZpYxywJUkCkky2KUDr30ExDwxeGTD8ZdFUOCpNilcFxRi8lmamE1COuWZisZzpqQzVENRez3eHwmMYAETHZJBzbI7NRMRrhJVMy/mnloC4FggNc3fC1t4ocnk/Ld1lNZN2TD9QHo2WwBcElYKWX+RW6N3ccbUAnGvoQot1JKyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7hJjodq4GG2vfBpX7f0GbXAm1LzTx1uG4qV88Nu7HeQ=; b=gqsP51+Zjnbe3bv5+1Ub96PkqRTXZzM75QTroBJeZ06PnobUEuh8poNK/JcxcLtS6bwIvjmaDTXQfEGFq53F5owCENA4nYwKR944L7degzv35rD+JCX36jigfDN8phZ+m/7p+XD/X2WwY6IuJVoULyxLBUWL/VKq1hzR4bz48wI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by SA2PR10MB4553.namprd10.prod.outlook.com (2603:10b6:806:11a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Mon, 7 Mar 2022 02:12:24 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::7c:dc80:7f24:67c5]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::7c:dc80:7f24:67c5%6]) with mapi id 15.20.5038.026; Mon, 7 Mar 2022 02:12:24 +0000 From: Colin Foster To: linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: "Rafael J. Wysocki" , Marc Zyngier , Hector Martin , Angela Czubak , Steen Hegelund , Lars Povlsen , Linus Walleij , Vinod Koul , Kishon Vijay Abraham I , Russell King , Heiner Kallweit , Jakub Kicinski , "David S. Miller" , Florian Fainelli , Vivien Didelot , Andrew Lunn , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean , Lee Jones , katie.morris@in-advantage.com Subject: [RFC v7 net-next 01/13] pinctrl: ocelot: allow pinctrl-ocelot to be loaded as a module Date: Sun, 6 Mar 2022 18:11:56 -0800 Message-Id: <20220307021208.2406741-2-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307021208.2406741-1-colin.foster@in-advantage.com> References: <20220307021208.2406741-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MW4PR04CA0174.namprd04.prod.outlook.com (2603:10b6:303:85::29) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 368ea0e2-ea74-4207-f379-08d9ffdfeb6b X-MS-TrafficTypeDiagnostic: SA2PR10MB4553:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UUbaUn/JSdyNFaOwC0O8EbloTeF5ay9WEMpLR/pXyAZLtjiSSJQ/KgEKS4Fwkrg8Qm9ziRY8oANLflgZrkR54mkUyCW1k8mSpR6SgoD0X4ymQ1kePu6mkyv4tVbeQl6k+j7urV/DT7OXfMUngPi7U7dARFmLwfDmWGvLwkAUir+3YT9+9jU79Y5cCX4NMNv10dvlL4dr3hLWJixM0WDwcuY4m+ULM1eFn7R3ZLMQew6ZfR2LCWv7znJFDMd8m1St6QelsiiadalbzPaW0IpEWZnekW+i0TnDjMw40YBOL7QIGj+T5ZK7GXzCIZHkpafZfESL/ACHkYY36Qr9yFjJq+swJa3q4SRChUdw88ByyPGE06i+oMQYrlLjeDjtr34OyOGNYzwlHHzI/xwMvigcfvEALJFlLFX+2+VIDDxCPiDQVqC0ohetpDNKjNerldpDTizOi+yXJNAUTk687V5O64dvwcaoPBbfNsHA6+XMhJaMw103gXH3R7yY3cuNWejJvQNr8TVAV2Q0EinSVyiDFT3yLNMY2EotedJz1rbuZo9G/CYVS/pWOSV3DK0IbT4m72uM2CwRWdxIRI1/Ip08cXKx84wDLCYirKkUSHkcpcJz6oJelr2vxOqPbEzM5UZXjPLg8AIGnMMLaCUlEWsmpABp80+7KXTenWi+4QqyF6a6ae8qx1APiAeEhZIVRozNwxg5EL27xllpt0AHqWFmbQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2351.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(376002)(42606007)(396003)(39830400003)(136003)(346002)(38350700002)(86362001)(508600001)(107886003)(38100700002)(6486002)(54906003)(36756003)(44832011)(6666004)(6506007)(66556008)(66946007)(4326008)(316002)(66476007)(8676002)(6512007)(26005)(186003)(8936002)(83380400001)(52116002)(1076003)(5660300002)(7416002)(2616005)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3qzHTuRyKd1Gm2tnhmtNWP3uve3W0JA1up2TqRyWG+n4XIEceUu362Nn2aUVFLAMU8x/AFC//eOvodPPBwEGxIt8YCmFG97W2e7fm9Pw+X+F3XItLfsYa3Av0HEJSO+jixoUoU4Hp2QSHa5s5ql7ROrvb1QFaqCxLfXazBvPCRLNwSNcYk7PafZMS9hxtFow9Uso1waViy6zlxeRn9BbXbHRYlBJsiv0j0Od+ddoN2SDb5WbIpbNGaK8nX1EmnwR4TW4K2nfbpnA03E0WGpWsebHFmNNy7Hu8PG9/SnYMbN6UFV5mQLGAWD/FdJbqe5WWvEIwg0JRcpyqAzbd2UK9hdIIfg/Bec/OiO+fnV8pG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+SJGtQCZntkbqO8qipR9XVzq8znOJ+TQOWGUCYtPs097NPJOiRstx1I4x8aYhOtSR2EkG4WUlGPPk3UVOL/nDP//E5HqZcmiVcyM6JqOdXpq5CxjBuzjqBCTl1axiaGqeCnHCVi5OmQYaOIsMSku/jcDJjcfkdanxS9E1XMDhBPuVV8uyl15Le2WqVAkiTgGbHkjqgsYNXYLVAiupX3P/aXbOKNDWhPwSWRs+vPx76g== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 368ea0e2-ea74-4207-f379-08d9ffdfeb6b X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 02:12:24.6833 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: M0QwxKWa/0jf93JCN0Q+CuiEt6GXQA4TNzwF9q76J+ScUYMNdu3yHwbLDefdbBT+gu+Osux7/322sAbXOiMPSxQbaRokVuHyu3j2duDdc+c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4553 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220306_181233_466943_C34A71FC X-CRM114-Status: GOOD ( 12.38 ) 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 Work is being done to allow external control of Ocelot chips. When pinctrl drivers are used internally, it wouldn't make much sense to allow them to be loaded as modules. In the case where the Ocelot chip is controlled externally, this scenario becomes practical. Signed-off-by: Colin Foster Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- drivers/pinctrl/Kconfig | 2 +- drivers/pinctrl/pinctrl-ocelot.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 6fc56d6598e2..1b367f423ceb 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -311,7 +311,7 @@ config PINCTRL_MICROCHIP_SGPIO LED controller. config PINCTRL_OCELOT - bool "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs" + tristate "Pinctrl driver for the Microsemi Ocelot and Jaguar2 SoCs" depends on OF depends on HAS_IOMEM select GPIOLIB diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index fc969208d904..b6ad3ffb4596 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -1778,6 +1778,7 @@ static const struct of_device_id ocelot_pinctrl_of_match[] = { { .compatible = "microchip,lan966x-pinctrl", .data = &lan966x_desc }, {}, }; +MODULE_DEVICE_TABLE(of, ocelot_pinctrl_of_match); static struct regmap *ocelot_pinctrl_create_pincfg(struct platform_device *pdev) { @@ -1866,3 +1867,6 @@ static struct platform_driver ocelot_pinctrl_driver = { .probe = ocelot_pinctrl_probe, }; builtin_platform_driver(ocelot_pinctrl_driver); + +MODULE_DESCRIPTION("Ocelot Chip Pinctrl Driver"); +MODULE_LICENSE("Dual MIT/GPL");