All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment
@ 2021-12-23 12:26 Andy Shevchenko
  2022-01-05 14:23 ` Andy Shevchenko
  2022-01-12 13:11 ` Thierry Reding
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Shevchenko @ 2021-12-23 12:26 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Thierry Reding, linux-gpio,
	linux-tegra, linux-kernel
  Cc: Bartosz Golaszewski, Thierry Reding, Jonathan Hunter, Andy Shevchenko

GPIO library does copy the of_node from the parent device of
the GPIO chip, there is no need to repeat this in the individual
drivers. Remove these assignment all at once.

For the details one may look into the of_gpio_dev_init() implementation.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/gpio/gpio-tegra.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 7f5bc10a6479..ff2d2a1f9c73 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -691,7 +691,6 @@ static int tegra_gpio_probe(struct platform_device *pdev)
 	tgi->gc.base			= 0;
 	tgi->gc.ngpio			= tgi->bank_count * 32;
 	tgi->gc.parent			= &pdev->dev;
-	tgi->gc.of_node			= pdev->dev.of_node;
 
 	tgi->ic.name			= "GPIO";
 	tgi->ic.irq_ack			= tegra_gpio_irq_ack;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment
  2021-12-23 12:26 [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment Andy Shevchenko
@ 2022-01-05 14:23 ` Andy Shevchenko
  2022-01-06  8:42   ` Bartosz Golaszewski
  2022-01-12 13:11 ` Thierry Reding
  1 sibling, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2022-01-05 14:23 UTC (permalink / raw)
  To: Linus Walleij, Bartosz Golaszewski, Thierry Reding, linux-gpio,
	linux-tegra, linux-kernel
  Cc: Bartosz Golaszewski, Thierry Reding, Jonathan Hunter

On Thu, Dec 23, 2021 at 02:26:39PM +0200, Andy Shevchenko wrote:
> GPIO library does copy the of_node from the parent device of
> the GPIO chip, there is no need to repeat this in the individual
> drivers. Remove these assignment all at once.
> 
> For the details one may look into the of_gpio_dev_init() implementation.

Any comments on this one?

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment
  2022-01-05 14:23 ` Andy Shevchenko
@ 2022-01-06  8:42   ` Bartosz Golaszewski
  2022-01-24 15:10     ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Bartosz Golaszewski @ 2022-01-06  8:42 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Linus Walleij, Bartosz Golaszewski, Thierry Reding,
	open list:GPIO SUBSYSTEM, linux-tegra, Linux Kernel Mailing List,
	Thierry Reding, Jonathan Hunter

On Wed, Jan 5, 2022 at 3:33 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
>
> On Thu, Dec 23, 2021 at 02:26:39PM +0200, Andy Shevchenko wrote:
> > GPIO library does copy the of_node from the parent device of
> > the GPIO chip, there is no need to repeat this in the individual
> > drivers. Remove these assignment all at once.
> >
> > For the details one may look into the of_gpio_dev_init() implementation.
>
> Any comments on this one?
>

It looks good to me but I wanted to wait for Thierry's ack.

Bart

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment
  2021-12-23 12:26 [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment Andy Shevchenko
  2022-01-05 14:23 ` Andy Shevchenko
@ 2022-01-12 13:11 ` Thierry Reding
  2022-01-12 13:48   ` Andy Shevchenko
  1 sibling, 1 reply; 6+ messages in thread
From: Thierry Reding @ 2022-01-12 13:11 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Linus Walleij, Bartosz Golaszewski, Thierry Reding, linux-gpio,
	linux-tegra, linux-kernel, Bartosz Golaszewski, Jonathan Hunter

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

On Thu, Dec 23, 2021 at 02:26:39PM +0200, Andy Shevchenko wrote:
> GPIO library does copy the of_node from the parent device of
> the GPIO chip, there is no need to repeat this in the individual
> drivers. Remove these assignment all at once.
> 
> For the details one may look into the of_gpio_dev_init() implementation.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/gpio/gpio-tegra.c | 1 -
>  1 file changed, 1 deletion(-)

Yep, this is indeed not necessary (anymore), so:

Reviewed-by: Thierry Reding <treding@nvidia.com>

I've also given this a quick spin on a Tegra124 device (Venice 2) and
everything seems to be working fine, so also:

Tested-by: Thierry Reding <treding@nvidia.com>

Thanks,
Thierry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment
  2022-01-12 13:11 ` Thierry Reding
@ 2022-01-12 13:48   ` Andy Shevchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2022-01-12 13:48 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Linus Walleij, Bartosz Golaszewski, Thierry Reding, linux-gpio,
	linux-tegra, linux-kernel, Bartosz Golaszewski, Jonathan Hunter

On Wed, Jan 12, 2022 at 02:11:45PM +0100, Thierry Reding wrote:
> On Thu, Dec 23, 2021 at 02:26:39PM +0200, Andy Shevchenko wrote:
> > GPIO library does copy the of_node from the parent device of
> > the GPIO chip, there is no need to repeat this in the individual
> > drivers. Remove these assignment all at once.

...

> Yep, this is indeed not necessary (anymore), so:
> 
> Reviewed-by: Thierry Reding <treding@nvidia.com>
> 
> I've also given this a quick spin on a Tegra124 device (Venice 2) and
> everything seems to be working fine, so also:
> 
> Tested-by: Thierry Reding <treding@nvidia.com>

Thanks!


-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment
  2022-01-06  8:42   ` Bartosz Golaszewski
@ 2022-01-24 15:10     ` Andy Shevchenko
  0 siblings, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2022-01-24 15:10 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Linus Walleij, Bartosz Golaszewski, Thierry Reding,
	open list:GPIO SUBSYSTEM, linux-tegra, Linux Kernel Mailing List,
	Thierry Reding, Jonathan Hunter

On Thu, Jan 06, 2022 at 09:42:15AM +0100, Bartosz Golaszewski wrote:
> On Wed, Jan 5, 2022 at 3:33 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> >
> > On Thu, Dec 23, 2021 at 02:26:39PM +0200, Andy Shevchenko wrote:
> > > GPIO library does copy the of_node from the parent device of
> > > the GPIO chip, there is no need to repeat this in the individual
> > > drivers. Remove these assignment all at once.
> > >
> > > For the details one may look into the of_gpio_dev_init() implementation.
> >
> > Any comments on this one?
> 
> It looks good to me but I wanted to wait for Thierry's ack.

We have got a tag, I'll incorporate this to my usual PR, since we got into
a new cycle anyway and this is not a fix. Same for other similar patches.

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-24 15:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-23 12:26 [PATCH v1 1/1] gpio: tegra: Get rid of duplicate of_node assignment Andy Shevchenko
2022-01-05 14:23 ` Andy Shevchenko
2022-01-06  8:42   ` Bartosz Golaszewski
2022-01-24 15:10     ` Andy Shevchenko
2022-01-12 13:11 ` Thierry Reding
2022-01-12 13:48   ` Andy Shevchenko

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.