aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_piix.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-11-18 22:06:37 -0500
committerTejun Heo <htejun@gmail.com>2007-11-18 23:10:04 -0500
commita0ce9aca97ccf71dc969b44a4c9b3c36da0be362 (patch)
tree96d1883949ecdf8b73cd0ce3f2541046eb85593a /drivers/ata/ata_piix.c
parent8d8ef2fb931d1035e1f02095086cfd3f78eafe3f (diff)
ata_piix: port enable for the first SATA controller of ICH8 is 0xf not 0x3
ICH8 and 9 use two SFF controllers to show 6 SATA ports. The first controllre hosts the first 4 ports while the second one hosts the last 2. The PCS register of the first controller encompasses the first four ports or all six ports depending on configuration while PCS of the second controller controls the last two ports. Using 0xf for the first controller and 0x3 for the second controller always result in the correct configuration. Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r--drivers/ata/ata_piix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index d5ff1d89bea3..671e79665009 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -430,7 +430,7 @@ static const struct piix_map_db ich6m_map_db = {
430 430
431static const struct piix_map_db ich8_map_db = { 431static const struct piix_map_db ich8_map_db = {
432 .mask = 0x3, 432 .mask = 0x3,
433 .port_enable = 0x3, 433 .port_enable = 0xf,
434 .map = { 434 .map = {
435 /* PM PS SM SS MAP */ 435 /* PM PS SM SS MAP */
436 { P0, P2, P1, P3 }, /* 00b (hardwired when in AHCI) */ 436 { P0, P2, P1, P3 }, /* 00b (hardwired when in AHCI) */