From: "ASIX_Allan [Office]" <allan@asix.com.tw>
To: "'Jon Hunter'" <jonathanh@nvidia.com>, <freddy@asix.com.tw>,
<Dean_Jenkins@mentor.com>, <Mark_Craske@mentor.com>,
<davem@davemloft.net>, <robert.foss@collabora.com>,
<ivecera@redhat.com>, <john.stultz@linaro.org>,
<vpalatin@chromium.org>, <stephen@networkplumber.org>,
<grundler@chromium.org>, <changchias@gmail.com>, <andrew@lunn.ch>,
<tremyfr@gmail.com>, <colin.king@canonical.com>,
<linux-usb@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <vpalatin@google.com>
Subject: [PATCH] net: asix: Fix AX88772_suspend() USB vendor commands failure issues
Date: Wed, 30 Nov 2016 16:29:08 +0800 [thread overview]
Message-ID: <00d701d24ae3$d4f4f2a0$7eded7e0$@asix.com.tw> (raw)
The change fixes AX88772_suspend() USB vendor commands failure issues.
Signed-off-by: Allan Chou <allan@asix.com.tw>
Tested-by: Allan Chou <allan@asix.com.tw>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
---
--- a/drivers/net/usb/asix_devices.c 2016-11-28 05:08:04.000000000 +0800
+++ b/drivers/net/usb/asix_devices.c 2016-11-30 09:31:54.000000000 +0800
@@ -603,12 +603,12 @@ static void ax88772_suspend(struct usbne
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 =
next reply other threads:[~2016-11-30 8:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-30 8:29 ASIX_Allan [Office] [this message]
2016-12-01 19:35 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00d701d24ae3$d4f4f2a0$7eded7e0$@asix.com.tw' \
--to=allan@asix.com.tw \
--cc=Dean_Jenkins@mentor.com \
--cc=Mark_Craske@mentor.com \
--cc=andrew@lunn.ch \
--cc=changchias@gmail.com \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=freddy@asix.com.tw \
--cc=grundler@chromium.org \
--cc=ivecera@redhat.com \
--cc=john.stultz@linaro.org \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robert.foss@collabora.com \
--cc=stephen@networkplumber.org \
--cc=tremyfr@gmail.com \
--cc=vpalatin@chromium.org \
--cc=vpalatin@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome