From: Ajay Gupta <ajaykuee@gmail.com>
To: wsa@the-dreams.de
Cc: linux-i2c@vger.kernel.org, Ajay Gupta <ajayg@nvidia.com>
Subject: [PATCH] i2c: nvidia-gpu: use dev_info for timeout error
Date: Mon, 21 Sep 2020 10:34:26 -0700 [thread overview]
Message-ID: <20200921173426.2636-1-ajayg@nvidia.com> (raw)
From: Ajay Gupta <ajayg@nvidia.com>
Timeout error may be seen due to missing i2c client such as
USB Type-C UCSI controller on some NVIDIA GPU card. Currently
we don't have a correct way to identify these cards.
Tools like Plymouth (splashscreen) doesn't like dev_err so
changing timeout status log to dev_info.
Bug information:
https://bugzilla.kernel.org/show_bug.cgi?id=206653
Signed-off-by: Ajay Gupta <ajayg@nvidia.com>
---
drivers/i2c/busses/i2c-nvidia-gpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-nvidia-gpu.c
index f480105000b8..17a8cefe5c45 100644
--- a/drivers/i2c/busses/i2c-nvidia-gpu.c
+++ b/drivers/i2c/busses/i2c-nvidia-gpu.c
@@ -85,7 +85,7 @@ static int gpu_i2c_check_status(struct gpu_i2c_dev *i2cd)
500, 1000 * USEC_PER_MSEC);
if (ret) {
- dev_err(i2cd->dev, "i2c timeout error %x\n", val);
+ dev_info(i2cd->dev, "i2c timeout error %x\n", val);
return -ETIMEDOUT;
}
--
2.17.1
next reply other threads:[~2020-09-21 17:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-21 17:34 Ajay Gupta [this message]
2020-09-21 18:08 ` [PATCH] i2c: nvidia-gpu: use dev_info for timeout error Wolfram Sang
2020-09-21 19:36 ` Ajay Gupta
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=20200921173426.2636-1-ajayg@nvidia.com \
--to=ajaykuee@gmail.com \
--cc=ajayg@nvidia.com \
--cc=linux-i2c@vger.kernel.org \
--cc=wsa@the-dreams.de \
/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