[PATCH] Reduce the AHCI probe time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux