Skip to content

Commit 1cb152f

Browse files
danvettursulin
authored andcommitted
libata: Downgrade unsupported feature warnings to notifications
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Petri Latvala <petri.latvala@intel.com> [danvet: Rebase] Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 58daf49 commit 1cb152f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/ata/libata-core.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ static bool ata_identify_page_supported(struct ata_device *dev, u8 page)
20372037
* for drives which implement this ATA level or above.
20382038
*/
20392039
if (ata_id_major_version(dev->id) >= 10)
2040-
ata_dev_warn(dev,
2040+
ata_dev_notice(dev,
20412041
"ATA Identify Device Log not supported\n");
20422042
dev->horkage |= ATA_HORKAGE_NO_ID_DEV_LOG;
20432043
return false;
@@ -2109,7 +2109,7 @@ static void ata_dev_config_ncq_send_recv(struct ata_device *dev)
21092109
unsigned int err_mask;
21102110

21112111
if (!ata_log_supported(dev, ATA_LOG_NCQ_SEND_RECV)) {
2112-
ata_dev_warn(dev, "NCQ Send/Recv Log not supported\n");
2112+
ata_dev_notice(dev, "NCQ Send/Recv Log not supported\n");
21132113
return;
21142114
}
21152115
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV,
@@ -2134,8 +2134,8 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
21342134
unsigned int err_mask;
21352135

21362136
if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
2137-
ata_dev_warn(dev,
2138-
"NCQ Send/Recv Log not supported\n");
2137+
ata_dev_notice(dev,
2138+
"NCQ Send/Recv Log not supported\n");
21392139
return;
21402140
}
21412141
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
@@ -2631,14 +2631,14 @@ int ata_dev_configure(struct ata_device *dev)
26312631
if (ata_id_is_cfa(id)) {
26322632
/* CPRM may make this media unusable */
26332633
if (id[ATA_ID_CFA_KEY_MGMT] & 1)
2634-
ata_dev_warn(dev,
2634+
ata_dev_notice(dev,
26352635
"supports DRM functions and may not be fully accessible\n");
26362636
snprintf(revbuf, 7, "CFA");
26372637
} else {
26382638
snprintf(revbuf, 7, "ATA-%d", ata_id_major_version(id));
26392639
/* Warn the user if the device has TPM extensions */
26402640
if (ata_id_has_tpm(id))
2641-
ata_dev_warn(dev,
2641+
ata_dev_notice(dev,
26422642
"supports DRM functions and may not be fully accessible\n");
26432643
}
26442644

@@ -2791,8 +2791,8 @@ int ata_dev_configure(struct ata_device *dev)
27912791
}
27922792

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

27982798
return 0;

0 commit comments

Comments
 (0)