Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31399584rwd; Thu, 6 Jul 2023 21:44:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlGH+8kKRu0h0Csi2sBBEhazkyfi7hrLOfUjvHXqzqmMBJKbebGYkTOkc5L9wPJQRamBBRVn X-Received: by 2002:a05:6358:5923:b0:135:435d:fe62 with SMTP id g35-20020a056358592300b00135435dfe62mr4929559rwf.1.1688705076718; Thu, 06 Jul 2023 21:44:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688705076; cv=pass; d=google.com; s=arc-20160816; b=SESk2UaFdVPNL6lmrIZvK579EtUIaogFuaLEZbj7AOvELJZZQG3OruaeTFoyCv3SwS IWbawpgEq9Qrw4DWOrBEgDIuv1vr5GvW8ghv8Z7/LdDD+3ksk4f8OWKHKkKKY2QZ1GeF Wx99TAjrxWGzoJO8yXFT/xwJMGkzTEFZ4UL6OUyl/lFCWUYq84txLeTlavfIjwooWeHO iWqiNTpUDA1GxATNSjWBeZBNKkvSKfU1KnAd0J8xjh638QIaW3KYXvPe7b3VWImKV7KW suywSNWA7WgW1gAW+axSORAHmrxJCz6pjyGosZThJ64RliKC+7Y8noGnIBHbgC8tSqaE VlFQ== 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 :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=B66F1EcxhHk+U58MKSvVI+KwsTDmMosCkKc6mK/cpRw=; fh=8UvHNsqpI6bWT3c7yAjlhKytWxrf1Y9Ljgy6cQDsjx4=; b=kOPahZ9TtOm3Qlp0QxHU7RzwnK9mqs6l0rdWGwpLertwZvef7P1Cf8z01kFSpzE1ba 7yZkbpgFHENEJf/isX15YQLB3LfLStg1vFDROIU7eN/B6DMhLkw5Q13dryLtgE5mOH47 gvLdbWb0NreuKSbsyl1MKJSUlis5jA+Fdx1lizVMHXdXM7Xi7qHn7gK80erh/Dp0yod2 L0aMwXk2u4niIoMLP/JEwWbWLqxAAuHqHJaiOruP+Ti9QAQ/0Ny+CUbXVg7ni6fmmX0j RU3aXsw4HG8kDSgmaB59pzlgyMDsyUrE/4UGCpM2Fg9EqNcrrfUlFEYr5xRriRv3d9/7 pUFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b=WPt9AdH6; arc=pass (i=1 spf=pass spfdomain=amlogic.com dkim=pass dkdomain=amlogic.com dmarc=pass fromdomain=amlogic.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=pass (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a170902dac200b001b54bdd6412si3096981plx.396.2023.07.06.21.44.22; Thu, 06 Jul 2023 21:44:36 -0700 (PDT) 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=@amlogic.com header.s=selector1 header.b=WPt9AdH6; arc=pass (i=1 spf=pass spfdomain=amlogic.com dkim=pass dkdomain=amlogic.com dmarc=pass fromdomain=amlogic.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=pass (p=NONE sp=NONE dis=NONE) header.from=amlogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232543AbjGGEMR (ORCPT + 99 others); Fri, 7 Jul 2023 00:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231367AbjGGELk (ORCPT ); Fri, 7 Jul 2023 00:11:40 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2090.outbound.protection.outlook.com [40.107.117.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E617271B; Thu, 6 Jul 2023 21:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TttV+IB56N8VMTpPADA/irKE1bu9mM7BmNQvIUlOz4dJ4kfFOzfsyPGlOVOJRxYJTP/U7HtseEqXqy1GN8p+qy/exJndfhnOw+tJU72urSEA//cXYih25H6ljoJxC1Se3DJcIe/apEF3nX0savtkfZFGWWw3jrJBAp6FjhqoUYWPal9C1D2TdFrKW1nn2+OtMqfSfKtjx9hnwvGAjs1MjfGeIdcCC05+CtwhnVoa/9OCm0DUnOzU+TO6kpO3Mw62g/gxkBIgx32A9fbTQuQ2644NEFTWP28mb2+hKoxUwO9vAXBIaA62zYcKKjiowf312X8Lod46DtC3osYU6JwwNQ== 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=B66F1EcxhHk+U58MKSvVI+KwsTDmMosCkKc6mK/cpRw=; b=nYJT7YcYbrU9hEylJm7byXE1bm27h4yHD0rrgMaqDVZEYNcbn2TyJJ1kGXIc7yNooKExHBJjc8J3/0ouR32jL/eN/d4WhLwJTpEijEQsEzd2nqFpQ6ADOlxc50pBcYfI2s9EIo+bnmH/9W3+U2Bix4TjbNrNdkU+i9XUlAra0v+VFpjvgUvJ45eNIgOAl5vpesyp64ecTehzCQ1J9rCaYXVJ6ZArt+oOQuaKJepEJ1NojkvX590iavgVb/dp6JST9Z0O9h58VfTidU5ubqW4vvxRvWCUAOgR05LwebYes0X75faUZTVRzlL+ODx4a2VT21HwHKPDHfoSDimpO5fzCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amlogic.com; dmarc=pass action=none header.from=amlogic.com; dkim=pass header.d=amlogic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amlogic.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B66F1EcxhHk+U58MKSvVI+KwsTDmMosCkKc6mK/cpRw=; b=WPt9AdH6aX9swMGDKiny2nnAPL7jvLwpWOxE8gNuiO+liXU959sIFx4NYnsZ1g+b7CLAOk41BdBL3plh4A533D2r8OR+BT3oO5/jfdiNMfXz94zbVvyKVxnQh2YXNKGN8ThXc0AKilt83eM2c214vRTNhgm5TqI3Kcq6z/WhYYnhq3gI/2FG2jYMGNnwqE0tf6qI4pdoD5ZUSt3ldbPSxHRHvV7r+xfxGEK7DcgK9X3QK5WjxQtjudzuIPfNDTB72OrKBvWchYuaUwtwwwX/4wfeQvoO7qFfyWEt8Pg1fZY3OCyx2MZP98gXvjdcZMY/r1mSxGqSAT1bk2rvUE9Jrg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amlogic.com; Received: from KL1PR03MB7221.apcprd03.prod.outlook.com (2603:1096:820:cb::11) by TYZPR03MB5215.apcprd03.prod.outlook.com (2603:1096:405:5::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 04:08:07 +0000 Received: from KL1PR03MB7221.apcprd03.prod.outlook.com ([fe80::66e9:429b:7b34:639a]) by KL1PR03MB7221.apcprd03.prod.outlook.com ([fe80::66e9:429b:7b34:639a%5]) with mapi id 15.20.6565.016; Fri, 7 Jul 2023 04:08:06 +0000 Message-ID: <508344ff-6cb7-0658-89ae-c6873079e1b3@amlogic.com> Date: Fri, 7 Jul 2023 12:07:59 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH 2/2] pinctrl: Add driver support for Amlogic C3 SoCs To: Andy Shevchenko Cc: linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, neil.armstrong@linaro.org, khilman@baylibre.com, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, brgl@bgdev.pl, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230706114522.2490655-1-huqiang.qin@amlogic.com> <20230706114522.2490655-3-huqiang.qin@amlogic.com> Content-Language: en-US From: Huqiang Qin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: TY2PR04CA0012.apcprd04.prod.outlook.com (2603:1096:404:f6::24) To KL1PR03MB7221.apcprd03.prod.outlook.com (2603:1096:820:cb::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR03MB7221:EE_|TYZPR03MB5215:EE_ X-MS-Office365-Filtering-Correlation-Id: a9204bd0-7a4f-478b-601c-08db7e9fc41f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JhDhgdnkX1WvcnYUhbM+meg2S3TUh+wdh+QUC8x6vmD67ZszMltoScMoqCICBQUKoRQKFAy1FD6TzsLLGEY0bbeBNbzjNBjEtz8hz5lnPXLl6pP2NWaMbK8QhhU1NexOe5smsgj/42mDg9SQGvbIf0IOKTxolG0iW+QKeAl3RyDgSBQDQG2i4/s7U1b80K9YgsNvM986rxjnlCVAhGiDEsuKBDmmYyzDD+9A4T7EFksdAEH+H61bJ8YaigYKzO81hMViqIn2AITLAeXpAOkqoVsDm/tU/A1sYN7sn/+xqARjFJsGWazRaxP1rP6RexTtVuobU/0KKvJkBACCeRGtdWPo/+hRqwZOnTxmhxGi6NIbRRdV0nn6ZwBTX5YAUjGOwWaUu8LoypztBNlflf8jODgcY/kwHKoGnzOAkoAqJNw3cRq8C1i2LgWx72/veoahnk13KDCUmHfo1K9cxj0Xl4Ub+yxyFyaJnEPSGUg9H/LMI1nCcsCKLIZ9py7FHzuDNCzQcW8MH18ugLoDS7Fdh36ocdBkLzumaUIWAO7SqifQgNWAnre0zudFxAPfjBHX2KSZkILqs/X5kPOTT28XCiu5mp/JJVT5O4rJbXtQZd/db1lumMd1CL4linVSTJsAFUaFo6EyeV0eAuLf2Bwb9GHpPqg7qgKB+Fj5XXmNGXmZEmfkQOAxNOQeO1ANpFTfJjVZn98BxCkeoc/BWOPnk2T18K0viv08ZlIA6mnH0sE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:KL1PR03MB7221.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(6029001)(4636009)(136003)(396003)(346002)(376002)(39850400004)(366004)(451199021)(2616005)(2906002)(83380400001)(66476007)(66556008)(6916009)(4326008)(6486002)(66946007)(316002)(52116002)(6666004)(478600001)(5660300002)(6512007)(26005)(6506007)(44832011)(186003)(53546011)(7416002)(41300700001)(8936002)(8676002)(38350700002)(38100700002)(36756003)(31696002)(86362001)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UUxIQ3Fnc214VW93eVJjMkhJeExYNnZhWmpIWTdTRTJBdnliWjQ5R0c1TEE0?= =?utf-8?B?b3ZYR0Myd3pzOVF5WGNGVVRXZzB5OC9ZRWJGU1hLelBaUm1PTEg3RW16Nkxk?= =?utf-8?B?NVQ4OE90OHIxUndxdUs2Y2U1TFg2Q0VnNzFlcTdHSGZrTzZwe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U2eGFyTFNVMmJ5bktveWFBZmFkd3R6UEJQNmdUVVVLS3lF?= =?utf-8?B?TXc3RCtOMWRqaXNtUStYUVFrVjNWTEQvVDkydFNpM1EySi9GVkduODYrZXF2?= =?utf-8?B?SG1iMnN3RzJ1ZTVjRWF0bG9SdFN5Wm5PTTl3OXpNbjdqZlNZR2xheU5iQ01r?= =?utf-8?B?VkNHZkl5c0lBMUQrSTRKWWVFY3R6c0c2b3FNbUxadVVCN0ZHbVUvOG5wQjRD?= =?utf-8?B?N0E9PQ==?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: a9204bd0-7a4f-478b-601c-08db7e9fc41f X-MS-Exchange-CrossTenant-AuthSource: KL1PR03MB7221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 04:08:06.2592 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0df2add9-25ca-4b3a-acb4-c99ddf0b1114 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3gwKenrljWCQKMO/haa2/UnSD3VN6jZrTZ8R+p26jxldP9T2MkOL5t+7Pg5cTUHOOFu3i8W5pust+9FNzXTTCg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR03MB5215 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi Andy Shevchenko, On 2023/7/6 20:29, Andy Shevchenko wrote: > > On Thu, Jul 06, 2023 at 07:45:22PM +0800, Huqiang Qin wrote: >> Add new pinctrl driver for Amlogic C3 SoCs which share the > > a new Okay > >> same register layout as the previous Amloigc S4 > > Missing period at the end. Okay > > ... > >> +config PINCTRL_AMLOGIC_C3 >> + tristate "Amlogic C3 SoC pinctrl driver" >> + depends on ARM64 >> + select PINCTRL_MESON_AXG_PMX >> + default y > > This default seems a bad cargo cult. Why ARM64 kernel should have all them be > opt-out, instead of opt-in? Shouldn't this be a distro problem? The Kconfig structure is as follows: menuconfig PINCTRL_MESON tristate "Amlogic SoC pinctrl drivers" depends on ARCH_MESON || COMPILE_TEST ... if PINCTRL_MESON ... config PINCTRL_AMLOGIC_C3 tristate "Amlogic C3 SoC pinctrl driver" depends on ARM64 select PINCTRL_MESON_AXG_PMX default y endif When ARCH_MESON is not selected, all pinctrl drivers of Amlogic will not be compiled by default > > ... > >> + MESON_PIN(GPIO_TEST_N) > > Is it real one? Yes, it's real GPIO and supports interrupts, similar to Amlogic S4 SoC > >> +}; > > ... > >> + /* Bank A func6 */ >> + GROUP(spi_a_mosi_a, 6), >> + GROUP(gen_clk_a4, 6), >> + GROUP(clk12_24_a, 6) > > Leave trailing comma here as it's not a terminator. Okay > > ... > >> +static const char * const i2c2_groups[] = { >> + "i2c2_sda", "i2c2_scl" > > Ditto. Okay > >> +}; >> + >> +static const char * const i2c3_groups[] = { >> + "i2c3_sda_c", "i2c3_scl_c", >> + "i2c3_sda_x", "i2c3_scl_x", >> + "i2c3_sda_d", "i2c3_scl_d" > > Ditto. Okay > >> +}; > > ... > >> +#ifdef CONFIG_OF > > Drop this ugly ifdeffery. Okay > >> +static const struct of_device_id c3_pinctrl_dt_match[] = { >> + { >> + .compatible = "amlogic,c3-periphs-pinctrl", >> + .data = &c3_periphs_pinctrl_data, >> + }, >> + { }, > > No comma for the terminator. Okay > >> +}; >> +MODULE_DEVICE_TABLE(of, c3_pinctrl_dt_match); >> +#endif /* CONFIG_OF */ >> + >> +static struct platform_driver c3_pinctrl_driver = { >> + .probe = meson_pinctrl_probe, >> + .driver = { >> + .name = "amlogic-c3-pinctrl", > >> + .of_match_table = of_match_ptr(c3_pinctrl_dt_match), > > Drop the rather problematic of_match_ptr(). Okay > >> + }, >> +}; > > -- > With Best Regards, > Andy Shevchenko > > > Best Regards, Huqiang Qin