]> git.baikalelectronics.ru Git - kernel.git/commit
sata_mv: fix SoC interrupt breakage
authorMark Lord <liml@rtr.ca>
Thu, 19 Feb 2009 15:38:04 +0000 (10:38 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Feb 2009 20:25:35 +0000 (15:25 -0500)
commit3cdb4a369f6ab2f355e4d0e8daa1c41dbe004888
tree470a31dd536ca0de003c205f6a03ecc3e3116195
parentc68454fb2330c75bf87305e4c5912d9a2eb32e81
sata_mv: fix SoC interrupt breakage

For some reason, sata_mv doesn't clear interrupt status during init
when it's running on an SoC host adapter.  If the bootloader has
touched the SATA controller before starting Linux, Linux can end up
enabling the SATA interrupt with events pending, which will cause the
interrupt to be marked as spurious and then be disabled, which then
breaks all further accesses to the controller.

This patch makes the SoC path clear interrupt status on init like in
the non-SoC case.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c