[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1491166995.26047.12.camel@kernel.crashing.org>
Date: Mon, 03 Apr 2017 07:03:15 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 05/13] ftgmac100: Cleanup speed/duplex tracking and fix
duplex config
On Sun, 2017-04-02 at 20:28 +0200, Andrew Lunn wrote:
> > + if (new_speed) {
> > + netdev_info(netdev, "Link up at %d Mbit/s %s
> > duplex\n",
> > + new_speed,
> > + phydev->duplex == DUPLEX_FULL ? "full"
> > : "half");
> > + } else if (priv->cur_speed) {
> > + /* No link, just return. Leave the HW alone so it
> > can
> > + * continue draining the tx ring.
> > + */
> > + netdev_info(netdev, "Link down\n");
> > return;
>
> Hi Ben
>
> Please consider using phy_print_status().
Thanks. I didn't know about that one. I'll update this.
Cheers,
Ben.
Powered by blists - more mailing lists