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

bnx2x: Organize PHY functions

Group all PHY specific functions together to have an organized code
Signed-off-by: default avatarYaniv Rosner <yanivr@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c18aa15d
...@@ -1282,7 +1282,7 @@ static int bnx2x_run_loopback(struct bnx2x *bp, int loopback_mode, u8 link_up) ...@@ -1282,7 +1282,7 @@ static int bnx2x_run_loopback(struct bnx2x *bp, int loopback_mode, u8 link_up)
/* check the loopback mode */ /* check the loopback mode */
switch (loopback_mode) { switch (loopback_mode) {
case BNX2X_PHY_LOOPBACK: case BNX2X_PHY_LOOPBACK:
if (bp->link_params.loopback_mode != LOOPBACK_XGXS_10) if (bp->link_params.loopback_mode != LOOPBACK_XGXS)
return -EINVAL; return -EINVAL;
break; break;
case BNX2X_MAC_LOOPBACK: case BNX2X_MAC_LOOPBACK:
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -173,7 +173,7 @@ struct link_params { ...@@ -173,7 +173,7 @@ struct link_params {
#define LOOPBACK_NONE 0 #define LOOPBACK_NONE 0
#define LOOPBACK_EMAC 1 #define LOOPBACK_EMAC 1
#define LOOPBACK_BMAC 2 #define LOOPBACK_BMAC 2
#define LOOPBACK_XGXS_10 3 #define LOOPBACK_XGXS 3
#define LOOPBACK_EXT_PHY 4 #define LOOPBACK_EXT_PHY 4
#define LOOPBACK_EXT 5 #define LOOPBACK_EXT 5
......
...@@ -1269,7 +1269,7 @@ u8 bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode) ...@@ -1269,7 +1269,7 @@ u8 bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode)
bnx2x_acquire_phy_lock(bp); bnx2x_acquire_phy_lock(bp);
if (load_mode == LOAD_DIAG) if (load_mode == LOAD_DIAG)
bp->link_params.loopback_mode = LOOPBACK_XGXS_10; bp->link_params.loopback_mode = LOOPBACK_XGXS;
rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars); rc = bnx2x_phy_init(&bp->link_params, &bp->link_vars);
......
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