summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-02-08 09:55:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-11 19:59:52 +0100
commit650e2daa9fc847aaced5302b2a287da2d1d58c04 (patch)
tree5d1fc198dad7cc1756f6e1d75f60e6cecbb69f12
parent9c305a0dbe7a323341d89ac7065fba9d1c3d11fd (diff)
downloadbarebox-650e2daa9fc847aaced5302b2a287da2d1d58c04.tar.gz
barebox-650e2daa9fc847aaced5302b2a287da2d1d58c04.tar.xz
phy/micrel: KSZ9021 diasable Asym Pause support
Due to a hw bug do not enable teh Asym_Pause. Otherwise if you ser the bit 11 in 4h you will have to unplug and replug the cable to make the phy work. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/net/phy/micrel.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index ed5abf80b7..c0bcdd1082 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -148,11 +148,15 @@ static struct phy_driver ksphy_driver[] = {
.config_aneg = genphy_config_aneg,
.read_status = genphy_read_status,
}, {
+ /*
+ * Due to a hw bug do not enable the Asym_Pause.
+ * Otherwise if you set the bit 11 in 4h you will have to unplug
+ * and replug the cable to make the phy work.
+ */
.phy_id = PHY_ID_KSZ9021,
.phy_id_mask = 0x000ffffe,
.drv.name = "Micrel KSZ9021 Gigabit PHY",
- .features = (PHY_GBIT_FEATURES | SUPPORTED_Pause
- | SUPPORTED_Asym_Pause),
+ .features = (PHY_GBIT_FEATURES | SUPPORTED_Pause),
.config_init = kszphy_config_init,
.config_aneg = genphy_config_aneg,
.read_status = genphy_read_status,