spi: tegra210-quad: downgrade the log when fall back to PIO
Subsystems (4)
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
@@ -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
Friendly ping...
Best Regards,
Guixin Liu
Mark Brown
maintainerQuoted 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.
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
Jon Hunter
maintainerQuoted 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
Signed-off-by Guixin Liu <[email protected]>--- drivers/spi/spi-tegra210-quad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/spi/spi-tegra210-quad.c +0
-0
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
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
Signed-off-by Guixin Liu <[email protected]>---
drivers/spi/spi-tegra210-quad.c| 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/spi/spi-tegra210-quad.c +0
-0drivers/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