Re: [linux-usb-devel] Best kernel for USB Driver Development

2004-07-08 Thread David T Hollis
on that front. -- David T Hollis [EMAIL PROTECTED] --- This SF.Net email sponsored by Black Hat Briefings Training. Attend Black Hat Briefings Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches

Re: [linux-usb-devel] [PATCH 2.4.25-pre] Remove standalone AX8817x driver

2004-01-19 Thread David T Hollis
important thing is in the Config.in (oops, my patch left that part out) and making sure the end user can tell that it's in usbnet. With 2.6, that isn't a problem as the minidrivers are configurable. With 2.4, they aren't. They are all just enabled in the driver source. -- David T Hollis [EMAIL

Re: [linux-usb-devel] [PATCH 2.4.25-pre] Remove standalone AX8817x driver

2004-01-19 Thread David T Hollis
On Sat, 2004-01-17 at 20:05, David T Hollis wrote: This is a long overdue patch to pull out the standalone ax8817x.o driver from 2.4. All functionality is in the usbnet driver which is considerably more stable. This additional patch removes the AX8817x config entry from Config.in. -- David

[linux-usb-devel] Re: usbnet on 2.6.0 -- needs ax8817x_ethtool_ops

2003-12-25 Thread David T Hollis
On Tue, 2003-12-23 at 22:49, David Brownell wrote: This patch should take care of it. Additionally, I had to fold one of my patches that's in the queue for 2.6.1 (ethtool link check fix) into this as the other would not apply due to changes. It looks fine, though it didn't apply against

[linux-usb-devel] Re: usbnet on 2.6.0 -- needs ax8817x_ethtool_ops

2003-12-23 Thread David T Hollis
On Sun, 2003-12-21 at 18:53, David Brownell wrote: Hi, I just noticed a minor goof, your docs say the right thing but the code doesn't. Right now the ax8817x code patches the ethool_ops structure used by _every_ chunk of hardware, so it'll break if there's a non-ax8817x device connected...

[linux-usb-devel] [PATCH 2.6] ax8817x bug fixes and further ethtool support

2003-10-21 Thread David T Hollis
* ax8817x_set_multicast - need address of dev-data, not the contents * ax8817x_write_cmd_async - free the request structure if urb submit fails * Add ethtool get_link, get_settings, and set_settings * ax8817x_bind - remove IPG read/write bit as it is not needed with GPIO fiddling If the bugs

[linux-usb-devel] [PATCH 2.6 POST] ax8817x additional ethtool support in usbnet

