]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77301d8782517399971a37ccc83c7ad68cd16a33
treed01d88252ce202e7aa84aa1912d1b537c2d85865
parent3c7ffaff8619a2c001ec35f3df71801609f1ac1c
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