mirror of
https://github.com/torvalds/linux.git
synced 2024-10-31 01:01:52 +00:00
bnx2x: Clear BCM84833 LED after fan failure
Signed-off-by: Yaniv Rosner <yanivr@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8267bbb01f
commit
99bf7f3436
@ -9858,6 +9858,15 @@ static int bnx2x_84833_hw_reset_phy(struct bnx2x_phy *phy,
|
||||
other_shmem_base_addr));
|
||||
|
||||
u32 shmem_base_path[2];
|
||||
|
||||
/* Work around for 84833 LED failure inside RESET status */
|
||||
bnx2x_cl45_write(bp, phy, MDIO_AN_DEVAD,
|
||||
MDIO_AN_REG_8481_LEGACY_MII_CTRL,
|
||||
MDIO_AN_REG_8481_MII_CTRL_FORCE_1G);
|
||||
bnx2x_cl45_write(bp, phy, MDIO_AN_DEVAD,
|
||||
MDIO_AN_REG_8481_1G_100T_EXT_CTRL,
|
||||
MIDO_AN_REG_8481_EXT_CTRL_FORCE_LEDS_OFF);
|
||||
|
||||
shmem_base_path[0] = params->shmem_base;
|
||||
shmem_base_path[1] = other_shmem_base_addr;
|
||||
|
||||
|
@ -6821,10 +6821,13 @@ Theotherbitsarereservedandshouldbezero*/
|
||||
|
||||
#define MDIO_AN_REG_8481_10GBASE_T_AN_CTRL 0x0020
|
||||
#define MDIO_AN_REG_8481_LEGACY_MII_CTRL 0xffe0
|
||||
#define MDIO_AN_REG_8481_MII_CTRL_FORCE_1G 0x40
|
||||
#define MDIO_AN_REG_8481_LEGACY_MII_STATUS 0xffe1
|
||||
#define MDIO_AN_REG_8481_LEGACY_AN_ADV 0xffe4
|
||||
#define MDIO_AN_REG_8481_LEGACY_AN_EXPANSION 0xffe6
|
||||
#define MDIO_AN_REG_8481_1000T_CTRL 0xffe9
|
||||
#define MDIO_AN_REG_8481_1G_100T_EXT_CTRL 0xfff0
|
||||
#define MIDO_AN_REG_8481_EXT_CTRL_FORCE_LEDS_OFF 0x0008
|
||||
#define MDIO_AN_REG_8481_EXPANSION_REG_RD_RW 0xfff5
|
||||
#define MDIO_AN_REG_8481_EXPANSION_REG_ACCESS 0xfff7
|
||||
#define MDIO_AN_REG_8481_AUX_CTRL 0xfff8
|
||||
|
Loading…
Reference in New Issue
Block a user