From: Florian Fainelli <f.fainelli@gmail.com>
To: justinpopo6@gmail.com, linux-gpio@vger.kernel.org
Cc: gregory.0xf0@gmail.com, linus.walleij@linaro.org,
computersforpeace@gmail.com, f.fainelli@gmail.com,
bcm-kernel-feedback-list@broadcom.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] gpio: brcmstb: allow 0 width GPIO banks
Date: Fri, 17 Aug 2018 16:49:04 -0700 [thread overview]
Message-ID: <a395c600-6d52-a3fb-208c-22c84004a77f@gmail.com> (raw)
In-Reply-To: <1534549659-15883-1-git-send-email-justinpopo6@gmail.com>
On 08/17/2018 04:47 PM, justinpopo6@gmail.com wrote:
> From: Justin Chen <justinpopo6@gmail.com>
>
> Sometimes we have empty banks within the GPIO block. This commit allows
> proper handling of 0 width GPIO banks. We handle 0 width GPIO banks by
> incrementing the bank and number of GPIOs, but not initializing them.
> This will mean a call into the non-existent GPIOs will return an error.
>
> Also remove "GPIO registered" dev print. This information is misleading
> since the incremented banks and gpio_base do not reflect the actual GPIOs
> that get initialized. We leave this information out since it is already
> printed with dev_dbg.
>
> Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Thanks Justin!
--
Florian
next prev parent reply other threads:[~2018-08-17 23:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-17 23:47 [PATCH v2] gpio: brcmstb: allow 0 width GPIO banks justinpopo6
2018-08-17 23:49 ` Florian Fainelli [this message]
2018-08-18 0:52 ` Andrew Lunn
2018-08-20 21:08 ` Florian Fainelli
2018-08-30 9:05 ` Linus Walleij
2018-08-31 21:26 ` Gregory Fong
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=a395c600-6d52-a3fb-208c-22c84004a77f@gmail.com \
--to=f.fainelli@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=computersforpeace@gmail.com \
--cc=gregory.0xf0@gmail.com \
--cc=justinpopo6@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.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;
as well as URLs for NNTP newsgroup(s).