Re: [PATCH] phy/ethtool: Add missing SPEED_<foo> strings

From: Joe Perches
Date: Sun Apr 02 2017 - 22:44:16 EST


On Sun, 2017-04-02 at 15:29 -0700, Florian Fainelli wrote:
> Le 04/02/17 à 14:30, Joe Perches a écrit :
> > Add all the currently available SPEED_<foo> strings.
> >
> > Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
>
> Considering that PHYLIB does not support anything > 10Gbs at the moment,
> I am not sure how useful that is except if we wanted to re-use
> phy_speed_to_str() in other places of the kernel?

phy_print_status() can be used several places already
independent of phylib.

Might as well make it more generic and so more usable.