On Mon, May 3, 2010 at 7:12 PM, Ramya Desai <ramya.desai@xxxxxxxxx> wrote: > Dear Experts, > > When I attach two UAS devices to linux box, I got the following system > trace when I use my driver. I used the following snippet for > registering my device to the transport layer. > > static DECLARE_TRANSPORT_CLASS(uas_host_class, > "uas_host", NULL, NULL, NULL); > > error = transport_class_register(&uas_host_class); > > The transport_class_register() API fails and shows the following trace > when I connect the second device > > Here, I can declare the transport class with different names by > changing the second parameter in the DECLARE_TRANSPORT_CLASS. However, > is there any other way to handle this? Is there any way to declare > unique name for each device? > > Any ideas greatly helpful. > > Thanks and Regards, > Ramya. Dear Experts, I resolved the issue, after some research. The transport_class_register() API is moved from PROBE method to INIT module as it is NOT per device registration, but, it is per driver registration. That is, for each driver, we need to register one time, but not for each device insertion. After moving the registration API call to INIT module, I am able to work with TWO devices simultaneously. Thanks and Regards, Ramya. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html