Skip to contentSkip to conversation

Reduce the AHCI probe time

PATCH New zhao, forrest 1 participant 1 message Jun 2, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Reduce the AHCI probe time

Hi,

This patch can reduce the AHCI probe(thus bootup) time when there are ports, which have no attached SATA drive.

In my development machine, only 1 of 4 ports has attached SATA disk. By using this patch, I observed a reduced bootup time.

The patch is against libata #upstream
[ef2824073fba9def3cf122e89cc485f66dd71f70]

Thanks,
Forrest

drivers/scsi/ahci.c +1 -1
index 45fd71d..1c85606 100644
@@ -1171,7 +1171,7 @@ static int ahci_host_init(struct ata_pro
 		while (j < 100) {
 			msleep(10);
 			tmp = readl(port_mmio + PORT_SCR_STAT);
-			if ((tmp & 0xf) == 0x3)
+			if ((tmp & 0xf) != 0x1)
 				break;
 			j++;
 		}