]> xenbits.xensource.com Git - seabios.git/commitdiff
lsi: do not reset on error
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Aug 2012 16:22:43 +0000 (18:22 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 4 Aug 2012 15:02:29 +0000 (11:02 -0400)
Resetting on any error (including for example a disconnected device)
will cause a unit attention condition on all devices.  So if we cannot
probe for example target 6, the first read on target 0 will fail.

Reported-by: Frediano Ziglio <freddy77@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
src/lsi-scsi.c

index 949d3f4c4f45a977a67c170cb9f3f7334630df7e..b70b3a5a676bf360cb9f644636a4fe2de158d6c8 100644 (file)
@@ -115,8 +115,6 @@ lsi_scsi_cmd(struct lsi_lun_s *llun, struct disk_op_s *op,
     }
 
 fail:
-    // sledge hammer to get back into a known-good state: hba reset
-    outb(LSI_ISTAT0_SRST, iobase + LSI_REG_ISTAT0);
     return DISK_RET_EBADTRACK;
 }