提交 fadf3a28 编写于 作者: A allan 提交者: David S. Miller

net: asix: Fix AX88772_suspend() USB vendor commands failure issues

The change fixes AX88772_suspend() USB vendor commands failure issues.
Signed-off-by: NAllan Chou <allan@asix.com.tw>
Tested-by: NAllan Chou <allan@asix.com.tw>
Tested-by: NJon Hunter <jonathanh@nvidia.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7bbf91ce
...@@ -603,12 +603,12 @@ static void ax88772_suspend(struct usbnet *dev) ...@@ -603,12 +603,12 @@ static void ax88772_suspend(struct usbnet *dev)
u16 medium; u16 medium;
/* Stop MAC operation */ /* Stop MAC operation */
medium = asix_read_medium_status(dev, 0); medium = asix_read_medium_status(dev, 1);
medium &= ~AX_MEDIUM_RE; 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", 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 */ /* Preserve BMCR for restoring */
priv->presvd_phy_bmcr = priv->presvd_phy_bmcr =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册