Skip to content

Commit

Permalink
libata: Downgrade unsupported feature warnings to notifications
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Wilson <[email protected]>
Cc: Petri Latvala <[email protected]>
  • Loading branch information
ickle committed Jul 20, 2020
1 parent 9eb3397 commit 5d4c962
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,7 @@ static bool ata_identify_page_supported(struct ata_device *dev, u8 page)
unsigned int err, i;

if (!ata_log_supported(dev, ATA_LOG_IDENTIFY_DEVICE)) {
ata_dev_warn(dev, "ATA Identify Device Log not supported\n");
ata_dev_notice(dev, "ATA Identify Device Log not supported\n");
return false;
}

Expand Down Expand Up @@ -2122,7 +2122,7 @@ static void ata_dev_config_ncq_send_recv(struct ata_device *dev)
unsigned int err_mask;

if (!ata_log_supported(dev, ATA_LOG_NCQ_SEND_RECV)) {
ata_dev_warn(dev, "NCQ Send/Recv Log not supported\n");
ata_dev_notice(dev, "NCQ Send/Recv Log not supported\n");
return;
}
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV,
Expand Down Expand Up @@ -2151,8 +2151,8 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
unsigned int err_mask;

if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
ata_dev_warn(dev,
"NCQ Send/Recv Log not supported\n");
ata_dev_notice(dev,
"NCQ Send/Recv Log not supported\n");
return;
}
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
Expand Down Expand Up @@ -2484,14 +2484,14 @@ int ata_dev_configure(struct ata_device *dev)
if (ata_id_is_cfa(id)) {
/* CPRM may make this media unusable */
if (id[ATA_ID_CFA_KEY_MGMT] & 1)
ata_dev_warn(dev,
ata_dev_notice(dev,
"supports DRM functions and may not be fully accessible\n");
snprintf(revbuf, 7, "CFA");
} else {
snprintf(revbuf, 7, "ATA-%d", ata_id_major_version(id));
/* Warn the user if the device has TPM extensions */
if (ata_id_has_tpm(id))
ata_dev_warn(dev,
ata_dev_notice(dev,
"supports DRM functions and may not be fully accessible\n");
}

Expand Down Expand Up @@ -2707,8 +2707,8 @@ int ata_dev_configure(struct ata_device *dev)
}

if ((dev->horkage & ATA_HORKAGE_FIRMWARE_WARN) && print_info) {
ata_dev_warn(dev, "WARNING: device requires firmware update to be fully functional\n");
ata_dev_warn(dev, " contact the vendor or visit http://ata.wiki.kernel.org\n");
ata_dev_notice(dev, "WARNING: device requires firmware update to be fully functional\n");
ata_dev_notice(dev, " contact the vendor or visit http://ata.wiki.kernel.org\n");
}

return 0;
Expand Down

0 comments on commit 5d4c962

Please sign in to comment.