linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Janusz Krzysztofik <jmkrzyszt@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>,
	Tony Lindgren <tony@atomide.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>,
	Grygorii Strashko <grygorii.strashko@ti.com>,
	Santosh Shilimkar <ssantosh@kernel.org>,
	Kevin Hilman <khilman@kernel.org>,
	Bartosz Golaszewski <brgl@bgdev.pl>,
	Andy Shevchenko <andy@kernel.org>,
	linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org,
	linux-gpio@vger.kernel.org
Subject: Re: [PATCH] OMAP/gpio: drop MPUIO static base
Date: Wed, 04 Oct 2023 02:36:13 +0200	[thread overview]
Message-ID: <2298936.ElGaqSPkdT@dell> (raw)
In-Reply-To: <20230926070953.GV5285@atomide.com>

[-- Attachment #1: Type: text/plain, Size: 2261 bytes --]

Hi Linus, Tony,

Dnia wtorek, 26 września 2023 09:09:53 CEST Tony Lindgren pisze:
> * Linus Walleij <linus.walleij@linaro.org> [230912 08:45]:
> > The OMAP GPIO driver hardcodes the MPIO chip base, but there
> > is no point: we have already moved all consumers over to using
> > descriptor look-ups.
> > 
> > Drop the MPUIO GPIO base and use dynamic assignment.

On my OMAP1510 based ams_delta with the patch applied on top of v6.6-rc4:

root@amsdelta:~# cat /sys/kernel/debug/gpio 
gpiochip0: GPIOs 512-527, parent: platform/omap_gpio.0, mpuio:
 gpio-512 (                    |data                ) in  lo 
 gpio-513 (                    |data                ) in  lo 
 gpio-514 (                    |data                ) in  lo 
 gpio-515 (                    |data                ) in  lo 
 gpio-516 (                    |data                ) in  lo 
 gpio-517 (                    |data                ) in  lo 
 gpio-518 (                    |data                ) in  lo 
 gpio-519 (                    |data                ) in  lo 

gpiochip1: GPIOs 528-543, parent: platform/omap_gpio.1, gpio-0-15:
 gpio-528 (                    |keybrd_data         ) in  lo 
 gpio-529 (                    |keybrd_clk          ) in  lo IRQ 
 gpio-530 (                    |modem_irq           ) in  lo 
 gpio-532 (                    |hook_switch         ) in  hi IRQ 
 gpio-540 (                    |rdy                 ) in  hi 

gpiochip2: GPIOs 544-551, parent: platform/basic-mmio-gpio.0, latch1:
 gpio-544 (                    |camera              ) out lo 
...

GPIO based hardware seems to be working correctly.  I'm only not sure if 
we should maybe change the name to something else than gpio-0-15 (mpuio 
looks OK).

> > 
> > Root out the unused instances of the OMAP_MPUIO() macro and
> > delete the unused OMAP_GPIO_IS_MPUIO() macro.
> > 
> > Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> > ---
> > Maybe Bartosz can merge this into the GPIO tree with Tony's
> > et al blessing?
> 
> Best to wait for Tested-by from Aaro on this one.
> 
> As far as I'm concerned, good to see this:
> 
> Reviewed-by: Tony Lindgren <tony@atomide.com>

Tested-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

  reply	other threads:[~2023-10-04  0:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12  8:44 [PATCH] OMAP/gpio: drop MPUIO static base Linus Walleij
2023-09-26  7:09 ` Tony Lindgren
2023-10-04  0:36   ` Janusz Krzysztofik [this message]
2023-10-04 10:23     ` Linus Walleij
2023-10-04  9:37   ` Bartosz Golaszewski

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=2298936.ElGaqSPkdT@dell \
    --to=jmkrzyszt@gmail.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=andy@kernel.org \
    --cc=brgl@bgdev.pl \
    --cc=grygorii.strashko@ti.com \
    --cc=khilman@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=ssantosh@kernel.org \
    --cc=tony@atomide.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 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).