mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
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]>
This commit is contained in:
1 parent
0d3603acff
commit
f97106b10d
1 file changed
+3
-1
+3
-1
@@ -1732,8 +1732,10 @@ static void ahci_update_initial_lpm_policy(struct ata_port *ap)
|
||||
* Management Interaction in AHCI 1.3.1. Therefore, do not enable
|
||||
* LPM if the port advertises itself as an external port.
|
||||
*/
|
||||
if (ap->pflags & ATA_PFLAG_EXTERNAL)
|
||||
if (ap->pflags & ATA_PFLAG_EXTERNAL) {
|
||||
ata_port_dbg(ap, "external port, not enabling LPM\n");
|
||||
return;
|
||||
}
|
||||
|
||||
/* If no LPM states are supported by the HBA, do not bother with LPM */
|
||||
if ((ap->host->flags & ATA_HOST_NO_PART) &&
|
||||
|
||||
Reference in new issue
Block a user