From: CL Wang <cl634@andestech.com>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: Linus Walleij <linusw@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, <linux-gpio@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<tim609@andestech.com>, <cl634@andestech.com>
Subject: Re: [PATCH 2/3] gpio: atcgpio100: Add ATCGPIO100 GPIO driver
Date: Wed, 2 Dec 2026 14:16:18 +0800 [thread overview]
Message-ID: <aw-3ssW26pQby_8E@swlinux02> (raw)
In-Reply-To: <22ifazqg6afr6rcybqg6foah3v554xu4px2c4et35y5xzpg74h@kesthgcvnlgk>
Hi Bart,
Thanks for the review.
> Uwe would probably say you should only pull in the individual headers that you require from include/linux/device-id/.
Dropped in v2.
>> + .flags = GPIO_GENERIC_READ_OUTPUT_REG_SET,
>> + };
> I think you could save even more code by using the gpio-regmap helper here instead. Could you see if that's possible here?
As discussed earlier, keeping gpio-mmio in v2.
>> + priv->chan_num = CONFIG_CHAN_NUM_GET(cfg);
>> + if (priv->chan_num > ATCGPIO_CHAN_NUM_MAX || !priv->chan_num) {
>> + dev_warn(&priv->pdev->dev,
> Use a local variable to store the adress of dev for better readability.
Okay, used a local variable to hold "&priv->pdev->dev" for better readability.
>> + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
> Use devm_kzalloc_obj(). Same elsewhere.
Applied in v2.
Best regards,
CL
next prev parent reply other threads:[~2026-12-02 6:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 4:09 [PATCH 0/3] gpio: Add support for Andes ATCGPIO100 GPIO controller CL Wang
2026-11-16 4:09 ` [PATCH 1/3] dt-bindings: gpio: Add support for " CL Wang
2026-11-23 11:05 ` Krzysztof Kozlowski
2026-12-02 6:13 ` CL Wang
2026-11-16 4:09 ` [PATCH 2/3] gpio: atcgpio100: Add ATCGPIO100 GPIO driver CL Wang
2026-11-17 13:54 ` Bartosz Golaszewski
2026-11-24 9:41 ` CL Wang
2026-11-24 14:03 ` Bartosz Golaszewski
2026-12-02 6:16 ` CL Wang [this message]
2026-11-17 14:10 ` Uwe Kleine-König
2026-12-02 6:22 ` CL Wang
2026-11-16 4:09 ` [PATCH 3/3] MAINTAINERS: Add entry for Andes ATCGPIO100 GPIO CL Wang
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=aw-3ssW26pQby_8E@swlinux02 \
--to=cl634@andestech.com \
--cc=brgl@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=tim609@andestech.com \
/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