• Mark Lord's avatar
    sata_mv: fix SoC interrupt breakage · 6be96ac1
    Mark Lord authored
    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: default avatarLennert Buytenhek <buytenh@marvell.com>
    Signed-off-by: default avatarMark Lord <mlord@pobox.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    6be96ac1
sata_mv.c 94.8 KB