Hi all, aic79xx has a _very_ peculiar handling for target hotplug. It detects the target reset okay, but then decides to change the command on the fly to TEST UNIT READY and tries to requeue the original command. Nice idea, but if we can't send the TEST UNIT READY command we'll get the sense code from that and not that one we'd have gotten from the original command. And of course the requeueing bit is stuffed, too, as the TUR command will basically never requeued. Especially harmful if the Midlayer does a rescanning, as the INQUIRY command sent by the rescan should _never_ return a CHECK CONDITION status as this is a violation of the SCSI spec. This patch just strips out that peculiar handling and let the midlayer deal with it. Works far better that way and again some code cleanup achieved :-) Please apply. Cheers, Hannes -- Dr. Hannes Reinecke hare@suse.de SuSE Linux Products GmbH S390 & zSeries Maxfeldstraße 5 +49 911 74053 688 90409 Nürnberg http://www.suse.de