Skip to contentSkip to conversation

SCSI Patches - mostly on/off-line stuff (SBP-2 hot-plug comments)

DISCUSSION Oliver Neukum 1 participant 1 message Jan 21, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines

Good description... and all of this is currently handled in the SBP-2 driver and IEEE-1394 driver stack. We maintain a mapping between the IEEE-1394 GUID (globally unique ID), IEEE-1394 node ID (which can change with each bus reset or reconfiguration), and the SCSI ID. We maintain an association between the "virtual" SCSI ID reported to the SCSI stack and the GUID, so that as IEEE-1394 devices are hot plugged or unplugged other devices do not "move around" (change SCSI IDs).

We also deal with clearing any unit attentions in the SBP-2 driver itself (so that a new hot plug does not affect other attached SBP-2 devices).

Do you deal with devices that might loose state (eg scanners)?
It seems to me that in these cases an error must be reported to user space, at least in some cases. Can you tell the difference at driver level or is all you get "SBP-2 device" ?

Regards
Oliver

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel