Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'ata-6.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux

Pull ata fix from Niklas Cassel:

- We currently enable DIPM (device initiated power management) in the
device (using a SET FEATURES call to the device), regardless if the
HBA supports any LPM states or not. It seems counter intuitive, and
potentially dangerous to enable a device side feature, when the HBA
does not have the corresponding support. Thus, make sure that we do
not enable DIPM if the HBA does not support any LPM states.

* tag 'ata-6.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
ata: ahci: Do not enable LPM if no LPM states are supported by the HBA

+8
+8
drivers/ata/ahci.c
··· 1735 1735 if (ap->pflags & ATA_PFLAG_EXTERNAL) 1736 1736 return; 1737 1737 1738 + /* If no LPM states are supported by the HBA, do not bother with LPM */ 1739 + if ((ap->host->flags & ATA_HOST_NO_PART) && 1740 + (ap->host->flags & ATA_HOST_NO_SSC) && 1741 + (ap->host->flags & ATA_HOST_NO_DEVSLP)) { 1742 + ata_port_dbg(ap, "no LPM states supported, not enabling LPM\n"); 1743 + return; 1744 + } 1745 + 1738 1746 /* user modified policy via module param */ 1739 1747 if (mobile_lpm_policy != -1) { 1740 1748 policy = mobile_lpm_policy;