From 3f1189a31d9c543a821abce694eb36f7a73c2c54 Mon Sep 17 00:00:00 2001 From: Zhuo Wang Date: Mon, 14 May 2018 12:43:29 +0800 Subject: [PATCH] ethernet: bypass wol_reg12 check when 10M PD#166287: 10M wol_reg12 error Change-Id: I1b9bd412786509d2a4889c58ef634f6391b54e9e Signed-off-by: Zhuo Wang --- drivers/amlogic/ethernet/phy/amlogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/ethernet/phy/amlogic.c b/drivers/amlogic/ethernet/phy/amlogic.c index b9348ce..8a8290f 100644 --- a/drivers/amlogic/ethernet/phy/amlogic.c +++ b/drivers/amlogic/ethernet/phy/amlogic.c @@ -145,7 +145,7 @@ static int internal_phy_read_status(struct phy_device *phydev) val = ((1 << 15) | (1 << 11) | (1 << 10) | (12 << 5)); phy_write(phydev, 0x14, val); wol_reg12 = phy_read(phydev, 0x15); - if (phydev->link) { + if ((phydev->link) && (phydev->speed != SPEED_10)) { if ((wol_reg12 & 0x1000)) reg12_error_count = 0; if (!(wol_reg12 & 0x1000)) { -- 2.7.4