• Tejun Heo's avatar
    [PATCH] ata_piix: reimplement piix_sata_probe() · d133ecab
    Tejun Heo authored
    Reimplement piix_sata_probe() such that it turns on PCS enable bits on
    all avaliable ports and check present bits after a while to determine
    device presence.  This should help broken BIOSes.  After device
    presence detection is complete, PCS enable bits of unoccupied bits are
    turned off unless the controller supports AHCI (ICH6/7 docs mandate
    all enables bits are always set on AHCI capable controllers).
    
    Note that PCS present bits are ignored on 6300ESB as described in the
    datasheet.  This should fix device detection problems reported with
    the controller.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    d133ecab
ata_piix.c 25.1 KB