From: qianggui.song <Qianggui.Song@amlogic.com>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
Neil Armstrong <narmstrong@baylibre.com>,
Jerome Brunet <jbrunet@baylibre.com>,
Kevin Hilman <khilman@baylibre.com>,
Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
linux-arm Mailing List <linux-arm-kernel@lists.infradead.org>,
linux-amlogic <linux-amlogic@lists.infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@vger.kernel.org>
Subject: Re: [PATCH 3/3] pinctrl: meson: add pinctrl driver support for Meson-S4 Soc
Date: Thu, 16 Dec 2021 11:24:46 +0800 [thread overview]
Message-ID: <774cd3ba-1f43-ae00-12b8-b2959ab7d987@amlogic.com> (raw)
In-Reply-To: <CAHp75VczRGaKY_O3SV9xx-G95Rk8uFPwNFuVE1iy+HAxgL+oVg@mail.gmail.com>
Hi,Andy
On 2021/12/14 下午7:57, Andy Shevchenko wrote:
> On Tue, Dec 14, 2021 at 6:27 AM Qianggui Song <qianggui.song@amlogic.com> wrote:
>> Add new pinctrl driver for Amlogic's Meson-S4 SoC which share the
>> same register laytout as the previous Meson-A1.
> layout
>
> ...
awkward
>
>> +config PINCTRL_MESON_S4
>> + tristate "Meson s4 Soc pinctrl driver"
>> + depends on ARM64
>> + select PINCTRL_MESON_AXG_PMX
>> + default y
> Why is it needed on other (non-MESON_S4) SoCs?
>
> ...
to keep consistent with previous chips configuration, maybe another
patch set to remove all default y
for all previous SoCs.
>
>> +static const char * const i2c1_groups[] = {
>> + "i2c1_sda_c", "i2c1_scl_c",
>> + "i2c1_sda_d", "i2c1_scl_d",
>> + "i2c1_sda_h", "i2c1_scl_h",
>> + "i2c1_sda_x", "i2c1_scl_x"
> In this and all the rest similar cases leave a comma.
Okay.
>
>> +};
> ...
>
>> +static const struct of_device_id meson_s4_pinctrl_dt_match[] = {
>> + {
>> + .compatible = "amlogic,meson-s4-periphs-pinctrl",
>> + .data = &meson_s4_periphs_pinctrl_data,
>> + },
>> + { },
> When it's a terminator entry, no comma is needed.
will fix it in next patch
>
>> +};
> ...
>
>> +static struct platform_driver meson_s4_pinctrl_driver = {
>> + .probe = meson_pinctrl_probe,
>> + .driver = {
>> + .name = "meson-s4-pinctrl",
>> + .of_match_table = meson_s4_pinctrl_dt_match,
>> + },
>> +};
>> +
>> +module_platform_driver(meson_s4_pinctrl_driver);
> Swap above two lines, first module_...() followed by a blank line.
Okay.
>
>> +MODULE_LICENSE("Dual BSD/GPL");
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
prev parent reply other threads:[~2021-12-16 3:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-14 2:20 [PATCH 0/3] pinctrl: meson-s4: add pinctrl driver Qianggui Song
2021-12-14 2:20 ` [PATCH 1/3] dt-bindings: pinctrl: meson: Add compatible for S4 Qianggui Song
2021-12-14 2:20 ` [PATCH 2/3] dt-bindings: gpio: Add a header file for Amlogic Meson S4 Qianggui Song
2021-12-15 20:29 ` Rob Herring
2021-12-14 2:21 ` [PATCH 3/3] pinctrl: meson: add pinctrl driver support for Meson-S4 Soc Qianggui Song
2021-12-14 10:00 ` Jerome Brunet
2021-12-16 6:07 ` qianggui.song
2021-12-16 9:20 ` Jerome Brunet
2021-12-17 9:23 ` qianggui.song
2021-12-14 11:57 ` Andy Shevchenko
2021-12-16 3:24 ` qianggui.song [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=774cd3ba-1f43-ae00-12b8-b2959ab7d987@amlogic.com \
--to=qianggui.song@amlogic.com \
--cc=andy.shevchenko@gmail.com \
--cc=jbrunet@baylibre.com \
--cc=khilman@baylibre.com \
--cc=linus.walleij@linaro.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=martin.blumenstingl@googlemail.com \
--cc=narmstrong@baylibre.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®