Signed-off-by: Andrew Morton --- drivers/scsi/ata_piix.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff -puN drivers/scsi/ata_piix.c~2.6.17-rc4-mm1-ich8-fix drivers/scsi/ata_piix.c --- devel/drivers/scsi/ata_piix.c~2.6.17-rc4-mm1-ich8-fix 2006-05-18 16:13:29.000000000 -0700 +++ devel-akpm/drivers/scsi/ata_piix.c 2006-05-18 16:13:29.000000000 -0700 @@ -542,6 +542,14 @@ static unsigned int piix_sata_probe (str port = map[base + i]; if (port < 0) continue; + if (ap->flags & PIIX_FLAG_AHCI) { + /* FIXME: Port status of AHCI controllers + * should be accessed in AHCI memory space. */ + if (pcs & 1 << port) + present_mask |= 1 << i; + else + pcs &= ~(1 << port); + } if (ap->flags & PIIX_FLAG_IGNORE_PCS || pcs & 1 << (4 + port)) present_mask |= 1 << i; else _