Oliver Neukum schrieb:
Am Donnerstag, 17. Dezember 2009 14:33:06 schrieb Josua Dietze:
If you are thinking about the two specific devices at hand
there is no need to tell them apart. Same IDs on plugin, same
switching procedure, different IDs on return, different drivers
take care.
How do you issue an eject command without a /dev/sgX node?
You're thinking of handling one device in the kernel and the other
one (same ID, same switching procedure) on the outside?
Well, as I said, you'd have to "filter" additional data (USB
model/manufacturer etc., SCSI_INQUIRY strings). But obviously you
would need to have the data of the two devices to note the differences.
BTW, usb_modeswitch does not need SCSI device nodes, because it
talks to the USB device directly via the bulk message layer once the
endpoints are up. Slight advantage over "eject".
Cheers,
Josua
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html