Skip to content

Commit f08b827

Browse files
danvetjlahtine-intel
authored andcommitted
libata: Downgrade unsupported feature warnings to notifications
References: https://gitlab.freedesktop.org/drm/intel/-/issues/8032 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 750c268 commit f08b827

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
@@ -2042,7 +2042,7 @@ static bool ata_identify_page_supported(struct ata_device *dev, u8 page)
20422042
* for drives which implement this ATA level or above.
20432043
*/
20442044
if (ata_id_major_version(dev->id) >= 10)
2045-
ata_dev_warn(dev,
2045+
ata_dev_notice(dev,
20462046
"ATA Identify Device Log not supported\n");
20472047
dev->horkage |= ATA_HORKAGE_NO_ID_DEV_LOG;
20482048
return false;
@@ -2114,7 +2114,7 @@ static void ata_dev_config_ncq_send_recv(struct ata_device *dev)
21142114
unsigned int err_mask;
21152115

21162116
if (!ata_log_supported(dev, ATA_LOG_NCQ_SEND_RECV)) {
2117-
ata_dev_warn(dev, "NCQ Send/Recv Log not supported\n");
2117+
ata_dev_notice(dev, "NCQ Send/Recv Log not supported\n");
21182118
return;
21192119
}
21202120
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_SEND_RECV,
@@ -2139,8 +2139,8 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
21392139
unsigned int err_mask;
21402140

21412141
if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
2142-
ata_dev_warn(dev,
2143-
"NCQ Send/Recv Log not supported\n");
2142+
ata_dev_notice(dev,
2143+
"NCQ Send/Recv Log not supported\n");
21442144
return;
21452145
}
21462146
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
@@ -2659,14 +2659,14 @@ int ata_dev_configure(struct ata_device *dev)
26592659
if (ata_id_is_cfa(id)) {
26602660
/* CPRM may make this media unusable */
26612661
if (id[ATA_ID_CFA_KEY_MGMT] & 1)
2662-
ata_dev_warn(dev,
2662+
ata_dev_notice(dev,
26632663
"supports DRM functions and may not be fully accessible\n");
26642664
snprintf(revbuf, 7, "CFA");
26652665
} else {
26662666
snprintf(revbuf, 7, "ATA-%d", ata_id_major_version(id));
26672667
/* Warn the user if the device has TPM extensions */
26682668
if (ata_id_has_tpm(id))
2669-
ata_dev_warn(dev,
2669+
ata_dev_notice(dev,
26702670
"supports DRM functions and may not be fully accessible\n");
26712671
}
26722672

@@ -2820,8 +2820,8 @@ int ata_dev_configure(struct ata_device *dev)
28202820
}
28212821

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

28272827
return 0;

0 commit comments

Comments
 (0)