[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOwfj2PgDAgwUHbSeoH4QkwZzoZd1UmVa+OKdrSJo_qrxRejFQ@mail.gmail.com>
Date: Thu, 22 May 2014 19:02:51 -0500
From: Vince Bridgers <vbridgers2013@...il.com>
To: Florian Fainelli <f.fainelli@...il.com>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net] libphy: Add phy specific function to access mmd phy registers
Hi Florian,
On Thu, May 22, 2014 at 5:32 PM, Florian Fainelli <f.fainelli@...il.com> wrote:
> Hi,
>
> 2014-05-22 15:23 GMT-07:00 Vince Bridgers <vbridgers2013@...il.com>:
>> libphy was originally written assuming all phy devices support clause 45
>> access extensions to the mmd registers through the indirection registers
>> located within the first 16 phy registers. This assumption is not true
>> in all cases, and one specific example is the Micrel ksz9021 10/100/1000
>> Mbps phy. Using the stmmac driver, accessing the mmd registers to query
>> and configure energy efficient Ethernet (EEE) features yielded unexpected
>> behavior.
>>
>> This patch adds mmd access functions to the phy driver that can be
>> overriden by the phy specific driver if the phy does not support this
>> mechanism or uses it's own non-standard access mechanism. By default,
>> the IEEE Compatible clause 45 access mechanism described in clause 22
>> is used. With this patch, EEE query/configure functions as expected
>> using the stmmac and the Micrel ksz9021 phy.
>>
>> Signed-off-by: Vince Bridgers <vbridgers2013@...il.com>
>> ---
>> drivers/net/phy/micrel.c | 15 +++++++++++++
>> drivers/net/phy/phy.c | 49 ++++++++++++++++++++++--------------------
>> drivers/net/phy/phy_device.c | 6 ++++++
>> include/linux/phy.h | 10 +++++++++
>> 4 files changed, 57 insertions(+), 23 deletions(-)
>
> Could you split that into at least two patches, one that prepares for
> allowing drivers to implement their own read/write MMD indirect
> registers function, and another one that does the real implementation
> for the Micrel PHY driver?
>
Yes, I'll take care of that and resubmit.
All the best,
Vince
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists