public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: nvidia-gpu: use dev_info for timeout error
@ 2020-09-21 17:34 Ajay Gupta
  2020-09-21 18:08 ` Wolfram Sang
  0 siblings, 1 reply; 3+ messages in thread
From: Ajay Gupta @ 2020-09-21 17:34 UTC (permalink / raw)
  To: wsa; +Cc: linux-i2c, Ajay Gupta

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-21 19:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-21 17:34 [PATCH] i2c: nvidia-gpu: use dev_info for timeout error Ajay Gupta
2020-09-21 18:08 ` Wolfram Sang
2020-09-21 19:36   ` Ajay Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox