On Fri, Feb 06, 2004 at 07:54:59PM +0100, Alexander Schulz wrote:
Hello,
I have a homebuild device here with 3 Interfaces. Two of them are simple char devices handled by drivers derived from usb-sceleton.c When I load these drivers and the device is already connected, it is detected by the drivers. I can use both drivers immediately. But when I load the driver for the serial device (modprobe also loads usbserial), the drivers do not detect the device. I have to replug it first. Am I making a misteke in my driver? Any Ideas? Where might be the difference here?
What kernel version are you using?
It was that way alll the way from 2.6-test4 to 2.6.1
What does the syslog say when you plug in the device?
The problem is not plugging the device in but loading the driver when the device is already pluged in. But anyway:
With the drivers loaded:
hub 1-1:1.0: new USB device on port 3, assigned address 13
usbserial 1-1.3:1.0: Saal Serial converter detected
usb 1-1.3: Saal Serial converter now attached to ttyUSB0 (or usb/tts/0 for devfs)
usb 1-1.3: Saal Serial converter now attached to ttyUSB1 (or usb/tts/1 for devfs)
Without the drivers: hub 1-1:1.0: new USB device on port 3, assigned address 16
When I load the driver:
drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic
drivers/usb/core/usb.c: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for Saal Serial
drivers/usb/serial/saal_serial.c: v0.1:Saal Serial Driver
What does /proc/bus/usb/devices say with your devices plugged in?
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 4 B: Alloc= 0/900 us ( 0%), #Int= 1, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.1 ohci_hcd S: Product=OHCI Host Controller S: SerialNumber=0000:02:00.0 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 4 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=058f ProdID=9254 Rev= 3.14 S: Manufacturer=ALCOR S: Product=Generic USB Hub C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=255ms
T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=01 Dev#= 18 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1 P: Vendor=0547 ProdID=55a5 Rev= 0.01 S: Manufacturer=Sandhya & Alexander S: Product=USB-Serial S: SerialNumber=10001 C:* #Ifs= 3 Cfg#= 1 Atr=80 MxPwr= 64mA I: If#= 0 Alt= 0 #EPs= 6 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=84(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=87(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 8 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 8 Ivl=0ms I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) E: Ad=86(I) Atr=02(Bulk) MxPS= 8 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 8 Ivl=0ms
What version of the hotplug scripts are you using?
I don't really know. I installed them from debian unstable recently. But as far as I understand it, hotplug gets invoked when a device is pluged in, not when the driver is loaded? And the two other interfaces used to work without any hotplug at all.
You need to give us a bit more information :)
Whatever you need.
Regards Alexander
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
