Commit 5c107fda authored by Yaniv Rosner's avatar Yaniv Rosner Committed by David S. Miller

bnx2x: link code refactoring

Separate the interrupt setting part of each external PHY to a specific
function.
This allows calling the interrupt setting in case of link-flap avoidance,
since some link owners may not enable the interrupt on their own.
Signed-off-by: default avatarYaniv Rosner <yaniv.rosner@broadcom.com>
Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b0e61d98
...@@ -216,6 +216,7 @@ struct bnx2x_phy { ...@@ -216,6 +216,7 @@ struct bnx2x_phy {
phy_specific_func_t phy_specific_func; phy_specific_func_t phy_specific_func;
#define DISABLE_TX 1 #define DISABLE_TX 1
#define ENABLE_TX 2 #define ENABLE_TX 2
#define PHY_INIT 3
}; };
/* Inputs parameters to the CLC */ /* Inputs parameters to the CLC */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment