aha1542: rework locking
authorOndrej Zary <linux@rainbow-software.org>
Fri, 6 Feb 2015 22:11:55 +0000 (23:11 +0100)
committerJames Bottomley <JBottomley@Odin.com>
Fri, 10 Apr 2015 01:09:24 +0000 (18:09 -0700)
commit1b0224b0ec6003c06cc369188510642a5fb3b864
treed01d88252ce202e7aa84aa1912d1b537c2d85865
parent764a0c7e840085828afbc16fb9b47be5712f5531
aha1542: rework locking

Remove aha1542_lock and use host_lock instead.
Remove interrupt and queuecommand function wrappers.
Remove locking from lowlevel _out and _in functions, they now can
onle be called (at runtime) with host_lock being held.
Remove ssleep(4) in aha1542_reset as we can't sleep while holding a spinlock.
It's useless anyway as wait_mask will wait until the controller is idle and
kernel waits for 10 seconds (HOST_RESET_SETTLE_TIME) after that.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/aha1542.c