libata: disable forced PORTS_IMPL for >= AHCI 1.3
[pandora-kernel.git] / drivers / ata / libahci.c
index fa3eca3..1adb717 100644 (file)
@@ -480,8 +480,8 @@ void ahci_save_initial_config(struct device *dev,
                }
        }
 
-       /* fabricate port_map from cap.nr_ports */
-       if (!port_map) {
+       /* fabricate port_map from cap.nr_ports for < AHCI 1.3 */
+       if (!port_map && vers < 0x10300) {
                port_map = (1 << ahci_nr_ports(cap)) - 1;
                dev_warn(dev, "forcing PORTS_IMPL to 0x%x\n", port_map);