From patchwork Tue Jun 28 08:17:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 12897897 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 9C611C43334 for ; Tue, 28 Jun 2022 08:18:57 +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=qIADxWOqYEzrs053kHMfLlL7APodkIxjrWoNgFAlxhg=; b=ngvuBnbxNUs8Ed +o9mOTPpi0yhlMsNg5jLnOPFE7d0EJlBZ10YGodj6xUHHWBw4X4+IsFRVc89fv6qKOes1j17QyBcB SOU2+KNU7iFKUc/TntyB1N8Ez18z0RSJ2YsHSlLsULUL8DCPo8ZtrfxdG3InMQw8HZAQN3L2/NBeI AUhR6D9M3a7E2LYl3f1UeQ5+6xDR4Hnz7OFthxQxYaDChtn/sPcvFostZMRy6cAg/5T+FJINWcEMb irN+zKbHKgtF9ndPaoFDkUWTk5/w8s9ni740HYbKu5QarE8LmeWsfo/ut74Q7UlMv6mWVIF55Jh6m 9VLyo24xYAjvrphx/Naw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o66Pl-005Bil-5L; Tue, 28 Jun 2022 08:17:41 +0000 Received: from mail-sn1anam02on2123.outbound.protection.outlook.com ([40.107.96.123] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o66Pd-005BdJ-LN for linux-arm-kernel@lists.infradead.org; Tue, 28 Jun 2022 08:17:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HjeQmyHRwxQ7QIgJ0Zh0WnNOKesjIycwfvX/Ad8Lh4hDN0IuXX4ckpPP9AZUi+K/mlQwkC0VctBRW0Ao47Dvi02mLOON+1DEszXCZh3nJLpI+y8n2QTz+SpRuq2Vce9ts5QcoV8VB5Gwgq7/ZlDL08jxa+bZu3gLof3Ao47Y1Kl04TiVpN9IEKgGJe7OY2ATBnA4KbF1qTqgM3+a5h4ojNx9sgnlZxkGidUGRRnxw1tOgGjktqpiU3snZobW03gqU+acm1tsu2Yf29K82wbq+bR1IROuj0z4yOiNFy48XEBHKQlFLg2a4zyY2+pXFOJzyxQcFOEZr+D7z/3Hy3TUjg== 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=8G088u5+cp8kN7ctmVBiVFtcatjgF7vsa+tb9IZ9h/Y=; b=f1gJe+g044xam4FnyxZ9mdo2r92zmdoPUp4GAgktyKftxDtwYijbf3sH4pR+AWGSd161JwIpsu5HzljADzdb7G9P0BR5+a7kcf+0fn6LAijTRLCYzF8Aq0UN3HiwTg6vQ0XCIf/9nlBJsXW6Gr5J1GbMgmtj/HkF1jVqOBjygMKU5wUiS85FROWs+Z/a3JqLU7faBYUzHXmiY0CkXbLnmojgan9VhXK2DA5m5uVvBUmVIBFQuwcX59jmKjR5DDSXpV7fsr0dt/BnyLPeck+fJ1A0YnVgm03PQna2gJvvt3BhmQXKPYfjdYxtx9Fur4+zQ2u52a+dCG8CDN16ySTFGg== 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=8G088u5+cp8kN7ctmVBiVFtcatjgF7vsa+tb9IZ9h/Y=; b=oNDPYYoZZvOXbPahTdVlJLXOV2H9+CE4zqpUulIt6b5sqNK6SJE8Bb450MAPjKnKHfAUQYrRd4iVACjx2XN2xrMcfYyzflbJI6PgTJxuVFHlt1iDTqRNw6vnTjuztPLmfjgDPPxDxMYqGYVNYvBwO58bJc2Vd8iYHMtg1x8Ad00= 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 SJ0PR10MB5891.namprd10.prod.outlook.com (2603:10b6:a03:425::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.17; Tue, 28 Jun 2022 08:17:27 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::712f:6916:3431:e74e]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::712f:6916:3431:e74e%6]) with mapi id 15.20.5373.018; Tue, 28 Jun 2022 08:17:27 +0000 From: Colin Foster To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org Cc: Vladimir Oltean , Lee Jones , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lars Povlsen , Steen Hegelund , UNGLinuxDriver@microchip.com, Linus Walleij , Wolfram Sang , Terry Bowman , Andy Shevchenko , Florian Fainelli Subject: [PATCH v11 net-next 3/9] pinctrl: ocelot: allow pinctrl-ocelot to be loaded as a module Date: Tue, 28 Jun 2022 01:17:03 -0700 Message-Id: <20220628081709.829811-4-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220628081709.829811-1-colin.foster@in-advantage.com> References: <20220628081709.829811-1-colin.foster@in-advantage.com> X-ClientProxiedBy: MW4PR04CA0259.namprd04.prod.outlook.com (2603:10b6:303:88::24) 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: ec780eab-7c18-4620-8fa3-08da58dea344 X-MS-TrafficTypeDiagnostic: SJ0PR10MB5891:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DO2lU4bv8iBQJEeaeks8dReJOqdyqYQu9s7rLBnVWn982D9N8ajVYB82WbwQUS90tuWangwm6wxQaHoU0RUVx9tzcJurzefJ4Ur+Q0iG2kg7tWRndjLOsu8xh3VclPYxlCZypbr91AcGijphe0/CJj2Xfakd2dVH7abRY1n13pVOJwFNwZqS8vb5/fLQZLOTTyE7G9Sd/s0P2UVtPFBxoKN9AZ3RDSsJnXjFuS2OdhOiC2iCTyBftzbTG78IPIgywqkeOp8kGBgaT+CAvYf0GDSgSsRWW9R9lDf3uJ1QGlAUPfalryqMCsw/sKuZIsdTI0/oe7+OJr3kvB+mpHxioc/VhLiz5NsMMYQ0zRkF/dY7SlxKbSJC63vYIOTWoz6L8n1PBPXNfAniGH7F5R2Uf14Mk4qBMk+hYQzIQnZefWuvugQK/b7AQ+D1odRHmNf8Syxs7qoXxkpPylxX9Pjxu8Nto81qkm93g/CBrDONnnnzYNT3lmPmY1ua9u/Cc+igwFcrUaIgYHB+XWnXb3jgzyqWy1HgEsOA2QeNQRqViP+IAQx0PRcFk5t2M92kBna0o3u1Xd3We4m3S+snKbsEtlQ4U0yKxYj5hVC+aw/QE+co2g7k7gRdGbtVoz0uW9pnvrnBmABo7b1Ze3cwi+Q+N5tsfWVnaCKk/8afQlS6WeUSel3v92Od0C4FfX9iRrTPYIeOAbT6qsfQ5lZ5HDF5K3PQdI3i2vny0ZqOLBzKOOozDG5dCR0+1P7C1dDl0oaPC+uunNpzN8v/2+yqjFH0shdbC8hhxzB3Q5qytQUfHsc= 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:(13230016)(346002)(366004)(396003)(39840400004)(376002)(136003)(36756003)(38100700002)(6512007)(6666004)(41300700001)(38350700002)(44832011)(478600001)(8676002)(4326008)(2616005)(66946007)(66556008)(66476007)(6506007)(2906002)(54906003)(86362001)(1076003)(6486002)(8936002)(186003)(5660300002)(7416002)(316002)(83380400001)(26005)(52116002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YBenDUTiHjDqa4HdcaMFalebkuNGODVBJcd3vQ9nYa0g8O9R8lXNQEWrKzaf9NLlAi83E8ve4ahtwW68Jpa0bb4a/ibyeG6Qh1FOkYfUDbBhRRqH5DrJOfIGg1UUkmF6wVLbUyaDmgfr+cykOQ6CQpn/hOyLIL9aH67F/hQxmJbrae9prBaeABNsRBNX+HKpDEtzwSogMpNrssusdth55xNaKOiSoL89h8JpvzO1+jaqqCUrQLjcWS8okSPn2fGsAmcDw/8FnTrqyHPCyVGXtDaEMixkgsjbU6HucNKF71+ohPEzZVtMJiZv1HKzmWXyN1eQ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QgHol210ybw3T5NbeGHlLl00GMFcCEh0yrGzAWz2whx5fcO/zErb1/cF0dSIuDqfAh5jF/Z7z7Vy3qLhyTwPKHmRqI8c6kBeH7B+Mff4FSB1aXmTgfiYiuVqLz08ihOXyXnO/cNmIqIxy3i6SnC5Earg9IChGQOP2iZtL2hlxeGlb23U/1gWWvMCFnPzz75kMZF4QIrJymuq13Ybnh22x0iOBffavxcw== X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec780eab-7c18-4620-8fa3-08da58dea344 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jun 2022 08:17:27.3384 (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: w/IileGREFi//JGX6+l9K34a+NrLZPCt1QOuFwxTbtgBBubVtTBJhJ+w1MbeFBBN5W/69N3rV9wcceZpuZ7IM4oOlVXgZ1gs2AlEmQL2VLI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5891 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220628_011733_957988_279B94BB X-CRM114-Status: GOOD ( 14.27 ) 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 Reviewed-by: Vladimir Oltean --- 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 f52960d2dfbe..257b06752747 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 5f4a8c5c6650..5554c3014448 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -1889,6 +1889,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) { @@ -1985,3 +1986,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");