On Wed, 7 Jan 2004, Stavros Markou wrote:
> Hi,
>
> I wonder how can I find out the port number my device was plugged in
> during probing function of driver. I use a ported form kernel
> __usb_reset function and I see that there is a check for all
> parent->maxchild which in my case fails to find a match between my usb
> device and parent->children[i] ( maxchild == 2 ).
You will need to change the hub_port_connect_change() routine in
drivers/usb/core/hub.c. The section that says
/* Run it through the hoops (find a driver, etc) */
if (!usb_new_device(dev, &hub->dev)) {
hub->children[port] = dev;
goto done;
}
will have to be changed to something like this:
/* Run it through the hoops (find a driver, etc) */
hub->children[port] = dev;
if (!usb_new_device(dev, &hub->dev)) {
goto done;
}
hub->children[port] = NULL;
Alan Stern
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel