From: Ondrej Zary Date: Fri, 6 Feb 2015 22:11:56 +0000 (+0100) Subject: aha1542: Fix bus reset X-Git-Tag: v4.14-rc1~5531^2~45 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7061dec40c07265f819ae0a6842846f74f889aa9;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Christoph Hellwig Signed-off-by: James Bottomley --- 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; }