[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4450caf4-e1cf-5187-1337-c46b81b08708@gmail.com>
Date: Tue, 15 Nov 2016 12:54:51 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Lino Sanfilippo <LinoSanfilippo@....de>,
Andrew Lunn <andrew@...n.ch>
Cc: davem@...emloft.net, charrer@...critech.com, liodot@...il.com,
gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [net-next 1/2] net: ethernet: slicoss: add slicoss gigabit
ethernet driver
On 11/15/2016 12:46 PM, Lino Sanfilippo wrote:
>> Could this be pulled out into a standard PHY driver? All the SLIC
>> SLIC_PCR_ defines seems to be the same as those in mii.h. This could
>> be a standard PHY hidden behind a single register.
>>
>> Andrew
>
> You are right, the driver should really use the defines in mii.h. I will fix this in
> a v2.
>
> Concerning the use of the PHY API: What would be the advantage of using it? Note that the
> phy is always internal and not interchangeable. Is not the interchangeability of PHYs
> the main reason for using this API?
Not reinventing the wheel primarily, while PHYLIB also solves the plug &
play aspect of external PHYs, it also solves the basic link management,
and consistent and reasonably well defined interface to user-space and
drivers (statistics reporting, link, auto-negotiation, EEE etc.).
--
Florian
Powered by blists - more mailing lists