Marvell 88E1118 interrupt fix
PATCH 1/1 Marvell 88E1118 interrupt fix
This patch adjusts the LED control so that interrupt lines are not reading LEDs and effectively causing indefinite interrupts to the controller.
Signed-off-by Ron Madrid <[email protected]>
--- drivers/net/tsec.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/net/tsec.c +4 -0
@@ -1141,6 +1141,9 @@ struct phy_info phy_info_M88E1118 = { {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL}, {0x16, 0x0002, NULL}, /* Change Page Number */ {0x15, 0x1070, NULL}, /* Delay RGMII TX and RX */ + {0x16, 0x0003, NULL}, /* Change Page Number */ + {0x10, 0x021e, NULL}, /* Adjust LED control */ + {0x16, 0x0000, NULL}, /* Change Page Number */ {MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL}, {MIIM_ANAR, MIIM_ANAR_INIT, NULL}, {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
@@ -1152,6 +1155,7 @@ struct phy_info phy_info_M88E1118 = {/* Status is read once to clear old link state */ {MIIM_STATUS, miim_read, NULL},/* Auto-negotiate */ + {MIIM_STATUS, miim_read, &mii_parse_sr},/* Read the status */ {MIIM_88E1011_PHY_STATUS, miim_read, &mii_parse_88E1011_psr},
Signature · 1 line
1.5.5.1
Ben Warren
AppliedPATCH 1/1 Marvell 88E1118 interrupt fix
Quoted 24 lines · Ron Madrid
This patch adjusts the LED control so that interrupt lines are not reading LEDs and effectively causing indefinite interrupts to the controller.
Signed-off-by Ron Madrid <[email protected]>--- drivers/net/tsec.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)drivers/net/tsec.c +3
-0@@ -1141,6 +1141,9 @@ struct phy_info phy_info_M88E1118 = { {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL}, {0x16, 0x0002, NULL}, /* Change Page Number */ {0x15, 0x1070, NULL}, /* Delay RGMII TX and RX */ + {0x16, 0x0003, NULL}, /* Change Page Number */ + {0x10, 0x021e, NULL}, /* Adjust LED control */ + {0x16, 0x0000, NULL}, /* Change Page Number */ {MIIM_GBIT_CONTROL, MIIM_GBIT_CONTROL_INIT, NULL}, {MIIM_ANAR, MIIM_ANAR_INIT, NULL}, {MIIM_CONTROL, MIIM_CONTROL_RESET, NULL},
drivers/net/tsec.c struct phy_info phy_info_M88E1118 = { · line 1161
Quoted 7 lines
drivers/net/tsec.c +1
-0@@ -1152,6 +1155,7 @@ struct phy_info phy_info_M88E1118 = {/* Status is read once to clear old link state */ {MIIM_STATUS, miim_read, NULL},/* Auto-negotiate */ + {MIIM_STATUS, miim_read, &mii_parse_sr},/* Read the status */ {MIIM_88E1011_PHY_STATUS, miim_read, &mii_parse_88E1011_psr},
Applied to net repo.
thanks,
Ben