From: "jay.xu@rock-chips.com" <jay.xu@rock-chips.com>
To: "Andy Shevchenko" <andy.shevchenko@gmail.com>
Cc: "Heiko Stübner" <heiko@sntech.de>,
"linus.walleij" <linus.walleij@linaro.org>,
"Tao Huang" <huangtao@rock-chips.com>,
杨凯 <kever.yang@rock-chips.com>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip@lists.infradead.org>,
linux-gpio <linux-gpio@vger.kernel.org>
Subject: Re: Re: [PATCH 2/4] gpio: rockchip: get irq support for both dt and acpi
Date: Thu, 10 Mar 2022 20:12:01 +0800 [thread overview]
Message-ID: <2022031020120121167516@rock-chips.com> (raw)
In-Reply-To: CAHp75VenbfJLOmavP8p8gqfka-n1xvni23g_vT7vg=wrJK5Erg@mail.gmail.com
Hi Andy Shevchenko
--------------
jay.xu@rock-chips.com
>On Wed, Mar 9, 2022 at 1:06 AM Jianqun Xu <jay.xu@rock-chips.com> wrote:
>>
>> Get the irq of gpio controller with fwnode apis, support for both dt
>> node and acpi.
>
>DT
>ACPI
>
ok, i will fix it in next patchset
>...
>
>> -
>
>Stray change.
>
>> +#include <linux/acpi.h>
>
>Probably you wanted property.h.
for this patch maybe property.h, for later acpi support, the acpi.h will be need
>
>> #include <linux/bitops.h>
>> #include <linux/clk.h>
>> #include <linux/device.h>
>> @@ -639,10 +639,6 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
>> {
>> int id = 0;
>>
>> - bank->irq = irq_of_parse_and_map(bank->of_node, 0);
>> - if (!bank->irq)
>> - return -EINVAL;
>> -
>> bank->clk = of_clk_get(bank->of_node, 0);
>> if (IS_ERR(bank->clk))
>> return PTR_ERR(bank->clk);
>> @@ -668,6 +664,24 @@ static int rockchip_get_bank_data(struct rockchip_pin_bank *bank)
>> return 0;
>> }
>
>...
>
>> + if (np)
>> + irq = irq_of_parse_and_map(np, 0);
>> + else if (has_acpi_companion(dev))
>> + irq = platform_get_irq_optional(to_platform_device(dev), 0);
>
>Why can't this work for the DT case?
try to keep same for dt case, ok i will modify to common usage
>
>--
>With Best Regards,
>Andy Shevchenko
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2022-03-10 12:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 6:19 [PATCH RESEND 0/4] gpio-before-pinctrl Jianqun Xu
2022-03-08 6:19 ` Jianqun Xu
2022-03-08 6:19 ` [PATCH 1/4] gpio: rockchip: get regmap by devm_platform_ioremap_resource Jianqun Xu
2022-03-08 6:19 ` Jianqun Xu
2022-03-08 6:19 ` [PATCH 2/4] gpio: rockchip: get irq support for both dt and acpi Jianqun Xu
2022-03-08 6:19 ` Jianqun Xu
2022-03-10 11:44 ` Andy Shevchenko
2022-03-10 11:44 ` Andy Shevchenko
2022-03-10 12:12 ` jay.xu [this message]
2022-03-08 6:19 ` [PATCH 3/4] gpio: rockchip: support driver to work independs on pinctrl Jianqun Xu
2022-03-08 6:19 ` Jianqun Xu
2022-03-08 6:19 ` [PATCH 4/4] pinctrl: rockchip: register gpio driver before pinctrl driver Jianqun Xu
2022-03-08 6:19 ` Jianqun Xu
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=2022031020120121167516@rock-chips.com \
--to=jay.xu@rock-chips.com \
--cc=andy.shevchenko@gmail.com \
--cc=heiko@sntech.de \
--cc=huangtao@rock-chips.com \
--cc=kever.yang@rock-chips.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.