Sorry, I was not clear. Let me try to understand Greg's point before 
doing debug on the system.

I guess the device is registered in function skel_probe. When a device 
is connected, devfs_register in skel_probe is the function where the 
device is resisted by usb core. Is it correct?

In my system, the driver was registered by usb core, but the probe 
function was not called by usb core when a device was plugged in (I 
inserted a printk in function skel_probe, but it was not called).

Is above understanding correct? Because the usb was able to detect a 
device at the message of "hub.c: new USB device not_pci-3, assigned 
address 2", is it reasonable to say that the usb host controller works, 
but the problem seems in usb core which did not call the skel_probe? 
Does it make sense?

Thanks for your patient.

Jim

Greg KH wrote:

> On Fri, Sep 15, 2006 at 09:20:25PM +1000, [EMAIL PROTECTED] wrote:
> 
>>Thanks Greg. Please see attached file which is identical to your 
>>skeleton.c except changed the name to mx (for my experimental and learning).
>>
>>What I did was following commands:
>>
>>/sbin/insmod mx.o
>>mknod /dev/mx0 c 180 0
>>chmod 644 /dev/mx0
>>
>>usb.c: registered new driver MX
>>
>>I can see mx module by lsmod and I can see /dev/mx0 as well.
>>
>>Then to call fd = open("dev/mx0", O_RDWR), it return an error of "No 
>>such device".
>>
>>When I pluged a serial adapter UC-232A:
>>
>>hub.c: new USB device not_pci-3, assigned address 2
>>usb.c: USB device not accepting new address=2 (error=-110)
>>hub.c: new USB device not_pci-3, assigned address 3
>>usb.c: USB device not accepting new address=3 (error=-110)
> 
> 
> As the usb core isn't even registering your device, your driver will
> never get called.  I'd suggest fixing this first before worrying about
> your code :)
> 
> Do any USB devices work on this system?  Does this device work on any
> other machine?
> 
> thanks,
> 
> greg k-h
> 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to