From 62a30b8944765389cb4c2df0896e0d5758d36cf4 Mon Sep 17 00:00:00 2001 From: Subbaraman Narayanamurthy Date: Fri, 4 Jun 2021 12:38:28 -0700 Subject: [PATCH] usb: typec: ucsi_glink: Change dev_err to dev_dbg in ucsi_qti_state_cb() When ucsi_qti_state_cb() is invoked for a SSR event, it is called twice when PDR is enabled. Because of that, error log is printed. This is because pmic_glink driver receives PDR notification followed by SSR notification. It is fine for the clients to receive both the notifications and take action or ignore it. Change dev_err to dev_dbg in ucsi_qti_state_cb() so that it is not taken for an error condition. Change-Id: I2799e3b17920ef88d434a63c06f9cbf6fc63fff9 Signed-off-by: Subbaraman Narayanamurthy --- drivers/usb/typec/ucsi/ucsi_glink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/typec/ucsi/ucsi_glink.c b/drivers/usb/typec/ucsi/ucsi_glink.c index a2db93800c12..f4f6a681e5c7 100644 --- a/drivers/usb/typec/ucsi/ucsi_glink.c +++ b/drivers/usb/typec/ucsi/ucsi_glink.c @@ -545,7 +545,7 @@ static void ucsi_qti_state_cb(void *priv, enum pmic_glink_state state) switch (state) { case PMIC_GLINK_STATE_DOWN: if (!udev->ucsi) { - dev_err(udev->dev, "ucsi is NULL\n"); + dev_dbg(udev->dev, "ucsi is NULL\n"); mutex_unlock(&udev->state_lock); return; }