From: Paolo Bonzini Date: Thu, 2 Aug 2012 16:22:43 +0000 (+0200) Subject: lsi: do not reset on error X-Git-Tag: rel-1.7.1~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=876ff281dd7bf3783bcb328ab0972153a0ec0ae7;p=seabios.git lsi: do not reset on error 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 Signed-off-by: Paolo Bonzini --- diff --git a/src/lsi-scsi.c b/src/lsi-scsi.c index 949d3f4..b70b3a5 100644 --- a/src/lsi-scsi.c +++ b/src/lsi-scsi.c @@ -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; }