[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191014175527.GQ25745@shell.armlinux.org.uk>
Date: Mon, 14 Oct 2019 18:55:27 +0100
From: Russell King - ARM Linux admin <linux@...linux.org.uk>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: Linus Walleij <linus.walleij@...aro.org>, netdev@...r.kernel.org,
"David S . Miller" <davem@...emloft.net>,
linux-kernel@...r.kernel.org,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>
Subject: Re: [PATCH v2 1/3] net: phylink: switch to using
fwnode_gpiod_get_index()
On Mon, Oct 14, 2019 at 10:40:20AM -0700, Dmitry Torokhov wrote:
> Instead of fwnode_get_named_gpiod() that I plan to hide away, let's use
> the new fwnode_gpiod_get_index() that mimics gpiod_get_index(), but
> works with arbitrary firmware node.
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> Acked-by: David S. Miller <davem@...emloft.net>
Acked-by: Russell King <rmk+kernel@...linux.org.uk>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
> ---
>
> drivers/net/phy/phylink.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c
> index a5a57ca94c1a..c34ca644d47e 100644
> --- a/drivers/net/phy/phylink.c
> +++ b/drivers/net/phy/phylink.c
> @@ -168,8 +168,8 @@ static int phylink_parse_fixedlink(struct phylink *pl,
> pl->link_config.pause |= MLO_PAUSE_ASYM;
>
> if (ret == 0) {
> - desc = fwnode_get_named_gpiod(fixed_node, "link-gpios",
> - 0, GPIOD_IN, "?");
> + desc = fwnode_gpiod_get_index(fixed_node, "link", 0,
> + GPIOD_IN, "?");
>
> if (!IS_ERR(desc))
> pl->link_gpio = desc;
> --
> 2.23.0.700.g56cf767bdb-goog
>
>
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
Powered by blists - more mailing lists