]> 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)
commit0515ec07a311d6160d27946ce987a40a503ca0fe
tree276cc33ec4396652b3a8c493b46c8a811e27cf4c
parent412c0395b715aeef35c52982cd25fddd3c777c88
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