]> git.baikalelectronics.ru Git - kernel.git/commit
net: libphy: Add stubs to hook IEEE MMD Register reads and writes
authorVince Bridgers <vbridgers2013@gmail.com>
Tue, 29 Jul 2014 20:19:58 +0000 (15:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Jul 2014 03:00:21 +0000 (20:00 -0700)
commit8fb8c18624e899e98d0d2e6078f93022fd742825
tree276cc33ec4396652b3a8c493b46c8a811e27cf4c
parentb1b28a18208141874581e2f79fe5b93edccee0ed
net: libphy: Add stubs to hook IEEE MMD Register reads and writes

The Micrel ksz9021 PHY does not support standard IEEE standard MMD
extended register access, therefore requires stubs to fail the read
register method and do nothing for the write register method when
libphy attempts to read and/or configure Energy Efficient Ethernet
features in PHYS that do support those features. This problem
was observed on an Altera Cyclone V SOC development kit that
uses the Synopsys EMAC and the Micrel ksz9021 PHY. This patch
was tested on the same board, and Energy Efficient Ethernet is
now disabled as expected since the Micrel PHY does not support that
feature.

Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c