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)
commit6be96ac15e4d913e1f48299db083ada5321803b2
tree470a31dd536ca0de003c205f6a03ecc3e3116195
parent7ba07d16bd62f931efec1fc8e63bf1aeebfe42a9
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