Re: PROBLEM : Device Re-enumeration not happening after reset
Alan Stern <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 27 Oct 2007, Oliver Neukum wrote:
> Am Freitag 26 Oktober 2007 schrieb Jithu Joseph:
> > The problem i am facing is that after issuing the "usb_reset_device
> > (struct usb_device *dev) ", though i am able to see a reset in the
> > CATC( USB protocol Analyzer) , the disconnect of the current usb
> > client driver is not getting called and also the probe of the DFU
> > driver is not getting called (the driver has support for both the
> > VIDs/PIDs)
>
> This check from usb_reset_device() should trigger.
>
> /* Device might have changed firmware (DFU or similar) */
> if (memcmp(&udev->descriptor, &descriptor, sizeof descriptor)
> || config_descriptors_changed (udev)) {
> dev_info(&udev->dev, "device firmware changed\n");
> udev->descriptor = descriptor; /* for disconnect() calls */
> goto re_enumerate;
> }
>
> I suggest you dump the old and the new descriptors immediately before
> they are compared. If they are identical we need to find out what happens.
You missed a critical piece of information: Jithu is using a 2.4
kernel.
Alan Stern
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel