Having trouble with the third patch:
The first two apply cleanly to 2.6.x kernel, but the third one fails on 2.6.1-4. Hunk #10 fails at line 256. As far as I can tell the problem is with two lines of code in config.c. Around lines 266 of the patch, you see:


    265 -           return -ENOMEM;
    266 -       memset(interface, 0, sizeof(struct usb_interface));
    267 +       nintf = USB_MAXINTERFACES;
    268     }

However, the config.c has:

    266             return -ENOMEM;
    267         memset(interface, 0, sizeof(struct usb_interface));
    268         interface->dev.release = usb_release_intf;
    269         device_initialize(&interface->dev);
    270     }

There are two extra lines not accounted for by the patch, and i think this is why it fails. Can I remove the lines without breaking the usb system? Should I leave them in?

thanks,
tony


Alan Stern wrote:
On Sat, 27 Mar 2004, Tony Petz wrote:


I've been unable to get Sampo Savolainen's patch to work. I used the version available here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg20077.html by stripping the html out of the file. It doesn't apply to freshly downloaded 2.6.2 source (2 and 3 fail).

I've applied the patch by hand (and i was pretty careful) but on compile i get this list of errors:


anyone have similar experience? is there a newer version of the patch?

thanks,
tony


There are new patches for that code. The first two have been accepted and will appear in 2.6.5 or 2.6.6. They are prerequisites for the third patch, which is the one you want. You can download them from:

http://marc.theaimsgroup.com/?l=linux-usb-devel&m=107937025411336&q=raw
http://marc.theaimsgroup.com/?l=linux-usb-devel&m=107937021027794&q=raw
http://marc.theaimsgroup.com/?l=linux-usb-devel&m=107937029404286&q=raw

While I believe the patches are correct, there are many USB drivers that
won't work properly when noncompliant devices like the Quattro are
attached. You have been warned! Until those drivers are updated, the
third patch won't appear in the kernel. The usbaudio driver should be okay, but the ALSA USB driver might not be.


Alan Stern




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to