projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bbf91c
)
net: asix: Fix AX88772_suspend() USB vendor commands failure issues
author
allan
<
[email protected]
>
Wed, 30 Nov 2016 08:29:08 +0000
(16:29 +0800)
committer
David S. Miller
<
[email protected]
>
Thu, 1 Dec 2016 19:26:56 +0000
(14:26 -0500)
The change fixes AX88772_suspend() USB vendor commands failure issues.
Signed-off-by: Allan Chou <
[email protected]
>
Tested-by: Allan Chou <
[email protected]
>
Tested-by: Jon Hunter <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/usb/asix_devices.c
patch
|
blob
|
history
diff --git
a/drivers/net/usb/asix_devices.c
b/drivers/net/usb/asix_devices.c
index cce24950a0ab65f795230b5d5fa08d09e69dd139..dc7b6392e75ab19bf72dc4b2f330b38d97c7e38b 100644
(file)
--- a/
drivers/net/usb/asix_devices.c
+++ b/
drivers/net/usb/asix_devices.c
@@
-603,12
+603,12
@@
static void ax88772_suspend(struct usbnet *dev)
u16 medium;
/* Stop MAC operation */
- medium = asix_read_medium_status(dev,
0
);
+ medium = asix_read_medium_status(dev,
1
);
medium &= ~AX_MEDIUM_RE;
- asix_write_medium_mode(dev, medium,
0
);
+ asix_write_medium_mode(dev, medium,
1
);
netdev_dbg(dev->net, "ax88772_suspend: medium=0x%04x\n",
- asix_read_medium_status(dev,
0
));
+ asix_read_medium_status(dev,
1
));
/* Preserve BMCR for restoring */
priv->presvd_phy_bmcr =