Skip to contentSkip to conversation

spi: tegra210-quad: downgrade the log when fall back to PIO

PATCH In review Guixin Liu 3 participants 6 messages Nov 27, 2025 – Dec 11, 2025

Subsystems (4)
lore
Share & tools
lore

Guixin Liu

author
#0 lore raw

PATCH 1/1 spi: tegra210-quad: downgrade the log when fall back to PIO

When the machine boots using ACPI, Tegra cannot use DMA and falls back to PIO. In this case, logging these messages as "Error" may confuse users into thinking it is an actual error; therefore, these two log messages should be downgraded to "Info" level.

---
 drivers/spi/spi-tegra210-quad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-tegra210-quad.c +2 -2
index 3be7499db21e..2189904b931d 100644
@@ -823,8 +823,8 @@ static int tegra_qspi_init_dma(struct tegra_qspi *tqspi)
 	tegra_qspi_deinit_dma(tqspi);
 
 	if (err != -EPROBE_DEFER) {
-		dev_err(tqspi->dev, "cannot use DMA: %d\n", err);
-		dev_err(tqspi->dev, "falling back to PIO\n");
+		dev_info(tqspi->dev, "cannot use DMA: %d\n", err);
+		dev_info(tqspi->dev, "falling back to PIO\n");
 		return 0;
 	}
 
Signature · 1 line
2.43.0
maintainer
#2 lore raw
Quoted 1 line · Guixin Liu

Friendly ping...

Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend conferences and so on so unless there is some reason for urgency (like critical bug fixes) please allow at least a couple of weeks for review. If there have been review comments then people may be waiting for those to be addressed.

Sending content free pings adds to the mail volume (if they are seen at all) which is often the problem and since they can't be reviewed directly if something has gone wrong you'll have to resend the patches anyway, so sending again is generally a better approach though there are some other maintainers who like them - if in doubt look at how patches for the subsystem are normally handled.

author
#3 lore raw
Quoted 8 lines · Mark Brown
Quoted 1 line · Guixin Liu

Friendly ping...

Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend conferences and so on so unless there is some reason for urgency (like critical bug fixes) please allow at least a couple of weeks for review. If there have been review comments then people may be waiting for those to be addressed.

Quoted 6 lines

Sending content free pings adds to the mail volume (if they are seen at all) which is often the problem and since they can't be reviewed directly if something has gone wrong you'll have to resend the patches anyway, so sending again is generally a better approach though there are some other maintainers who like them - if in doubt look at how patches for the subsystem are normally handled.

My bad, sorry for the trouble, and thanks for the advise.

Best Regards,
Guixin Liu

maintainer
#4 lore raw
In reply to Guixin Liu
Quoted 4 lines · Guixin Liu

When the machine boots using ACPI, Tegra cannot use DMA and falls back to PIO. In this case, logging these messages as "Error" may confuse users into thinking it is an actual error; therefore, these two log messages should be downgraded to "Info" level.

Which Tegra device are you using?

Quoted 10 lines
---
  drivers/spi/spi-tegra210-quad.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-tegra210-quad.c +0 -0
index 3be7499db21e..2189904b931d 100644

drivers/spi/spi-tegra210-quad.c static int tegra_qspi_init_dma(struct tegra_qspi *tqspi) · line 829

Quoted 9 lines
drivers/spi/spi-tegra210-quad.c +2 -2
@@ -823,8 +823,8 @@ static int tegra_qspi_init_dma(struct tegra_qspi *tqspi)
  	tegra_qspi_deinit_dma(tqspi);
 
  	if (err != -EPROBE_DEFER) {
-		dev_err(tqspi->dev, "cannot use DMA: %d\n", err);
-		dev_err(tqspi->dev, "falling back to PIO\n");
+		dev_info(tqspi->dev, "cannot use DMA: %d\n", err);
+		dev_info(tqspi->dev, "falling back to PIO\n");
  		return 0;
  	}

This change would potentially hide an actual case where the DMA initialisation fails when booting with device-tree.

Jon

Signature · 1 line
nvpublic
author
#5 lore raw
Quoted 8 lines · Jon Hunter
Quoted 4 lines · Guixin Liu

When the machine boots using ACPI, Tegra cannot use DMA and falls back to PIO. In this case, logging these messages as "Error" may confuse users into thinking it is an actual error; therefore, these two log messages should be downgraded to "Info" level.

Which Tegra device are you using?

Tegra194.
The error log are:
    tegra-i2c NVDA0301:00 cannot use DMA: -19
    tegra-i2c NVDA0301:00 failling back to PIO

Quoted 23 lines
Quoted 11 lines

---
  drivers/spi/spi-tegra210-quad.c | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-tegra210-quad.c +0 -0
index 3be7499db21e..2189904b931d 100644

drivers/spi/spi-tegra210-quad.c static int tegra_qspi_init_dma(struct tegra_qspi · line 829

Quoted 9 lines
drivers/spi/spi-tegra210-quad.c +2 -2
@@ -823,8 +823,8 @@ static int tegra_qspi_init_dma(struct tegra_qspi 
 *tqspi)
       tegra_qspi_deinit_dma(tqspi);
         if (err != -EPROBE_DEFER) {
-        dev_err(tqspi->dev, "cannot use DMA: %d\n", err);
-        dev_err(tqspi->dev, "falling back to PIO\n");
+        dev_info(tqspi->dev, "cannot use DMA: %d\n", err);
+        dev_info(tqspi->dev, "falling back to PIO\n");
           return 0;
       }

This change would potentially hide an actual case where the DMA initialisation fails when booting with device-tree.

Quoted 2 lines

Jon

Could we downgrade this to warning? This will not potentially hide an actual DMA fail case, and also tell users that we can still work, don't worry.

Best Regards,
Guixin Liu