Reduce the AHCI probe time
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
Signed-off-by Forrest Zhao <[email protected]>
drivers/scsi/ahci.c +1 -1
@@ -1171,7 +1171,7 @@ static int ahci_host_init(struct ata_prowhile (j <100 ) {msleep (10 ); tmp =readl (port_mmio +PORT_SCR_STAT ); -if ((tmp &0xf ) ==0x3 ) +if ((tmp &0xf ) !=0x1 )break ; j++; }