MFC r203426:
Disable PHY of unconnected ports when interface power management enabled. It allows to save a bit more power (about 0.5W on 2 unused ports of ICH8M).
This commit is contained in:
parent
ebb6ae4568
commit
0be808d5d6
@ -2291,7 +2291,12 @@ ahci_sata_phy_reset(device_t dev)
|
||||
ATA_SC_DET_IDLE | val | ((ch->pm_level > 0) ? 0 :
|
||||
(ATA_SC_IPM_DIS_PARTIAL | ATA_SC_IPM_DIS_SLUMBER)));
|
||||
DELAY(5000);
|
||||
return (ahci_sata_connect(ch));
|
||||
if (!ahci_sata_connect(ch)) {
|
||||
if (ch->pm_level > 0)
|
||||
ATA_OUTL(ch->r_mem, AHCI_P_SCTL, ATA_SC_DET_DISABLE);
|
||||
return (0);
|
||||
}
|
||||
return (1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user