Commit 89531b68 authored by Niklas Cassel's avatar Niklas Cassel Committed by Damien Le Moal
Browse files

ata: libata: Add DIPM and HIPM to ata_dev_print_features() early return



ata_dev_print_features() is supposed to return early and not print anything
if there are no features supported.

However, commit b1f5af54 ("ata: libata-core: Advertize device support
for DIPM and HIPM features") added additional features to
ata_dev_print_features() without updating the early return conditional.

Add the missing features to the early return conditional.

Fixes: b1f5af54 ("ata: libata-core: Advertize device support for DIPM and HIPM features")
Signed-off-by: default avatarNiklas Cassel <cassel@kernel.org>
Tested-by: default avatarWolf <wolf@yoxt.cc>
Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
parent a6bee5e5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2872,7 +2872,8 @@ static void ata_dev_config_lpm(struct ata_device *dev)

static void ata_dev_print_features(struct ata_device *dev)
{
	if (!(dev->flags & ATA_DFLAG_FEATURES_MASK) && !dev->cpr_log)
	if (!(dev->flags & ATA_DFLAG_FEATURES_MASK) && !dev->cpr_log &&
	    !ata_id_has_hipm(dev->id) && !ata_id_has_dipm(dev->id))
		return;

	ata_dev_info(dev,