diff options
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/ax88179_178a.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index 846cc19c04f2..8e8d0fcd4979 100644 --- a/drivers/net/usb/ax88179_178a.c +++ b/drivers/net/usb/ax88179_178a.c | |||
@@ -78,7 +78,6 @@ | |||
78 | #define AX_MEDIUM_STATUS_MODE 0x22 | 78 | #define AX_MEDIUM_STATUS_MODE 0x22 |
79 | #define AX_MEDIUM_GIGAMODE 0x01 | 79 | #define AX_MEDIUM_GIGAMODE 0x01 |
80 | #define AX_MEDIUM_FULL_DUPLEX 0x02 | 80 | #define AX_MEDIUM_FULL_DUPLEX 0x02 |
81 | #define AX_MEDIUM_ALWAYS_ONE 0x04 | ||
82 | #define AX_MEDIUM_EN_125MHZ 0x08 | 81 | #define AX_MEDIUM_EN_125MHZ 0x08 |
83 | #define AX_MEDIUM_RXFLOW_CTRLEN 0x10 | 82 | #define AX_MEDIUM_RXFLOW_CTRLEN 0x10 |
84 | #define AX_MEDIUM_TXFLOW_CTRLEN 0x20 | 83 | #define AX_MEDIUM_TXFLOW_CTRLEN 0x20 |
@@ -1065,8 +1064,8 @@ static int ax88179_bind(struct usbnet *dev, struct usb_interface *intf) | |||
1065 | 1064 | ||
1066 | /* Configure default medium type => giga */ | 1065 | /* Configure default medium type => giga */ |
1067 | *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | | 1066 | *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | |
1068 | AX_MEDIUM_RXFLOW_CTRLEN | AX_MEDIUM_ALWAYS_ONE | | 1067 | AX_MEDIUM_RXFLOW_CTRLEN | AX_MEDIUM_FULL_DUPLEX | |
1069 | AX_MEDIUM_FULL_DUPLEX | AX_MEDIUM_GIGAMODE; | 1068 | AX_MEDIUM_GIGAMODE; |
1070 | ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_MEDIUM_STATUS_MODE, | 1069 | ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_MEDIUM_STATUS_MODE, |
1071 | 2, 2, tmp16); | 1070 | 2, 2, tmp16); |
1072 | 1071 | ||
@@ -1225,7 +1224,7 @@ static int ax88179_link_reset(struct usbnet *dev) | |||
1225 | } | 1224 | } |
1226 | 1225 | ||
1227 | mode = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | | 1226 | mode = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | |
1228 | AX_MEDIUM_RXFLOW_CTRLEN | AX_MEDIUM_ALWAYS_ONE; | 1227 | AX_MEDIUM_RXFLOW_CTRLEN; |
1229 | 1228 | ||
1230 | ax88179_read_cmd(dev, AX_ACCESS_MAC, PHYSICAL_LINK_STATUS, | 1229 | ax88179_read_cmd(dev, AX_ACCESS_MAC, PHYSICAL_LINK_STATUS, |
1231 | 1, 1, &link_sts); | 1230 | 1, 1, &link_sts); |
@@ -1339,8 +1338,8 @@ static int ax88179_reset(struct usbnet *dev) | |||
1339 | 1338 | ||
1340 | /* Configure default medium type => giga */ | 1339 | /* Configure default medium type => giga */ |
1341 | *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | | 1340 | *tmp16 = AX_MEDIUM_RECEIVE_EN | AX_MEDIUM_TXFLOW_CTRLEN | |
1342 | AX_MEDIUM_RXFLOW_CTRLEN | AX_MEDIUM_ALWAYS_ONE | | 1341 | AX_MEDIUM_RXFLOW_CTRLEN | AX_MEDIUM_FULL_DUPLEX | |
1343 | AX_MEDIUM_FULL_DUPLEX | AX_MEDIUM_GIGAMODE; | 1342 | AX_MEDIUM_GIGAMODE; |
1344 | ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_MEDIUM_STATUS_MODE, | 1343 | ax88179_write_cmd(dev, AX_ACCESS_MAC, AX_MEDIUM_STATUS_MODE, |
1345 | 2, 2, tmp16); | 1344 | 2, 2, tmp16); |
1346 | 1345 | ||