linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
@ 2021-12-02 20:58 Andy Shevchenko
  2021-12-09 11:58 ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2021-12-02 20:58 UTC (permalink / raw)
  To: Marc Kleine-Budde, linux-can, netdev, linux-kernel
  Cc: Wolfgang Grandegger, David S. Miller, Jakub Kicinski, 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 assignment here.

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

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/net/can/spi/mcp251x.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/can/spi/mcp251x.c b/drivers/net/can/spi/mcp251x.c
index 0579ab74f728..0cec808e8727 100644
--- a/drivers/net/can/spi/mcp251x.c
+++ b/drivers/net/can/spi/mcp251x.c
@@ -600,9 +600,6 @@ static int mcp251x_gpio_setup(struct mcp251x_priv *priv)
 	gpio->ngpio = ARRAY_SIZE(mcp251x_gpio_names);
 	gpio->names = mcp251x_gpio_names;
 	gpio->can_sleep = true;
-#ifdef CONFIG_OF_GPIO
-	gpio->of_node = priv->spi->dev.of_node;
-#endif
 
 	return devm_gpiochip_add_data(&priv->spi->dev, gpio, priv);
 }
-- 
2.33.0


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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2021-12-02 20:58 [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment Andy Shevchenko
@ 2021-12-09 11:58 ` Andy Shevchenko
  2021-12-10 13:06   ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2021-12-09 11:58 UTC (permalink / raw)
  To: Marc Kleine-Budde, linux-can, netdev, linux-kernel
  Cc: Wolfgang Grandegger, David S. Miller, Jakub Kicinski

On Thu, Dec 02, 2021 at 10:58:55PM +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 assignment here.
> 
> For the details one may look into the of_gpio_dev_init() implementation.

Marc, what do you think about this change?

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2021-12-09 11:58 ` Andy Shevchenko
@ 2021-12-10 13:06   ` Marc Kleine-Budde
  2021-12-10 13:19     ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Kleine-Budde @ 2021-12-10 13:06 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-can, netdev, linux-kernel, Wolfgang Grandegger,
	David S. Miller, Jakub Kicinski

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

On 09.12.2021 13:58:40, Andy Shevchenko wrote:
> On Thu, Dec 02, 2021 at 10:58:55PM +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 assignment here.
> > 
> > For the details one may look into the of_gpio_dev_init() implementation.
> 
> Marc, what do you think about this change?

LGTM, added to linux-can-next/testing.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

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

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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2021-12-10 13:06   ` Marc Kleine-Budde
@ 2021-12-10 13:19     ` Andy Shevchenko
  2022-01-05 14:21       ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2021-12-10 13:19 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: linux-can, netdev, linux-kernel, Wolfgang Grandegger,
	David S. Miller, Jakub Kicinski

On Fri, Dec 10, 2021 at 02:06:07PM +0100, Marc Kleine-Budde wrote:
> On 09.12.2021 13:58:40, Andy Shevchenko wrote:
> > On Thu, Dec 02, 2021 at 10:58:55PM +0200, Andy Shevchenko wrote:

...

> > Marc, what do you think about this change?
> 
> LGTM, added to linux-can-next/testing.

Thanks for applying this and hi311x patches!

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2021-12-10 13:19     ` Andy Shevchenko
@ 2022-01-05 14:21       ` Andy Shevchenko
  2022-01-05 14:34         ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2022-01-05 14:21 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: linux-can, netdev, linux-kernel, Wolfgang Grandegger,
	David S. Miller, Jakub Kicinski

On Fri, Dec 10, 2021 at 03:19:31PM +0200, Andy Shevchenko wrote:
> On Fri, Dec 10, 2021 at 02:06:07PM +0100, Marc Kleine-Budde wrote:
> > On 09.12.2021 13:58:40, Andy Shevchenko wrote:
> > > On Thu, Dec 02, 2021 at 10:58:55PM +0200, Andy Shevchenko wrote:
> 
> ...
> 
> > > Marc, what do you think about this change?
> > 
> > LGTM, added to linux-can-next/testing.
> 
> Thanks for applying this and hi311x patches!

Can we have a chance to see it in the v5.17-rc1?

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2022-01-05 14:21       ` Andy Shevchenko
@ 2022-01-05 14:34         ` Marc Kleine-Budde
  2022-01-05 14:47           ` Andy Shevchenko
  0 siblings, 1 reply; 8+ messages in thread
From: Marc Kleine-Budde @ 2022-01-05 14:34 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: linux-can, netdev, linux-kernel, Wolfgang Grandegger,
	David S. Miller, Jakub Kicinski

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

On 05.01.2022 16:21:13, Andy Shevchenko wrote:
> On Fri, Dec 10, 2021 at 03:19:31PM +0200, Andy Shevchenko wrote:
> > On Fri, Dec 10, 2021 at 02:06:07PM +0100, Marc Kleine-Budde wrote:
> > > On 09.12.2021 13:58:40, Andy Shevchenko wrote:
> > > > On Thu, Dec 02, 2021 at 10:58:55PM +0200, Andy Shevchenko wrote:
> > 
> > ...
> > 
> > > > Marc, what do you think about this change?
> > > 
> > > LGTM, added to linux-can-next/testing.
> > 
> > Thanks for applying this and hi311x patches!
> 
> Can we have a chance to see it in the v5.17-rc1?

Yes:
https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/?h=linux-can-next-for-5.17-20220105

'about to send that PR.

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

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

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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2022-01-05 14:34         ` Marc Kleine-Budde
@ 2022-01-05 14:47           ` Andy Shevchenko
  2022-01-05 14:54             ` Marc Kleine-Budde
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Shevchenko @ 2022-01-05 14:47 UTC (permalink / raw)
  To: Marc Kleine-Budde
  Cc: linux-can, netdev, linux-kernel, Wolfgang Grandegger,
	David S. Miller, Jakub Kicinski

On Wed, Jan 05, 2022 at 03:34:48PM +0100, Marc Kleine-Budde wrote:
> On 05.01.2022 16:21:13, Andy Shevchenko wrote:
> > On Fri, Dec 10, 2021 at 03:19:31PM +0200, Andy Shevchenko wrote:
> > > On Fri, Dec 10, 2021 at 02:06:07PM +0100, Marc Kleine-Budde wrote:
> > > > On 09.12.2021 13:58:40, Andy Shevchenko wrote:
> > > > > On Thu, Dec 02, 2021 at 10:58:55PM +0200, Andy Shevchenko wrote:
> > > 
> > > ...
> > > 
> > > > > Marc, what do you think about this change?
> > > > 
> > > > LGTM, added to linux-can-next/testing.
> > > 
> > > Thanks for applying this and hi311x patches!
> > 
> > Can we have a chance to see it in the v5.17-rc1?
> 
> Yes:
> https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/?h=linux-can-next-for-5.17-20220105
> 
> 'about to send that PR.

Cool, thanks! Happy new year!

-- 
With Best Regards,
Andy Shevchenko



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

* Re: [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment
  2022-01-05 14:47           ` Andy Shevchenko
@ 2022-01-05 14:54             ` Marc Kleine-Budde
  0 siblings, 0 replies; 8+ messages in thread
From: Marc Kleine-Budde @ 2022-01-05 14:54 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: linux-can, netdev, linux-kernel

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

On 05.01.2022 16:47:25, Andy Shevchenko wrote:
> > > Can we have a chance to see it in the v5.17-rc1?
> > 
> > Yes:
> > https://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next.git/log/?h=linux-can-next-for-5.17-20220105
> > 
> > 'about to send that PR.
> 
> Cool, thanks! Happy new year!

Thanks. Happy new year, too!

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |

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

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

end of thread, other threads:[~2022-01-05 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 20:58 [PATCH v1 1/1] can: mcp251x: Get rid of duplicate of_node assignment Andy Shevchenko
2021-12-09 11:58 ` Andy Shevchenko
2021-12-10 13:06   ` Marc Kleine-Budde
2021-12-10 13:19     ` Andy Shevchenko
2022-01-05 14:21       ` Andy Shevchenko
2022-01-05 14:34         ` Marc Kleine-Budde
2022-01-05 14:47           ` Andy Shevchenko
2022-01-05 14:54             ` Marc Kleine-Budde

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).