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 <dlemoal@kernel.org> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Link: https://lore.kernel.org/r/20240703184418.723066-20-cassel@kernel.org Signed-off-by: Niklas Cassel <cassel@kernel.org>
1 parent 0d3603a commit f97106b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)