Message ID | 20240618153537.2687621-12-cassel@kernel.org |
---|---|
State | New |
Headers | show |
Series | Assign the unique id used for printing earlier | expand |
On 6/19/24 00:35, Niklas Cassel wrote: > Add a debug print that tells us if LPM is not getting enabled because the > port is external. > > Signed-off-by: Niklas Cassel <cassel@kernel.org> Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 07d66d2c5f0d..d79e46a59df9 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -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; + } /* user modified policy via module param */ if (mobile_lpm_policy != -1) {
Add a debug print that tells us if LPM is not getting enabled because the port is external. Signed-off-by: Niklas Cassel <cassel@kernel.org> --- drivers/ata/ahci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)