From: He YunLei <heyunlei@huawei.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Haojian Zhuang <haojian.zhuang@linaro.org>
Cc: "linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
Wangbintian <bintian.wang@huawei.com>,
peifeiyue@huawei.com, liguozhu@hisilicon.com,
Xinwei Kong <kong.kongxinwei@hisilicon.com>
Subject: Re: [PATCH 1/2] gpio: pl061: hook request if gpio-ranges avaiable
Date: Thu, 4 Dec 2014 21:33:58 +0800 [thread overview]
Message-ID: <548062C6.60801@huawei.com> (raw)
In-Reply-To: <CACRpkdZbei_gpWR7LfSKb-d=ti9POMR9n9k2z8OMfhgm5BwDFg@mail.gmail.com>
On 2014/12/3 21:45, Linus Walleij wrote:
> On Tue, Dec 2, 2014 at 5:32 AM, Yunlei He <heyunlei@huawei.com> wrote:
>
>> Gpio-ranges property is useful to represent which GPIOs correspond
>> to which pins on which pin controllers. But there may be some gpios
>> without pinctrl operation. So check whether gpio-ranges property
>> exists in device node first.
>>
>> Signed-off-by: Yunlei He <heyunlei@huawei.com>
>> Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>
>> Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
>
> Yep simple and elegant.
>
> Patch applied.
>
> However I wonder if it would be possible to move this to the
> gpiolib.c or gpiolib-of.c core so not all drivers with this problem
> has to implement it.
>
> Yours,
> Linus Walleij
>
>
Thanks for your suggest, I can move this judgement to the gpiolib.c in function
gpio_request() along with a symbol uses_pinctrl in struct gpio_chip. But the symbol
uses_pinctrl still need to assign a value in device initial time. So I think that drivers
do this separately is better.
Yours,
Yunlei
next prev parent reply other threads:[~2014-12-04 13:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 4:32 [PATCH 0/2] gpio: pl061: hook request if gpio-ranges avaiable Yunlei He
2014-12-02 4:32 ` [PATCH 1/2] " Yunlei He
2014-12-03 13:45 ` Linus Walleij
2014-12-04 13:33 ` He YunLei [this message]
2014-12-02 4:33 ` [PATCH 2/2] gpio: pl061: document gpio-ranges property for bindings file Yunlei He
2014-12-03 13:48 ` Linus Walleij
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=548062C6.60801@huawei.com \
--to=heyunlei@huawei.com \
--cc=bintian.wang@huawei.com \
--cc=haojian.zhuang@linaro.org \
--cc=kong.kongxinwei@hisilicon.com \
--cc=liguozhu@hisilicon.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=peifeiyue@huawei.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 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.