Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1567421pxp; Sun, 6 Mar 2022 19:25:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGH9GA4y/KIqIGADZ6X6FK10GNhwR/6zQCk+1PYRSj5Fk3QFVjdCXSaQ5IkKfMxPiw9nbx X-Received: by 2002:a17:907:78d6:b0:6da:825b:96d with SMTP id kv22-20020a17090778d600b006da825b096dmr7841133ejc.460.1646623510004; Sun, 06 Mar 2022 19:25:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1646623509; cv=pass; d=google.com; s=arc-20160816; b=wXlfkPWBWtQ5l+NvJE/CTEOhTq42ainFJVthgcnQnDOTNyLPPtezwo4+k4R21Dochz GZMcICXKiX76d7A26+DMto1kaxERzwVcSDVMvYpy3iOq7SAUfegJ3TZrSnexbRINcYIQ clwl0MUgFQH81ZhyW2j5Z+RbAzDu+K+V1KAWYJdNvNeQytBa2cQdD0twfak6SRwv4C6x fa2suRNDU87EaIfb0xC4km738A67QVK/VME67XdzJ+F1lxW9cv6HjXL87s2bthF1yRYI U5sVErWJ5O/MhLTFftQi4ZwUAgFbcJl430CE5gsL5hPupxiso0I0UDDXfFyBBVHEf188 RqAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dZDWo92VHFVhBfNmNY04LIkL62bcm1O6DKC1gANq4Oc=; b=jblcu9BCoxSNXBNLEA8zdrPd0L9Jap9AUZrUh0qEixeD9IwWyJ/liyISgpfZV30e/J 4GdRx7wuux70K+XDEptbgVEUHl3Qm/Ca0+U3ZF6CiKbaFCmnWV+V2Hn3B6rzwBMaeYQc hjUXq3kcX1TFFADcJ68dZdQLbFCbpPwsMyAxiHDNPgi0s4WJdsl5PuxRM/43nRIRsipv PBwecoL5Pw00Xu2x2JMz5KnIKc77/mB4aj1An271SlQZpLgAe9bYUskMnMmPCr3cjDoW Av9ic2v51mDRZ2pb2g52wi/Irl76mRij3psYvHsTnjambMfGqflowM2Vksc5Zfz4gPCM Msng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=wM7RLsuD; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020aa7d44a000000b0041613ab1d22si4439982edr.553.2022.03.06.19.24.48; Sun, 06 Mar 2022 19:25:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@inadvantage.onmicrosoft.com header.s=selector2-inadvantage-onmicrosoft-com header.b=wM7RLsuD; arc=pass (i=1 spf=pass spfdomain=in-advantage.com dkim=pass dkdomain=in-advantage.com dmarc=pass fromdomain=in-advantage.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=in-advantage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234582AbiCGCOB (ORCPT + 99 others); Sun, 6 Mar 2022 21:14:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234693AbiCGCNY (ORCPT ); Sun, 6 Mar 2022 21:13:24 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2104.outbound.protection.outlook.com [40.107.93.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECDE313CD1; Sun, 6 Mar 2022 18:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hPnVwdvcnByp319qsuWGSlyWxXWIMt9jhIpeacuSnR5dZHLeRV298Fg3J1F9iXA+9eoRC9VxiUdEAvQo2rLP3jxijOZ2tJWIay0BkSail2E16DHfZTUTSRz8gn+j/QbOcX5lAx6DF9ewUxubLwr0LL8hay0eba+NCiXZ9M+LjL2gPaHfGT/IBo7/TrcCWqXToHOGkf2493bV6LOBvpPn0WtZNa4TDG8p5c27QxtR7D+Bnyi0cu8jqpkpOGCG1XevXXhN0N6C/smVSFVBxOj37EsteDt41cLPNtVH4CFWU2PfXNhL7H9vf5iG5Sfj3fwiMvTpf9B97D7ZiSgu10sN5g== 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=dZDWo92VHFVhBfNmNY04LIkL62bcm1O6DKC1gANq4Oc=; b=EGU1+/F1/pM+d+rQ+x4d0iudpak0VXX/AocmH+shLiy0GxZF+hWTnJq4R4yD400Lx+KnboZIfmo5UgNof/ZJUoLdcdZCLodcaakEM5E7MQwmIYeYCu8dU19wH2MH7XL0aLEj0y8gEqW79ctWvFkMnmKKmEE84KV/U7OPKAg4vmhB4PDPtz3Vy0OWag6cZlNby14SpwI9ny1CdiFVY8h5rKCxRJUfNzrdRfMRPWeEuRUamIaXcsnEAW3I/eP7zw7HuXvOgJ52FvplNzFyBuTqSndGlO9lN/X9G43zidXq426iU1qCtZ3Zo4jt+Az3C9DCN37MYiZ4O52t1w+HfOM+hg== 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=dZDWo92VHFVhBfNmNY04LIkL62bcm1O6DKC1gANq4Oc=; b=wM7RLsuDQwIKJmiIvcxpR/oi8ClqHXoVkeuptA+dDJvPOpXKKvUxTGX4Wr77d0IiV3uWZGylZUKrZq8IoDoLgOcq4vgJlGRz9/hRLktOR75meC0AjxhGz1Ixh23YBrprn/qZfYt46dyUDlahvuWQ/P7HbzEMUZipbUQWbp3FkVg= 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:25 +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:25 +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 02/13] pinctrl: microchip-sgpio: allow sgpio driver to be used as a module Date: Sun, 6 Mar 2022 18:11:57 -0800 Message-Id: <20220307021208.2406741-3-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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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: 629a8cde-c2a0-407b-99b5-08d9ffdfec17 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: MiEZizXy0Pl4UbElPYpeO5wNyvdRxB0XTNyAJjoYDb7YhVhGjzEdw/QHxkHlZYFVXFZn/td9aH2zwsQKd8jaRTz0p9oPZZ0TbIoE6BVAAlZgr5O4vUFicedanrEa+okNPjUIk18wuXDxTnXBLszgLtdwPTg902Z8hl9VJjkzCaFQD6/Xxkmk6jH/hSoKl7xGLqMZS/huDVxLDUasRh6EShyI3dmeRmNzrsp8Bh3hk0kKW6ZULc6zGDxW5BEoA6+jHF8knDwXW57j+HM8EQAbCJfYS1zWkERc/+8BZu/oAwo7Oodq86fqlSgetneWmitFgef+ADHmsJv+2hI32NN+aMZO9htKqRcJVrEElss+g9nq3mkMSDkvUYdLrFaNd1QFW7eh8Q9zsCsnwJ6H4lGtFb0o1h7O589B0WHBKEJqaE6sN69quWK84BoWTQbTGRcxIJkv+q8//2Jtwy8UZ66uFrzwh3wdZhMj2hbIiVXhXaejvzg4iJXHrZRwSa9lFuDfoxZrVPl3HK8WDV7t3N+1lyvhNKxvOyMMdfGeutkckcSZO9/tbLm847Bxq72LfwzfCastwZjIj8sMeu+Nu0V1XE+Z6gmn7UHWaGxAqb4sN+6dgpIf12x87Wtc3Yy/mbJcv0vU2facU2ttWY5U5KOfl+xnViu14cXMtV3bB7ioVVs+tv68twEg8Ykpf/8PhpWT 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: =?us-ascii?Q?OxEe+1Wo6XCOO4OXpW+zHbTBtcIKvOcndgmD1nH1YRLkGKhdSSCf4g8sOpT3?= =?us-ascii?Q?TXIimBXcnUTs/cV4Mzs0CbePP7S/2MKireLKOWsUWGVpQVaNOQv8wOQEzmts?= =?us-ascii?Q?1zyZpCQtYAAYpHuLNjYrRKntShfjGdemx2flLIJoVml99JL12AQPTVpRckwo?= =?us-ascii?Q?Ex0Bt7Z4mvuc14dmZ52LxkT/hJLu5sFCw4SNkKsIFQcv1yGoQ7fsVUg2MMRm?= =?us-ascii?Q?UhQcP2wQoVjiHyzVY/ZmxygEh6kvmrvNxJu3K2ldDKjxm8jn0LUNmJpE6iFg?= =?us-ascii?Q?7bd5nIVcE9F/6LadoH7ZpX6GPGgaM1HsDf7O2/I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3ZCmS5+oEQNo4oOq2zy8ACevP0OHcH8yq6561iXY9Yo2gCv3CP/CEp8VYr?= =?us-ascii?Q?WrCwYQBsDYqSELAbGQGVUpMuD4NuK9kgUt+XnfhNQu9Qur9XamUttJ2GvH9a?= =?us-ascii?Q?zV/fGqjXfQbx09HAt+bOX+hwGsfV25GHap/drm5lMoR87X/AnrG93xmujp3O?= =?us-ascii?Q?0tFf3cvX4ck+MjhFwCyqLO6PJWWg0H797LVqJ+pZ8G/Ux3RfdsWveyEItTjo?= =?us-ascii?Q?ULNIMzgmaX+LFAqK38pY1d0dDaAgXsCTYlqJ9JiHgwdSosDNOJqU9JVN8YSO?= =?us-ascii?Q?17iWsNQuo+ZoJBN5o66RmefEJZZCuT/+PJl8lRTInAzBdxjNuzSk1gE0xoOw?= =?us-ascii?Q?ZlCL8336nkMdiu0gWvt1jsJwTUvYaHlb7mNLzIKh4g7udvdM4D83ki7icVD1?= =?us-ascii?Q?LQQkNxFdcdg/6A3c3be8WJr0eAiesOPdpuI+7HnvmVHtMHGfIDwKCnL6hPlu?= =?us-ascii?Q?Pj3zVw=3D=3D?= X-OriginatorOrg: in-advantage.com X-MS-Exchange-CrossTenant-Network-Message-Id: 629a8cde-c2a0-407b-99b5-08d9ffdfec17 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:25.6207 (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: qwjwzsB9iuxwmoYwOL51QJ4l4wo8pvNNrPBWWCgUkM5UqMRpeSnvMZ0FFdDFe1dHm9fds8ega7Phux+cBZtp+WawlrjzOMGmwYnWjn7h6w0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4553 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the commit message suggests, this simply adds the ability to select SGPIO pinctrl as a module. This becomes more practical when the SGPIO hardware exists on an external chip, controlled indirectly by I2C or SPI. This commit enables that level of control. Signed-off-by: Colin Foster Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- drivers/pinctrl/Kconfig | 2 +- drivers/pinctrl/pinctrl-microchip-sgpio.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index 1b367f423ceb..7ff00c560775 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -292,7 +292,7 @@ config PINCTRL_MCP23S08 corresponding interrupt-controller. config PINCTRL_MICROCHIP_SGPIO - bool "Pinctrl driver for Microsemi/Microchip Serial GPIO" + tristate "Pinctrl driver for Microsemi/Microchip Serial GPIO" depends on OF depends on HAS_IOMEM select GPIOLIB diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c index 639f1130e989..e8e47a6808e6 100644 --- a/drivers/pinctrl/pinctrl-microchip-sgpio.c +++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c @@ -913,6 +913,7 @@ static const struct of_device_id microchip_sgpio_gpio_of_match[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, microchip_sgpio_gpio_of_match); static struct platform_driver microchip_sgpio_pinctrl_driver = { .driver = { @@ -923,3 +924,6 @@ static struct platform_driver microchip_sgpio_pinctrl_driver = { .probe = microchip_sgpio_probe, }; builtin_platform_driver(microchip_sgpio_pinctrl_driver); + +MODULE_DESCRIPTION("Microchip SGPIO Pinctrl Driver"); +MODULE_LICENSE("GPL v2"); -- 2.25.1