Skip to content

Commit f97106b

Browse files
committed
ata: ahci: Add debug print for external port
Add a debug print that tells us if LPM is not getting enabled because the port is external. Reviewed-by: Damien Le Moal <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Niklas Cassel <[email protected]>
1 parent 0d3603a commit f97106b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/ata/ahci.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1732,8 +1732,10 @@ static void ahci_update_initial_lpm_policy(struct ata_port *ap)
17321732
* Management Interaction in AHCI 1.3.1. Therefore, do not enable
17331733
* LPM if the port advertises itself as an external port.
17341734
*/
1735-
if (ap->pflags & ATA_PFLAG_EXTERNAL)
1735+
if (ap->pflags & ATA_PFLAG_EXTERNAL) {
1736+
ata_port_dbg(ap, "external port, not enabling LPM\n");
17361737
return;
1738+
}
17371739

17381740
/* If no LPM states are supported by the HBA, do not bother with LPM */
17391741
if ((ap->host->flags & ATA_HOST_NO_PART) &&

0 commit comments

Comments
 (0)