mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
libata: Don't disable dipm with SET FEATURES
LPM seems to get hung up while disabling DIPM, and after thinking about this a bit, I don't think we really need to manually disable it anyway. Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
b55d1b1814
commit
f5456b63ec
1 changed files with 10 additions and 8 deletions
|
@ -676,10 +676,11 @@ static int ata_dev_set_dipm(struct ata_device *dev, enum link_pm policy)
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
/* disable DIPM */
|
/*
|
||||||
if (ata_dev_enabled(dev) && (dev->flags & ATA_DFLAG_DIPM))
|
* we don't have to disable DIPM since IPM flags
|
||||||
err_mask = ata_dev_set_feature(dev,
|
* disallow transitions to SLUMBER, which effectively
|
||||||
SETFEATURES_SATA_DISABLE, SATA_DIPM);
|
* disable DIPM if it does not support PARTIAL
|
||||||
|
*/
|
||||||
break;
|
break;
|
||||||
case NOT_AVAILABLE:
|
case NOT_AVAILABLE:
|
||||||
case MAX_PERFORMANCE:
|
case MAX_PERFORMANCE:
|
||||||
|
@ -689,10 +690,11 @@ static int ata_dev_set_dipm(struct ata_device *dev, enum link_pm policy)
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
/* disable DIPM */
|
/*
|
||||||
if (ata_dev_enabled(dev) && (dev->flags & ATA_DFLAG_DIPM))
|
* we don't have to disable DIPM since IPM flags
|
||||||
err_mask = ata_dev_set_feature(dev,
|
* disallow all transitions which effectively
|
||||||
SETFEATURES_SATA_DISABLE, SATA_DIPM);
|
* disable DIPM anyway.
|
||||||
|
*/
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue