]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libata-sff: fix HSM_ST_ERR handling in __ata_sff_port_intr()
authorTejun Heo <tj@kernel.org>
Fri, 3 Dec 2010 14:19:13 +0000 (15:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:48 +0000 (13:58 -0800)
commit877f13134bcdaaf376b28713c0dc33436cbae5ea
tree2b8f371a3aed98041aec71eba6420cfac7c41df2
parentc7874c1c2111642a8511641d8ce826d13de8ed2f
libata-sff: fix HSM_ST_ERR handling in __ata_sff_port_intr()

commit 687a993339c4f3a63654746230da3aab8bbdbffd upstream.

While separating out BMDMA irq handler from SFF, commit c3b28894
(libata-sff: separate out BMDMA irq handler) incorrectly made
__ata_sff_port_intr() consider an IRQ to be an idle one if the host
state was transitioned to HSM_ST_ERR by ata_bmdma_port_intr().

This makes BMDMA drivers ignore IRQs reporting host bus error which
leads to timeouts instead of triggering EH immediately.  Fix it by
making __ata_sff_port_intr() consider the IRQ to be an idle one iff
the state is HSM_ST_IDLE.  This is equivalent to adding HSM_ST_ERR to
the "break"ing case but less error-prone.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Antonio Toma <antonio.toma@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/libata-sff.c