ncr5380: Fix bus phase in do_abort()
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 3 Jan 2016 05:05:33 +0000 (16:05 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:42:58 +0000 (21:42 -0500)
commitf35d34744c85b2ea31a3fe624616c10229ff1fb3
tree6139565921034d1952b1d41c10ab93b8e99998d7
parent1cc160e1ba938d34581181517221913683031d29
ncr5380: Fix bus phase in do_abort()

NCR5380_poll_politely() returns either 0 (success) or -ETIMEDOUT. However,
in do_abort(), the return value is incorrectly taken to be the status
register value. This means that the bus is put into DATA OUT phase instead
of MESSAGE OUT. Fix this.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c