2003-10-21 Thread David T Hollis
* Provide operational link testing via ethtool * Provide get/set features via ethtool. --- usbnet.c.orig 2003-10-21 12:54:01.185020616 -0400 +++ usbnet.c2003-10-21 12:52:48.845017968 -0400 @@ -637,6 +637,27 @@ info-eedump_len = 0x3e; } +static u32 ax8817x_get_link (struct

[linux-usb-devel] [PATCH 2.6] ax8817x fixes in usbnet.c

2003-10-21 Thread David T Hollis
* ax8817x_set_multicast - use address of dev-data, not contents * ax8817x_write_async_cmd - free request and urb if submit fails --- a/drivers/usb/net/usbnet.c 2003-10-20 23:43:22.0 -0400 +++ b/drivers/usb/net/usbnet.c 2003-10-21 12:49:13.519752384 -0400 @@ -493,8 +493,11 @@

[linux-usb-devel] [PATCH 2.6] Remove ax8817x driver

2003-09-25 Thread David T Hollis
This patch removes the ax8817x driver since all functionality has been incorporated into usbnet. Makefile |1 Makefile.lib |1 net/Kconfig | 19 net/Makefile |1 net/Makefile.mii |1 net/ax8817x.c| 1340

[linux-usb-devel] Re: [PATCH 2.4] UPDATED ax8817x support for usbnet and ethtool_ops support

2003-09-24 Thread David T Hollis
Greg KH wrote: On Fri, Sep 12, 2003 at 01:32:44PM -0400, David T Hollis wrote: This is a cleaned up and functioning patch from earlier that adds ASIX ax8817x support to the 2.4 usbnet.c driver. It also adds ethtool_ops support to usbnet so that specific drivers can easily extend or override

[linux-usb-devel] [PATCH 2.6 RESEND] ethtool_ops and ax8817x fixes for usbnet

2003-09-19 Thread David T Hollis
This is a resend of all of my recent usbnet additions which center on adding ethtool_ops support. All have been re-diffed against the latest usbnet from BK. Changes: * Add ethtool_ops support to usbnet * Add GPIO bit toggling upon initialization of ax8817x devices so that xmit works properly

[linux-usb-devel] Re: [PATCH 2.6 RESEND] ethtool_ops and ax8817x fixes for usbnet [4/4]

2003-09-19 Thread David T Hollis
--- a/drivers/usb/net/usbnet.c 2003-09-18 23:33:11.079001376 -0400 +++ b/drivers/usb/net/usbnet.c 2003-09-18 23:41:39.314737800 -0400 @@ -455,11 +455,11 @@ static void ax8817x_async_cmd_callback(struct urb *urb, struct pt_regs *regs) { struct usb_ctrlrequest *req = (struct

[linux-usb-devel] Re: [PATCH 2.6 RESEND] ethtool_ops and ax8817x fixes for usbnet [1/4]

2003-09-19 Thread David T Hollis
--- a/drivers/usb/net/usbnet.c 2003-09-18 23:09:49.569063272 -0400 +++ b/drivers/usb/net/usbnet.c 2003-09-18 23:10:52.005571480 -0400 @@ -298,6 +298,8 @@ /*-*/ +static struct ethtool_ops usbnet_ethtool_ops; + /* mostly

[linux-usb-devel] Re: [PATCH 2.6 RESEND] ethtool_ops and ax8817x fixes for usbnet [2/4]

2003-09-19 Thread David T Hollis
--- a/drivers/usb/net/usbnet.c 2003-09-12 13:53:44.022426336 -0400 +++ b/drivers/usb/net/usbnet.c 2003-09-12 13:55:02.947427912 -0400 @@ -252,6 +252,8 @@ /* for new devices, use the descriptor-reading code instead */ int in; /* rx endpoint */ int

[linux-usb-devel] Re: [PATCH 2.6 RESEND] ethtool_ops and ax8817x fixes for usbnet [3/4]

2003-09-19 Thread David T Hollis
--- a/drivers/usb/net/usbnet.c 2003-09-18 23:17:47.034477496 -0400 +++ b/drivers/usb/net/usbnet.c 2003-09-18 23:18:05.760630688 -0400 @@ -301,6 +301,7 @@ /*-*/ static struct ethtool_ops usbnet_ethtool_ops; +static void

Re: [linux-usb-devel] FYI -- USB memory leaks from the latest Stanford checker

2003-09-16 Thread David T Hollis
David Brownell wrote: These are the USB leaks (usb-midi, hiddev) from http://marc.theaimsgroup.com/?l=linux-kernelm=106368725910864w=2 In usb-midi, and hiddev. - Dave In looking at these leaks, I took a look into my ax8817x code in usbnet. It looks like it's ok for the most part with

Re: [linux-usb-devel] FYI -- USB memory leaks from the latest Stanford checker

2003-09-16 Thread David T Hollis
David Brownell wrote: David T Hollis wrote: which is then used in an async call. That memory isn't freed in the callback though the control request and URB are. The easy fix is to just free the urb-transfer_buffer which would be ok for now, but that seems like a tacky thing to do

[linux-usb-devel] [PATCH 2.6] - Add WOL and eeprom dump support to ax8817x in usbnet

2003-09-15 Thread David T Hollis
This patch adds Wake On LAN (WOL) and eeprom dumping support via ethtool to the ax8817x portion of usbnet. This only permits the configuration of WOL for the device, actual operation of WOL would seem to be handled at lower levels of the USB subsystem. It also serves as an example of how

[linux-usb-devel] [PATCH 2.6] Add GPIO toggling to ax8817x code in usbnet.c

2003-09-13 Thread David T Hollis
This patch forward-ports manufacturer specific GPIO toggling from the 2.4 AX8817x code for usbnet. Some adapters need this toggling before any any traffic can be sent. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.

[linux-usb-devel] [PATCH 2.4] UPDATED ax8817x support for usbnet and ethtool_ops support

2003-09-12 Thread David T Hollis
This is a cleaned up and functioning patch from earlier that adds ASIX ax8817x support to the 2.4 usbnet.c driver. It also adds ethtool_ops support to usbnet so that specific drivers can easily extend or override ethtool options as necessary. This addition essentially obsoletes the current

[linux-usb-devel] [PATCH 2.6] Add GPIO toggling to ax8817x code in usbnet.c

2003-09-12 Thread David T Hollis
** Egg on face no patch attached! ** This patch forward-ports manufacturer specific GPIO toggling from the 2.4 AX8817x code for usbnet. Some adapters need this toggling before any any traffic can be sent. --- a/drivers/usb/net/usbnet.c 2003-09-12 13:53:44.022426336 -0400 +++

[linux-usb-devel] [PATCH 2.4] ax8817x support for usbnet and ethtool_ops

2003-09-11 Thread David T Hollis
This patch backports the addition of ax8817x support to the usbnet driver. It also includes the ethool_ops support. --- a/drivers/usb/usbnet.c.orig 2003-09-11 23:07:48.934797792 -0400 +++ b/drivers/usb/usbnet.c 2003-09-11 23:07:56.263683632 -0400 @@ -133,6 +133,7 @@ #include

Re: [linux-usb-devel] Re: [PATCH 2.6] Add ethtool_ops support to usbnet

2003-09-09 Thread David T Hollis
Oliver Neukum wrote: Am Samstag, 6. September 2003 15:55 schrieb David T Hollis: +/* Default ethtool_ops assigned. Devices can override in their bind() routine */ +static struct ethtool_ops usbnet_ethtool_ops = { + .get_drvinfo= usbnet_get_drvinfo, + .get_link

[linux-usb-devel] Re: [PATCH 2.6] Add ethtool_ops support to usbnet

2003-09-06 Thread David T Hollis
Greg KH wrote: On Fri, Aug 29, 2003 at 08:04:34AM -0400, David T Hollis wrote: [EMAIL PROTECTED], 2003-08-29 07:56:36-04:00, [EMAIL PROTECTED] Add ethtool_ops support to usbnet Hm, I get a confict when trying to apply this patch. Can you rediff it, or just wait for me to sync back up

[linux-usb-devel] [PATCH 2.6] Add ethtool_ops support to usbnet

2003-08-29 Thread David T Hollis
You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. === [EMAIL PROTECTED], 2003-08-29 07:56:36-04:00, [EMAIL PROTECTED] Add ethtool_ops support

[linux-usb-devel] [PATCH 2.6] Fix building of ax8817x if CONFIG_USB_AX8817X_STANDALONEis set

2003-08-29 Thread David T Hollis
You can import this changeset into BK by piping this whole message to: '| bk receive [path to repository]' or apply the patch as usual. === [EMAIL PROTECTED], 2003-08-29 08:05:58-04:00, [EMAIL PROTECTED] Fix building of

Re: [linux-usb-devel] USB suspend/resume problems continue in Linux2.6.0-test4

2003-08-28 Thread David T Hollis
David Brownell wrote: Scanning uhci docs suggest resume-detect is part of its remote wakeup support. Yes? And since Linux-USB doesn't seem to enable the remote wakeup feature in any device, we have no reason to pay attention to such requests. They're all errors, unless/until the host enables

[linux-usb-devel] [PATCH 2.6] Add Kconfig option for building ax8817x support in usbnet

2003-08-23 Thread David T Hollis
This patch adds support to Kconfig to build ax8817x support into usbnet. This renames the config option for the existing standalone ax8817x driver to CONFIG_USB_AX8817X_STANDALONE. --- linux-2.6.0-test3.orig/drivers/usb/net/Kconfig 2003-08-09 15:05:07.131368024 -0400 +++

[linux-usb-devel] Re: [PATCH 2.6] Add Kconfig option for building ax8817x support inusbnet

2003-08-23 Thread David T Hollis
Greg KH wrote: On Sat, Aug 23, 2003 at 10:59:15AM -0400, David T Hollis wrote: This patch adds support to Kconfig to build ax8817x support into usbnet. This renames the config option for the existing standalone ax8817x driver to CONFIG_USB_AX8817X_STANDALONE. Any reason to keep

[linux-usb-devel] [PATCH 2.6] - Add ax8817x support to usbnet

2003-08-17 Thread David T Hollis
This patch adds support to usbnet for devices based on the ASIX AX88172 USB 2.0 Ethernet chipset. Greg, please apply. --- linux-2.6.0-test3-mm2/drivers/usb/net/usbnet.c.orig 2003-08-15 21:55:02.789323080 -0400 +++ linux-2.6.0-test3-mm2/drivers/usb/net/usbnet.c 2003-08-15 21:55:09.506301944

[linux-usb-devel] [PATCH 2.6] - Add AX8817x to usbnet - take 2

2003-08-15 Thread David T Hollis
This patch adds ASIX AX88172 support to the usbnet driver. This rev should work much better, and removes more unnecessary tx/rx framing. usbnet.c | 322 +-- 1 files changed, 316 insertions(+), 6 deletions(-) ---

[linux-usb-devel] [PATCH 2.6] - Kconfig bits for ax8817x addition to usbnet

2003-08-15 Thread David T Hollis
These are the modifications to Kconfig and associated files to support the ax8817x driver support in usbnet. Kconfig | 25 - Makefile.mii |1 + 2 files changed, 25 insertions(+), 1 deletion(-) --- linux-2.6.0-test3.orig/drivers/usb/net/Kconfig 2003-08-09

[linux-usb-devel] Continuing hid problems with 2.6.0-test2-mm4

2003-08-14 Thread David T Hollis
Problems with 2.6.0-test2-mm4 hid are continuing. My usual temporary remedy was to remove hid and reload it which reactivated my usb mouse. Today I got this dump and rmmod hung trying to remove hid: drivers/usb/core/usb.c: deregistering driver hiddev drivers/usb/core/usb.c: deregistering

[linux-usb-devel] [PATCH 2.6] usbnet.c - trailing 'else' that probably breaks net1080

2003-08-14 Thread David T Hollis
A trailing else in the #ifdef CONFIG_USB_NET1080 block that would prevent it from properly filling the bulk URB. --- linux-2.6.0-test3-mm2/drivers/usb/net/usbnet.c.orig 2003-08-13 20:22:30.386299904 -0400 +++ linux-2.6.0-test3-mm2/drivers/usb/net/usbnet.c 2003-08-13 20:22:50.122299576

[linux-usb-devel] [PATCH 2.6] - Experimental patch to add ax8817x support to usbnet

2003-08-14 Thread David T Hollis
This patch adds support for the ASIX AX8817x based ethernet devices to the usbnet driver (deprecating the current ax8817x driver). At this point, I consider it highly experimental, don't deploy in production, etc etc etc. It is in the works for me category and I seem to get pretty decent

Re: [linux-usb-devel] Continuing hid problems with 2.6.0-test2-mm4

2003-08-06 Thread David T Hollis
David T Hollis wrote: Problems with 2.6.0-test2-mm4 hid are continuing. My usual temporary remedy was to remove hid and reload it which reactivated my usb mouse. Today I got this dump and rmmod hung trying to remove hid: I'm rebuilding the kernel as we speak with USB_DEBUG enabled to see

[linux-usb-devel] [PATCH 2.6] ax8817x.c - Fix flags to greatly increase rx performance

2003-07-25 Thread David T Hollis
The attached patch fixes the flags used on the receive URBs and greatly increases throughput (especially on EHCI). On EHCI before the patch, receives came in around 460KB/s and after I am in the 10-11MB/s range which is about the same speed I am able to achieve using my Intel nics. Now

[linux-usb-devel] mdio_read / mii support for ax8817x driver

2003-07-23 Thread David T Hollis
I'm trying to get mii support working properly with the ax8817x driver but I'm hitting a big stumbling block. I have the following functions that handle the reads but I always get a return code of 2 from the second ax_read_cmd (the one that actually pulls the value, calls ax_control_msg,

Re: [linux-usb-devel] mdio_read / mii support for ax8817x driver

2003-07-23 Thread David T Hollis
David T Hollis wrote: I'm trying to get mii support working properly with the ax8817x driver but I'm hitting a big stumbling block. I have the following functions that handle the reads but I always get a return code of 2 from the second ax_read_cmd (the one that actually pulls the value

[linux-usb-devel] [PATCH 2.6] AX8817x mii/ethtool fixes among others

2003-07-23 Thread David T Hollis
This patch: Adds the Intellinet device IDs Adds msg_level support (to be utilized in the future) Fixes ethtool/mii support so link checking actually works Changed timeout on usb_fill_int_urb to support High Speed ([EMAIL PROTECTED]) Added devdbg/err/info defines borrowed from usbnet Changed

Re: [linux-usb-devel] Re: [PATCH] AX8817X Driver for 2.4 Kernels

2003-06-15 Thread David T Hollis
David T Hollis wrote: Greg KH wrote: On Thu, Jun 12, 2003 at 09:12:00AM -0400, David T Hollis wrote: Few minor code tweaks, formatting, etc. Greg, is this in proper shape for inclusion? Close, but I think this will break on 2.4.22-pre1, right: +#if LINUX_VERSION_CODE KERNEL_VERSION

[linux-usb-devel] Re: [PATCH] AX8817X Driver for 2.4 Kernels

2003-06-13 Thread David T Hollis
Greg KH wrote: On Thu, Jun 12, 2003 at 09:12:00AM -0400, David T Hollis wrote: Few minor code tweaks, formatting, etc. Greg, is this in proper shape for inclusion? Close, but I think this will break on 2.4.22-pre1, right: +#if LINUX_VERSION_CODE KERNEL_VERSION(2,4,22) +#include

[linux-usb-devel] [PATCH] AX8817X Driver for 2.4 Kernels

2003-06-12 Thread David T Hollis
Few minor code tweaks, formatting, etc. Greg, is this in proper shape for inclusion? --- Documentation/Configure.help.orig 2003-05-31 18:54:24.0 -0400 +++ Documentation/Configure.help2003-05-31 18:57:13.0 -0400 @@ -14548,6 +14548,24 @@ The module will be called

[linux-usb-devel] [PATCH] AX8817X Driver for 2.5 Kernels

2003-06-12 Thread David T Hollis
Minor tweaks, formatted per style guide. --- drivers/usb/net/Kconfig.orig2003-06-06 06:58:57.711454488 -0400 +++ drivers/usb/net/Kconfig 2003-06-06 07:02:23.756130936 -0400 @@ -7,6 +7,27 @@ comment Networking support is needed for USB Networking device support depends on USB

[linux-usb-devel] [PATCH 2.4] AX8817X Driver for 2.4 Kernels

2003-06-06 Thread David T Hollis
Code restyled to fit kernel standards and removed no longer necessary #if 0s. --- Documentation/Configure.help.orig 2003-05-31 18:54:24.0 -0400 +++ Documentation/Configure.help2003-05-31 18:57:13.0 -0400 @@ -14548,6 +14548,24 @@ The module will be called catc.o. If

[linux-usb-devel] [PATCH 2.5] AX8817X Driver for 2.5 Kernels

2003-06-06 Thread David T Hollis
Ported to 2.5. Completely redid transmit routines based on Pegasus. Seems to greatly simplify the operation and also makes the driver work under 2.5 :)! mii/ethtool support is currently broken. Commenting out the line net-do_ioctl = ax8817x_ioctl kills any attemps at mii/ethtool and allows

Re: [linux-usb-devel] Yet another revision of the ax8817x driver

2003-06-05 Thread David T Hollis
Greg KH wrote: On Sat, May 31, 2003 at 07:01:56PM -0400, David T Hollis wrote: Here you are. Would be happy to see it included mainline. A few comments. First off, I need a 2.5 version first before I can add it to 2.4 You need to follow the coding style rules found at Documentation

[linux-usb-devel] Suggestions for porting drivers to 2.5

2003-06-03 Thread David T Hollis
I've started looking into what it will take to port the ax8817x driver to 2.5 and the largest issue appears to be with subtle API changes that are easily resolved. However, is there any preferred manner to write it in 'portable' manner so that maintaining a 2.4 version and 2.5 version isn't a

Re: [linux-usb-devel] Yet another revision of the ax8817x driver

2003-06-01 Thread David T Hollis
Greg KH wrote: On Fri, May 30, 2003 at 09:56:27PM -0400, David T Hollis wrote: This version has taken some of the suggestions from Oliver Neukum and David Brownell to make this driver a bit more robust. With some trials, I am able to run full ttcp tests without error, transfer very large

[linux-usb-devel] Yet another revision of the ax8817x driver

2003-05-31 Thread David T Hollis
This version has taken some of the suggestions from Oliver Neukum and David Brownell to make this driver a bit more robust. With some trials, I am able to run full ttcp tests without error, transfer very large files and I am not getting any transmit timeouts. However (there always is a

Re: [linux-usb-devel] Driver for Linksys USB 2.0 10/100 NIC ModelUSB200M

2003-05-29 Thread David T Hollis
David Rippel wrote: Does anyone have a working driver for (or willing to put one together?) for the ASIX AX88172 usb-to-ethernet controller RealTek RTL8201 PHY (better known as the linksys usb200m nic, also seen as a netgear product)? There's documentation available at the following urls:

Re: [linux-usb-devel] Driver for Linksys USB 2.0 10/100 NIC ModelUSB200M

2003-05-29 Thread David T Hollis
Kevin Cernekee wrote: On Wed, 28 May 2003, David Rippel wrote: Does anyone have a working driver for (or willing to put one together?) for the ASIX AX88172 usb-to-ethernet controller RealTek RTL8201 PHY (better known as the linksys usb200m nic, also seen as a netgear product)? TiVo

Re: [linux-usb-devel] Driver for Linksys USB 2.0 10/100 NIC ModelUSB200M

2003-05-29 Thread David T Hollis
David T Hollis wrote: I have now thrown up a port of the TiVo driver that builds cleanly and installs though I have not tested it with my device since I don't have it handy. For those really daring folks, it's available at http://www.davehollis.com/~dhollis/ax8817x.tar.gz. There aren't

Re: [linux-usb-devel] Driver for Linksys USB 2.0 10/100 NIC ModelUSB200M

2003-05-29 Thread David T Hollis
David Rippel wrote: Does anyone have a working driver for (or willing to put one together?) for the ASIX AX88172 usb-to-ethernet controller RealTek RTL8201 PHY (better known as the linksys usb200m nic, also seen as a netgear product)? There's documentation available at the following urls: