From: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>
Cc: Fabrizio Castro <fabrizio.castro@bp.renesas.com>,
linux-gpio@vger.kernel.org, Simon Horman <horms@verge.net.au>,
Chris Paterson <Chris.Paterson2@renesas.com>,
Biju Das <biju.das@bp.renesas.com>,
linux-renesas-soc@vger.kernel.org
Subject: [RFC v3 0/2] Request GPIO when enabling interrupt
Date: Tue, 20 Nov 2018 15:19:14 +0000 [thread overview]
Message-ID: <1542727156-31432-1-git-send-email-fabrizio.castro@bp.renesas.com> (raw)
Dear All,
here is a new iteration of the fix for the pinmuxing issue while
requesting an interrupt.
I don't like this implementation either as:
* pinctrl_mux_gpio_request_enable is very similar to pinctrl_gpio_request,
and the name I have picked up is not exactly brilliant...
* it may cause an error message like "Pin X is busy, can't configure it as
GPIO." (for cd-gpios pins for example) as it can't check the status of the pin
before requesting it (can it?)
* because it's discarding errors returned by pinctrl_mux_gpio_request_enable
This problem needs fixing, but the solutions proposed so far don't look
great, as they are not spectacularly neat.
What's the best way to fix this?
Ideas and comments very welcome!
Thanks,
Fab
Fabrizio Castro (2):
pinctrl: core: Add pinctrl_mux_gpio_request_enable
gpio: rcar: Set pin as a GPIO when configuring an interrupt
drivers/gpio/gpio-rcar.c | 3 +++
drivers/pinctrl/core.c | 34 ++++++++++++++++++++++++++++++++++
include/linux/pinctrl/consumer.h | 6 ++++++
3 files changed, 43 insertions(+)
--
2.7.4
next reply other threads:[~2018-11-21 1:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-20 15:19 Fabrizio Castro [this message]
2018-11-20 15:19 ` [RFC v3 1/2] pinctrl: core: Add pinctrl_mux_gpio_request_enable Fabrizio Castro
2018-12-05 21:46 ` Linus Walleij
2018-12-06 9:47 ` Fabrizio Castro
2019-03-01 13:27 ` Geert Uytterhoeven
2019-03-01 14:22 ` Fabrizio Castro
2019-03-08 8:24 ` Linus Walleij
2018-11-20 15:19 ` [RFC v3 2/2] gpio: rcar: Set pin as a GPIO when configuring an interrupt Fabrizio Castro
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=1542727156-31432-1-git-send-email-fabrizio.castro@bp.renesas.com \
--to=fabrizio.castro@bp.renesas.com \
--cc=Chris.Paterson2@renesas.com \
--cc=bgolaszewski@baylibre.com \
--cc=biju.das@bp.renesas.com \
--cc=geert+renesas@glider.be \
--cc=horms@verge.net.au \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-renesas-soc@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 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.