From: Joseph CHANG <josright123@gmail.com>
To: Peter Korsgaard <jacmet@sunsite.dk>,
netdev@vger.kernel.org, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org,
Joseph CHANG <josright123@gmail.com>
Cc: Joseph Chang <joseph_chang@davicom.com.tw>
Subject: [PATCH 1/3] dm9601: enable EP3 interrupt
Date: Thu, 10 Mar 2016 19:23:34 +0800 [thread overview]
Message-ID: <1457609014-3597-1-git-send-email-josright123@gmail.com> (raw)
Enable chip's EP3 interrupt to get the link-up notify soon
immediately.
Signed-off-by: Joseph CHANG <josright123@gmail.com>
---
drivers/net/usb/dm9601.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c
index 0b4bdd3..520de4f 100644
--- a/drivers/net/usb/dm9601.c
+++ b/drivers/net/usb/dm9601.c
@@ -46,6 +46,9 @@
#define DM_GPR_DATA 0x1f
#define DM_CHIP_ID 0x2c
#define DM_MODE_CTRL 0x91 /* only on dm9620 */
+#define DM_USB_CTRL 0xf4
+
+#define USB_CTRL_EP3ACK 0x20
/* chip id values */
#define ID_DM9601 0
@@ -414,6 +417,9 @@ static int dm9601_bind(struct usbnet *dev, struct usb_interface *intf)
goto out;
}
dm_write_reg(dev, DM_MODE_CTRL, mode & 0x7f);
+
+ /* Always return 8-bytes data to host per interrupt-interval */
+ dm_write_reg(dev, DM_USB_CTRL, USB_CTRL_EP3ACK);
}
/* power up phy */
--
2.1.4
next reply other threads:[~2016-03-10 11:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-10 11:23 Joseph CHANG [this message]
[not found] ` <1457609014-3597-1-git-send-email-josright123-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-10 21:55 ` [PATCH 1/3] dm9601: enable EP3 interrupt Peter Korsgaard
2016-03-11 10:47 ` Joseph Chang
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=1457609014-3597-1-git-send-email-josright123@gmail.com \
--to=josright123@gmail.com \
--cc=jacmet@sunsite.dk \
--cc=joseph_chang@davicom.com.tw \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).