• Tejun Heo's avatar
    ahci: make NO_NCQ handling more consistent · 274c1fde
    Tejun Heo authored
    ahci_save_initial_config() is responsible for reading, screening the
    host CAP register and storing the modified result into hpriv->cap for
    the rest of the driver.  Move ATA_FLAG_NO_NCQ handling into
    ahci_save_initial_config().  It's more consistent this way and the
    rest of the driver can always refer to hpriv->cap to determine
    configured capability.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    274c1fde
ahci.c 49.2 KB