Skip to content

Commit 91d75a5

Browse files
danvetjnikula
authored andcommitted
libata: Downgrade unsupported feature warnings to notifications
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8032 Signed-off-by: Chris Wilson <[email protected]> Cc: Petri Latvala <[email protected]> [danvet: Rebase] Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 3131d90 commit 91d75a5

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
@@ -2202,7 +2202,7 @@ static bool ata_identify_page_supported(struct ata_device *dev, u8 page)
22022202
* for drives which implement this ATA level or above.
22032203
*/
22042204
if (ata_id_major_version(dev->id) >= 10)
2205-
ata_dev_warn(dev,
2205+
ata_dev_notice(dev,
22062206
"ATA Identify Device Log not supported\n");
22072207
dev->horkage |= ATA_HORKAGE_NO_ID_DEV_LOG;
22082208
return false;
@@ -2274,7 +2274,7 @@ static void ata_dev_config_ncq_send_recv(struct ata_device *dev)
22742274
unsigned int err_mask;
22752275

22762276
if (!ata_log_supported(dev, ATA_LOG_NCQ_SEND_RECV)) {
2277-
ata_dev_warn(dev, "NCQ Send/Recv Log not supported\n");
2277+
ata_dev_notice(dev, "NCQ Send/Recv Log not supported\n");
22782278
return;
22792279
}
22802280
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV,
@@ -2299,8 +2299,8 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
22992299
unsigned int err_mask;
23002300

23012301
if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
2302-
ata_dev_warn(dev,
2303-
"NCQ Send/Recv Log not supported\n");
2302+
ata_dev_notice(dev,
2303+
"NCQ Send/Recv Log not supported\n");
23042304
return;
23052305
}
23062306
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
@@ -2953,14 +2953,14 @@ int ata_dev_configure(struct ata_device *dev)
29532953
if (ata_id_is_cfa(id)) {
29542954
/* CPRM may make this media unusable */
29552955
if (id[ATA_ID_CFA_KEY_MGMT] & 1)
2956-
ata_dev_warn(dev,
2956+
ata_dev_notice(dev,
29572957
"supports DRM functions and may not be fully accessible\n");
29582958
snprintf(revbuf, 7, "CFA");
29592959
} else {
29602960
snprintf(revbuf, 7, "ATA-%d", ata_id_major_version(id));
29612961
/* Warn the user if the device has TPM extensions */
29622962
if (ata_id_has_tpm(id))
2963-
ata_dev_warn(dev,
2963+
ata_dev_notice(dev,
29642964
"supports DRM functions and may not be fully accessible\n");
29652965
}
29662966

@@ -3115,8 +3115,8 @@ int ata_dev_configure(struct ata_device *dev)
31153115
}
31163116

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

31223122
return 0;

0 commit comments

Comments
 (0)