Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35109765rwd; Mon, 10 Jul 2023 02:42:44 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvEE1eOB0t7Pbrc4314z040v1I1tZYChJpO6dH1JHbVKoLHZpNI5wPqAqdvfOy2sPsWec3 X-Received: by 2002:a05:6808:251:b0:3a3:60f0:5e0c with SMTP id m17-20020a056808025100b003a360f05e0cmr11161643oie.17.1688982164507; Mon, 10 Jul 2023 02:42:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688982164; cv=pass; d=google.com; s=arc-20160816; b=xeP0ZR8iadv9kpXnxkDQOVCCNIbzprpsZVAeYpJDVQOpjH6admPyeEalOH8mksNxJc oheH2tTA8Tcs2W/rpI3JLBqtGi41bmxNf+Mb9vRRl2bdaXknUtIRcGcsgUz4pmgQeruH X216lDLxx43vLAQaXeGGTAG6qZHlVaDPRNrUMZieU1XW8AIup7Qb2FUKmFYJayBqlBtw LbpUDruxRulcESOE7eKw8yk1V9e/LijDKAi4HGCnETLDguyxdPAlDOp34Nxpv8I6Dp8/ 3IFJeQhfcrWkBQhqXMh8+fj9RntUWmkie+n3NYBWYCUATF3+puNZemHz9PRuCtzepyN5 buZQ== 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:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=hyQJLqV8dcOLBA2fpKV9xonwHtVoNZwJjSaHG5wm0pE=; fh=z/NqBBTaqbYmuUMjjbkqe9ZC9X3pj53mbBwQhygvxf4=; b=h+DytCICboElI8OXYf2OtnpT3qa/wwFLRAnC3Vl8T9CCD3yYswgi8lDEnWxu2zwHBc M7dMwC6hNLFkja+czv5D3BtFV19A3gfx7GfBH47t9b66IlYPfje/eChDx3/ToFdhOvgO 9ejFrqlbSTHbsi5NJeLl79mN4T8ZyiK6Q0/nQrG6OWZyv3sacx90hV5EYCyZkYBdaYeL QpiItRvu7Svp+5ZVrOCNs/VlLjgIh5hN87tOf9qdFttgWfrCBLvI8xs8l7vr9w5w3Hhi vXHOeULzM4gO+mwrFPLpaue3vtPOHNJAoo5heEB2WDFGvhRAQuDb1q6KLOqx803BXS+h ZOdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b=YaMUDQ6L; 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 w63-20020a638242000000b005572b2f6ea2si8998513pgd.272.2023.07.10.02.42.32; Mon, 10 Jul 2023 02:42:44 -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=YaMUDQ6L; 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 S232223AbjGJJfZ (ORCPT + 99 others); Mon, 10 Jul 2023 05:35:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232226AbjGJJem (ORCPT ); Mon, 10 Jul 2023 05:34:42 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2100.outbound.protection.outlook.com [40.107.117.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE4010CA; Mon, 10 Jul 2023 02:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EsHHeW8MHgXBO7jIzcP5Y2SRvK02Ob3bmBLP06ucJXEJqpQMppHfZni2ikTePVfIGBxEAYinlrdzQdXC7xUUVsLGLZ74bWCAJ4uq98GMRlZ5Xsf6rpstYkBwIbHjjXTqLwsdxO7vhITAYBnrEIyu0O4oszCxaBAZL8FouFMhWw3GdQLPkU2iyNUae7fx2mO4Ro0a8DG/VrrlvMariPeY+uSD5YojzMcRXxVU6sBSdefgP3P6zMb+43PtjiNg2xIGzviLjQ0vzeUGwpUQY9cvnvmvrEomLjuEe49FrwHJKbOOBE160LNJFq/oJDVqOabaHPeFLG9HHB9OgVD1TBws1g== 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=hyQJLqV8dcOLBA2fpKV9xonwHtVoNZwJjSaHG5wm0pE=; b=HNX873vTgHQH06hEPHpuGMXe7i0vXIPQUxuIBNRAWPVuuRX9CuR1jSZuQPJoT3S30Z2WeWzTqKpaMSBbyFChOzmpGefsAQ57Q/WqW0Ka85z8jSFy3ZCmc7HSuDnaWtMOwLgj67SQhTvHzcmVnX5oCuIaEIuLhFgjYcnQC+5UP7Ig5kUKSQyqTYGI1QwOloxNmJKaK5QAGTxuVzSXxha0TzCisc6c3agN9D5dKDSRwMC3i7dAqUQRRJvs3T8PR+0QKe26sRLj4hvCKVTJ8UwN4gBLABEF79tpgIirtQK9VU8J4PdqkffJ0XSnLSPCCj2J53BPRa5KpOi16ZpYRGi20Q== 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=hyQJLqV8dcOLBA2fpKV9xonwHtVoNZwJjSaHG5wm0pE=; b=YaMUDQ6LrLIyJKh9wExFoKIJfKrpzxlxLQANc+7cQiAnfOK5W1Fscw7gsF5S8LJvrYp22GdmRdpHRDGa3ACkUHZTAYyaerzt6lOzdfh2qKNDtJ05sdLpzeQHyzlEeXQGYvWO/7lnhcI22MAfX9e4KGDUcYClNuLGmbmut4l0+jIwGCP1QRkOCrVjBdRsqIt01a5UDVHdEExA5ZiIgi7EZOft/BNg66j7j09Xb4ULcqNPeyzGzfoEOZiWvfkDKyEAPs+JGahIyxOi65Ol+T0g6qyzU7BLyhu7X7Wtga0nm93kyiorsQnXorEegk3sixCzlrxSUn/Z3Rcvh6K8xs71+Q== 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 TY0PR03MB6630.apcprd03.prod.outlook.com (2603:1096:400:207::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.26; Mon, 10 Jul 2023 09:32:33 +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.026; Mon, 10 Jul 2023 09:32:32 +0000 Message-ID: <6afe63d3-5cfe-1cfe-0326-0c51c6a526ef@amlogic.com> Date: Mon, 10 Jul 2023 17:32:26 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH V2 2/2] pinctrl: Add driver support for Amlogic C3 SoCs Content-Language: en-US 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, andy@kernel.org, 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: <20230710042812.2007928-1-huqiang.qin@amlogic.com> <20230710042812.2007928-3-huqiang.qin@amlogic.com> From: Huqiang Qin In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: TYCPR01CA0149.jpnprd01.prod.outlook.com (2603:1096:400:2b7::9) To KL1PR03MB7221.apcprd03.prod.outlook.com (2603:1096:820:cb::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: KL1PR03MB7221:EE_|TY0PR03MB6630:EE_ X-MS-Office365-Filtering-Correlation-Id: bc743c7f-9c00-4dc6-7edb-08db81289574 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B/FFypfDy75pBLoJsPiZPe1jEXkn73wJVM59oe396l3sEjENrCdxFYQ0Jo1HWG1NM9scuVqG/wXKaFtIX1ze/Ll9zhyEVAcOOpqn+5kaR7kzl1TmOntmYOLEAimQv63thOVDfw1Zr9XTUeLWSKWs5FTCpONoRoAyqCVIY4Kkd2z5efSyv/0Q1fMNqZgmZnK1XTBH8C8q7H86gMMZK9hhRL6E1OAF8JZdCpr+NzI6KNQC7RcsrhU1rvfpXuYia5I9tU4aGrwD1ANFz7RDsnU1eAMas+PPrNWEqBiy2vijdJ3gqifplPoePICMN7kU8CD5QCBltHCbf75OsEQ1Jrzsf5t5SvHFthqvgvRHSHz50zXiT0etvV2SAnDvMhC3aQN1lDIJG79ZYiDGTO2P3nwrG7wD3ZCQ013HOLQiMHBeL8rs8fxCyUCYztFiNXawX6U3K2POJDuJgtwlmCmOn0fkh1POP2IfTgm5/PNdIDsdVVlPTbO9WtqrlhMKLmdjKrLpgAtl0BG1nmADunrPFyUMGUrogmP3KNjulhOM5ow+wDZ+0abnix/EKMZYVh5C12Kkq9KnbQEuvFUSbws9y+JAPzvt54irETsG3lQdFRJ1SQOiKG3w3zUQjcot+XQR7Qg1IcwpB0RNZgyFfjw6yRTJMAoP4JxYD8ip0ut67QsCDSoONI0YHzjtRWP9ylUU3jjbY2wjUQOCABhA5lx84akscBqnQJ9qp1U89lfpTmBYH6k= 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)(376002)(346002)(366004)(136003)(396003)(39850400004)(451199021)(41300700001)(44832011)(5660300002)(31686004)(7416002)(6486002)(316002)(2906002)(8676002)(8936002)(6512007)(66476007)(4326008)(66556008)(6916009)(66946007)(36756003)(52116002)(478600001)(6666004)(86362001)(186003)(31696002)(2616005)(38100700002)(38350700002)(6506007)(53546011)(26005)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WGcyMUcwbUZuSTFkRy9tU0tNQm1zRUpZMWlkTTFiSU9ibVNJL2c1aGprMFFv?= =?utf-8?B?VTZ2ZmZRb2tFV0luMW9Memg4S09vSlBNM3k5c2ZYeHBGMEplQ3pNY01TYVE5?= =?utf-8?B?VStwUGg1Y2Vnd0N6MXJz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f-8?B?YXVSVG9aazNrK1p3QTBsK0JOcVdqeEZNdFBxdnZSZ3RBa0dnenM2YUQxSkJr?= =?utf-8?B?TlJvLysrRnRXUzg2eWJqdC9KeTZVU2hod2JGaS83NjRPYm83QlI2Tm8wemdP?= =?utf-8?B?akJTR3NWNWVUOEZPMVRTdE05dCthalpoMWNQOThCZSt0N2FmSVc2M1RwM3BS?= =?utf-8?B?VzRQSW5wenlXZEx3c2drU1BmazZidVdaMnpaOW55Q3pNRGdicmR1ZmFoeTBr?= =?utf-8?B?aVE9PQ==?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc743c7f-9c00-4dc6-7edb-08db81289574 X-MS-Exchange-CrossTenant-AuthSource: KL1PR03MB7221.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 09:32:32.3773 (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: I0WOSR4I7D2QRT1zlSCcoi1IUppCi6oMJDKl1jUX08GjnBpi3okX6wS5gx0z3b9sIPM+XhP3TEh71z+w8CkULg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR03MB6630 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_BLOCKED,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 Hi Andy Shevchenko, On 2023/7/10 15:33, Andy Shevchenko wrote: > ... > >> +#include > > Seems some headers are missing. The rule of thumb is to include > headers the code uses directly. > Moreover, using a "proxy" header is not the best idea. > > kernel.h // ARRAY_SIZE() > mod_devicetable.h // of_device_id > module.h > platform_device.h > > pinctrl/pinctrl.h > >> +#include "pinctrl-meson.h" >> +#include "pinctrl-meson-axg-pmx.h" > > With the above, it might be that existing inclusions become unused, so > drop them in such a case. According to Amlogic's pinctrl driver structure, the code to realize the function is mainly in pinctrl-meson.c, and pinctrl-amlogic-c3.c is only used as a data file to describe the pins of the chip, and for similar data files, all need to include pinctrl-meson.h and pinctrl-meson-axg-pmx.h header files, such as A1, G12A, S4 and so on. The following header files are included in pinctrl-meson.h: linux/gpio/driver.h linux/pinctrl/pinctrl.h linux/platform_device.h linux/regmap.h linux/types.h linux/module.h Here is a case for each dependent header file: struct gpio_chip chip; ---- linux/gpio/driver.h struct pinctrl_desc desc; ---- linux/pinctrl/pinctrl.h struct platform_device *pdev; ---- linux/platform_device.h struct regmap *reg_mux; ---- linux/regmap.h Basic types of linux ---- linux/types.h MODULE_DEVICE_TABLE() ---- linux/module.h Since every data file will use them, let's put it in the header file, so as to reduce duplication of code. > ... > >> +static struct meson_pmx_func c3_periphs_functions[] = { >> + FUNCTION(gpio_periphs), >> + FUNCTION(uart_a), >> + FUNCTION(uart_b), >> + FUNCTION(uart_c), >> + FUNCTION(uart_d), >> + FUNCTION(uart_e), >> + FUNCTION(i2c0), >> + FUNCTION(i2c1), >> + FUNCTION(i2c2), >> + FUNCTION(i2c3), >> + FUNCTION(i2c_slave), >> + FUNCTION(pwm_a), >> + FUNCTION(pwm_b), >> + FUNCTION(pwm_c), >> + FUNCTION(pwm_d), >> + FUNCTION(pwm_e), >> + FUNCTION(pwm_f), >> + FUNCTION(pwm_g), >> + FUNCTION(pwm_h), >> + FUNCTION(pwm_i), >> + FUNCTION(pwm_j), >> + FUNCTION(pwm_k), >> + FUNCTION(pwm_l), >> + FUNCTION(pwm_m), >> + FUNCTION(pwm_n), >> + FUNCTION(pwm_c_hiz), >> + FUNCTION(ir_out), >> + FUNCTION(ir_in), >> + FUNCTION(jtag_a), >> + FUNCTION(jtag_b), >> + FUNCTION(gen_clk), >> + FUNCTION(clk12_24), >> + FUNCTION(clk_32k_in), >> + FUNCTION(emmc), >> + FUNCTION(nand), >> + FUNCTION(spif), >> + FUNCTION(spi_a), >> + FUNCTION(spi_b), >> + FUNCTION(sdcard), >> + FUNCTION(sdio), >> + FUNCTION(pdm), >> + FUNCTION(eth), >> + FUNCTION(mclk_0), >> + FUNCTION(mclk_1), >> + FUNCTION(tdm), >> + FUNCTION(lcd) > > + trailing comma. The rule of thumb is to add a comma when it's not a > terminator entry. Okay, I'll double check and add them. Best Regards, Huqiang Qin