All of lore.kernel.org
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Biju Das <biju.das.jz@bp.renesas.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	Biju Das <biju.das.au@gmail.com>
Subject: [PATCH v2 0/3] RZ/G2L pinctrl trivial changes
Date: Tue,  6 Feb 2024 13:51:12 +0000	[thread overview]
Message-ID: <20240206135115.151218-1-biju.das.jz@bp.renesas.com> (raw)

The first patch in this series for configuring GPIO interrupt as input
mode. Also if the bootloader sets gpio interrupt pin as function,
override it as gpio.

The second and third patch is satisfy the prerequisite for IA55 tint
registers(ie, pin will be always in gpioint mode)

Currently on irq_disable(), we are disabling gpio interrupt enable(ISEL).
That means the pin is just gpio input and not gpio input interrupt any
more. So, move configuring ISEL in rzg2l_gpio_child_to_parent_hwirq()/
rzg2l_gpio_irq_domain_free() so that pin will be gpioint always even
during irq_disable().

v1->v2:
 * Added as series by adding patch#2 and #3.
 * Replaced u32->u64 for pin_data
 * Added rzg2l_gpio_free() for error path for bitmap_find_free_region().
 * rzg2l_gpio_free() called during rzg2l_gpio_irq_domain_free().

Biju Das (3):
  pinctrl: renesas: rzg2l: Configure interrupt input mode
  pinctrl: renesas: rzg2l: Simplify rzg2l_gpio_irq_{en,dis}able
  pinctrl: renesas: rzg2l: Avoid configuring ISEL in
    gpio_irq_{en,dis}able

 drivers/pinctrl/renesas/pinctrl-rzg2l.c | 77 ++++++++++++++++---------
 1 file changed, 50 insertions(+), 27 deletions(-)

-- 
2.25.1


             reply	other threads:[~2024-02-06 13:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-06 13:51 Biju Das [this message]
2024-02-06 13:51 ` [PATCH v2 1/3] pinctrl: renesas: rzg2l: Configure interrupt input mode Biju Das
2024-02-06 14:10   ` Biju Das
2024-02-12 15:46     ` Geert Uytterhoeven
2024-02-06 13:51 ` [PATCH v2 2/3] pinctrl: renesas: rzg2l: Simplify rzg2l_gpio_irq_{en,dis}able Biju Das
2024-02-06 14:11   ` Biju Das
2024-02-12 15:53   ` Geert Uytterhoeven
2024-02-12 17:03     ` Biju Das
2024-02-12 18:58       ` Geert Uytterhoeven
2024-02-06 14:10 ` [PATCH v2 0/3] RZ/G2L pinctrl trivial changes Biju Das
2024-02-21 14:39   ` Geert Uytterhoeven

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=20240206135115.151218-1-biju.das.jz@bp.renesas.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=biju.das.au@gmail.com \
    --cc=geert+renesas@glider.be \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.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.