* [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment
@ 2021-12-02 21:00 Andy Shevchenko
2021-12-02 21:12 ` Vladimir Oltean
2021-12-03 14:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2021-12-02 21:00 UTC (permalink / raw)
To: Vladimir Oltean, netdev, linux-kernel
Cc: Andrew Lunn, Vivien Didelot, Florian Fainelli, Vladimir Oltean,
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/dsa/vitesse-vsc73xx-core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c
index 4c18f619ec02..ae55167ce0a6 100644
--- a/drivers/net/dsa/vitesse-vsc73xx-core.c
+++ b/drivers/net/dsa/vitesse-vsc73xx-core.c
@@ -1122,9 +1122,6 @@ static int vsc73xx_gpio_probe(struct vsc73xx *vsc)
vsc->gc.ngpio = 4;
vsc->gc.owner = THIS_MODULE;
vsc->gc.parent = vsc->dev;
-#if IS_ENABLED(CONFIG_OF_GPIO)
- vsc->gc.of_node = vsc->dev->of_node;
-#endif
vsc->gc.base = -1;
vsc->gc.get = vsc73xx_gpio_get;
vsc->gc.set = vsc73xx_gpio_set;
--
2.33.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment
2021-12-02 21:00 [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment Andy Shevchenko
@ 2021-12-02 21:12 ` Vladimir Oltean
2021-12-02 21:29 ` Andy Shevchenko
2021-12-03 14:30 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 4+ messages in thread
From: Vladimir Oltean @ 2021-12-02 21:12 UTC (permalink / raw)
To: Andy Shevchenko, Linus Walleij
Cc: Vladimir Oltean, netdev, linux-kernel, Andrew Lunn,
Vivien Didelot, Florian Fainelli, David S. Miller, Jakub Kicinski
On Thu, Dec 02, 2021 at 11:00:29PM +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.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/net/dsa/vitesse-vsc73xx-core.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/drivers/net/dsa/vitesse-vsc73xx-core.c b/drivers/net/dsa/vitesse-vsc73xx-core.c
> index 4c18f619ec02..ae55167ce0a6 100644
> --- a/drivers/net/dsa/vitesse-vsc73xx-core.c
> +++ b/drivers/net/dsa/vitesse-vsc73xx-core.c
> @@ -1122,9 +1122,6 @@ static int vsc73xx_gpio_probe(struct vsc73xx *vsc)
> vsc->gc.ngpio = 4;
> vsc->gc.owner = THIS_MODULE;
> vsc->gc.parent = vsc->dev;
> -#if IS_ENABLED(CONFIG_OF_GPIO)
> - vsc->gc.of_node = vsc->dev->of_node;
> -#endif
> vsc->gc.base = -1;
> vsc->gc.get = vsc73xx_gpio_get;
> vsc->gc.set = vsc73xx_gpio_set;
> --
> 2.33.0
>
I'm in To: and everyone else is in Cc? I don't even have the hardware.
Adding Linus just in case, although the change seems correct.
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment
2021-12-02 21:12 ` Vladimir Oltean
@ 2021-12-02 21:29 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2021-12-02 21:29 UTC (permalink / raw)
To: Vladimir Oltean
Cc: Linus Walleij, Vladimir Oltean, netdev, linux-kernel, Andrew Lunn,
Vivien Didelot, Florian Fainelli, David S. Miller, Jakub Kicinski
On Thu, Dec 02, 2021 at 11:12:59PM +0200, Vladimir Oltean wrote:
> On Thu, Dec 02, 2021 at 11:00:29PM +0200, Andy Shevchenko wrote:
...
> I'm in To: and everyone else is in Cc? I don't even have the hardware.
get_maintainer + Git heuristics. I see that you have 2 changes out of 9,
maybe this what makes it triggered.
> Adding Linus just in case, although the change seems correct.
>
> Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Thanks!
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment
2021-12-02 21:00 [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment Andy Shevchenko
2021-12-02 21:12 ` Vladimir Oltean
@ 2021-12-03 14:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-12-03 14:30 UTC (permalink / raw)
To: Andy Shevchenko
Cc: vladimir.oltean, netdev, linux-kernel, andrew, vivien.didelot,
f.fainelli, olteanv, davem, kuba
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Thu, 2 Dec 2021 23:00:29 +0200 you 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.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> [...]
Here is the summary with links:
- [v1,1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment
https://git.kernel.org/netdev/net-next/c/ab11393fd004
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-03 14:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-02 21:00 [PATCH v1 1/1] net: dsa: vsc73xxx: Get rid of duplicate of_node assignment Andy Shevchenko
2021-12-02 21:12 ` Vladimir Oltean
2021-12-02 21:29 ` Andy Shevchenko
2021-12-03 14:30 ` patchwork-bot+netdevbpf
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).