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 Signed-off-by: Forrest Zhao <forrest.zhao@xxxxxxxxx> diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 45fd71d..1c85606 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c @@ -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++; } - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html