summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2015-02-06 23:11:56 +0100
committerJames Bottomley <JBottomley@Odin.com>2015-04-09 18:09:30 -0700
commit7061dec40c07265f819ae0a6842846f74f889aa9 (patch)
tree81c38b42cf95ec6940ce9eb54e7c365160f9a2ca
parent1b0224b0ec6003c06cc369188510642a5fb3b864 (diff)
downloadop-kernel-dev-7061dec40c07265f819ae0a6842846f74f889aa9.zip
op-kernel-dev-7061dec40c07265f819ae0a6842846f74f889aa9.tar.gz
aha1542: Fix bus reset
Bus reset always fails because aha1542_reset waits for the controller to assert the INIT bit (Mailbox Initialization Required) which it never does. This bit is asserted only after host reset. Remove the requirement for INIT bit (we really need only the IDLE bit). Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: James Bottomley <JBottomley@Odin.com>
-rw-r--r--drivers/scsi/aha1542.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c
index 7b5d396..af821f3 100644
--- a/drivers/scsi/aha1542.c
+++ b/drivers/scsi/aha1542.c
@@ -867,7 +867,7 @@ static int aha1542_reset(struct scsi_cmnd *cmd, u8 reset_cmd)
outb(reset_cmd, CONTROL(cmd->device->host->io_port));
if (!wait_mask(STATUS(cmd->device->host->io_port),
- STATMASK, INIT | IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) {
+ STATMASK, IDLE, STST | DIAGF | INVDCMD | DF | CDF, 0)) {
spin_unlock_irqrestore(sh->host_lock, flags);
return FAILED;
}
OpenPOWER on IntegriCloud