aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/cxgb3/ael1002.c3
-rw-r--r--drivers/net/cxgb3/common.h10
-rw-r--r--drivers/net/cxgb3/t3_hw.c12
3 files changed, 9 insertions, 16 deletions
diff --git a/drivers/net/cxgb3/ael1002.c b/drivers/net/cxgb3/ael1002.c
index bebc00d2424d..df1f58576689 100644
--- a/drivers/net/cxgb3/ael1002.c
+++ b/drivers/net/cxgb3/ael1002.c
@@ -1007,7 +1007,8 @@ static int ael2005_reset(struct cphy *phy, int wait)
1007 int err; 1007 int err;
1008 unsigned int lasi_ctrl; 1008 unsigned int lasi_ctrl;
1009 1009
1010 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, LASI_CTRL, &lasi_ctrl); 1010 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL,
1011 &lasi_ctrl);
1011 if (err) 1012 if (err)
1012 return err; 1013 return err;
1013 1014
diff --git a/drivers/net/cxgb3/common.h b/drivers/net/cxgb3/common.h
index 3147789aecec..79a113b99e2f 100644
--- a/drivers/net/cxgb3/common.h
+++ b/drivers/net/cxgb3/common.h
@@ -521,16 +521,6 @@ enum {
521 MAC_RXFIFO_SIZE = 32768 521 MAC_RXFIFO_SIZE = 32768
522}; 522};
523 523
524/* LASI control and status registers */
525enum {
526 RX_ALARM_CTRL = 0x9000,
527 TX_ALARM_CTRL = 0x9001,
528 LASI_CTRL = 0x9002,
529 RX_ALARM_STAT = 0x9003,
530 TX_ALARM_STAT = 0x9004,
531 LASI_STAT = 0x9005
532};
533
534/* PHY loopback direction */ 524/* PHY loopback direction */
535enum { 525enum {
536 PHY_LOOPBACK_TX = 1, 526 PHY_LOOPBACK_TX = 1,
diff --git a/drivers/net/cxgb3/t3_hw.c b/drivers/net/cxgb3/t3_hw.c
index c8a865a7e26c..505a1871d080 100644
--- a/drivers/net/cxgb3/t3_hw.c
+++ b/drivers/net/cxgb3/t3_hw.c
@@ -472,29 +472,31 @@ int t3_set_phy_speed_duplex(struct cphy *phy, int speed, int duplex)
472 472
473int t3_phy_lasi_intr_enable(struct cphy *phy) 473int t3_phy_lasi_intr_enable(struct cphy *phy)
474{ 474{
475 return t3_mdio_write(phy, MDIO_MMD_PMAPMD, LASI_CTRL, 1); 475 return t3_mdio_write(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL,
476 MDIO_PMA_LASI_LSALARM);
476} 477}
477 478
478int t3_phy_lasi_intr_disable(struct cphy *phy) 479int t3_phy_lasi_intr_disable(struct cphy *phy)
479{ 480{
480 return t3_mdio_write(phy, MDIO_MMD_PMAPMD, LASI_CTRL, 0); 481 return t3_mdio_write(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_CTRL, 0);
481} 482}
482 483
483int t3_phy_lasi_intr_clear(struct cphy *phy) 484int t3_phy_lasi_intr_clear(struct cphy *phy)
484{ 485{
485 u32 val; 486 u32 val;
486 487
487 return t3_mdio_read(phy, MDIO_MMD_PMAPMD, LASI_STAT, &val); 488 return t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT, &val);
488} 489}
489 490
490int t3_phy_lasi_intr_handler(struct cphy *phy) 491int t3_phy_lasi_intr_handler(struct cphy *phy)
491{ 492{
492 unsigned int status; 493 unsigned int status;
493 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, LASI_STAT, &status); 494 int err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_PMA_LASI_STAT,
495 &status);
494 496
495 if (err) 497 if (err)
496 return err; 498 return err;
497 return (status & 1) ? cphy_cause_link_change : 0; 499 return (status & MDIO_PMA_LASI_LSALARM) ? cphy_cause_link_change : 0;
498} 500}
499 501
500static const struct adapter_info t3_adap_info[] = { 502static const struct adapter_info t3_adap_info[] = {