public inbox for linux-spi@vger.kernel.org
 help / color / mirror / Atom feed
From: Guixin Liu <kanie@linux.alibaba.com>
To: Jon Hunter <jonathanh@nvidia.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	Sowjanya Komatineni <skomatineni@nvidia.com>,
	Laxman Dewangan <ldewangan@nvidia.com>,
	Mark Brown <broonie@kernel.org>
Cc: linux-tegra@vger.kernel.org, linux-spi@vger.kernel.org
Subject: Re: [PATCH] spi: tegra210-quad: downgrade the log when fall back to PIO
Date: Thu, 11 Dec 2025 11:44:49 +0800	[thread overview]
Message-ID: <969efdcd-567e-4b4a-bfe5-d75bdbd37208@linux.alibaba.com> (raw)
In-Reply-To: <e2b2288e-e8fb-484e-9675-39a0d14441fa@nvidia.com>



在 2025/12/10 12:24, Jon Hunter 写道:
>
> On 27/11/2025 13:02, Guixin Liu wrote:
>> 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
>
>> Signed-off-by: Guixin Liu <kanie@linux.alibaba.com>
>> ---
>>   drivers/spi/spi-tegra210-quad.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/spi/spi-tegra210-quad.c 
>> b/drivers/spi/spi-tegra210-quad.c
>> index 3be7499db21e..2189904b931d 100644
>> --- a/drivers/spi/spi-tegra210-quad.c
>> +++ b/drivers/spi/spi-tegra210-quad.c
>> @@ -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
>
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


      reply	other threads:[~2025-12-11  3:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-27 13:02 [PATCH] spi: tegra210-quad: downgrade the log when fall back to PIO Guixin Liu
2025-12-04  1:46 ` Guixin Liu
2025-12-04 12:33   ` Mark Brown
2025-12-05  2:14     ` Guixin Liu
2025-12-10  4:24 ` Jon Hunter
2025-12-11  3:44   ` Guixin Liu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=969efdcd-567e-4b4a-bfe5-d75bdbd37208@linux.alibaba.com \
    --to=kanie@linux.alibaba.com \
    --cc=broonie@kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=ldewangan@nvidia.com \
    --cc=linux-spi@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=skomatineni@nvidia.com \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox