ncr5380: Fix !REQ timeout in do_abort()
authorFinn Thain <fthain@telegraphics.com.au>
Sun, 3 Jan 2016 05:05:32 +0000 (16:05 +1100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jan 2016 02:42:57 +0000 (21:42 -0500)
commit1cc160e1ba938d34581181517221913683031d29
tree714939893feac7f9ede33c3a9aa3930abf0de599
parent340b96126d8abf859aa8af2fed31ed11ef9f4600
ncr5380: Fix !REQ timeout in do_abort()

NCR5380_poll_politely() never returns -1. That means do_abort() can fail
to handle a timeout after waiting for the target to negate REQ. Fix this
and cleanup other NCR5380_poll_politely() call sites.

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