Skip to content

Commit

Permalink
lan78xx: Remove not defined MAC_CR_GMII_EN_ bit from MAC_CR.
Browse files Browse the repository at this point in the history
Remove not defined MAC_CR_GMII_EN_ bit from MAC_CR.

Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Woojung.Huh@microchip.com authored and David S. Miller committed Sep 18, 2015
1 parent 758c5c1 commit 9110fe4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1909,10 +1909,7 @@ static int lan78xx_reset(struct lan78xx_net *dev)
} while ((buf & PMT_CTL_PHY_RST_) || !(buf & PMT_CTL_READY_));

ret = lan78xx_read_reg(dev, MAC_CR, &buf);

buf |= MAC_CR_GMII_EN_;
buf |= MAC_CR_AUTO_DUPLEX_ | MAC_CR_AUTO_SPEED_;

ret = lan78xx_write_reg(dev, MAC_CR, buf);

/* enable PHY interrupts */
Expand Down
1 change: 0 additions & 1 deletion drivers/net/usb/lan78xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,6 @@
#define LTM_INACTIVE1_TIMER10_ (0x0000FFFF)

#define MAC_CR (0x100)
#define MAC_CR_GMII_EN_ (0x00080000)
#define MAC_CR_EEE_TX_CLK_STOP_EN_ (0x00040000)
#define MAC_CR_EEE_EN_ (0x00020000)
#define MAC_CR_EEE_TLAR_EN_ (0x00010000)
Expand Down

0 comments on commit 9110fe4

Please sign in to comment.