Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 May 2004 00:46:47 -0500
From:      Jon Noack <noackjr@alumni.rice.edu>
To:        LukeD@pobox.com
Cc:        current@freebsd.org
Subject:   Re: USB patch for better bus_dma and detachment support
Message-ID:  <40B18C47.9080102@alumni.rice.edu>
In-Reply-To: <Pine.NEB.4.58.0405232017450.24405@otaku.freeshell.org>
References:  <200405232109.aa46210@salmon.maths.tcd.ie> <Pine.NEB.4.58.0405232017450.24405@otaku.freeshell.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/23/04 22:31, Luke wrote:
> On Sun, 23 May 2004, Ian Dowse wrote:
> 
>> In case anybody is interested in testing or helping with this, 
>> there's a patch at
>> 
>> http://people.freebsd.org/~iedowse/usb.diff
>> 
>> that attempts to begin addressing a number of problems with our 
>> current USB code:
> 
> I'd love to try this out.  I'm using a Netgear FA120 USB ethernet
> adapter with the axe driver, and my kernel panics with a page fault
> in usb_transfer_complete every time I attempt to bring the interface
> down. This means I can't reboot without a panic. It looks like this
> code might address my problem.
> 
> I've never tested a patch in this manner before though.  I assume
> there's some utility like mergemaster to merge this into my existing
> code.  If somebody can tell me how to merge in these changes I'll try
> them out this week and let you know how it goes. 

The utility 'patch' is what you need to use.  Check out the patch(1) man 
page.  Something like the following should work (I haven't tried this):

cd /usr/src/sys/dev/usb
patch -p0 < usb.diff

After applying the diff just rebuild and test.

NOTE: you will have to reapply the diff after every CVSup (and possibly 
other update schemes).

Jon Noack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40B18C47.9080102>