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 <subbaram@codeaurora.org>
This commit is contained in:
Subbaraman Narayanamurthy 2021-06-04 12:38:28 -07:00 committed by Subbaraman Narayanamurthy
parent f18f7394cd
commit 62a30b8944

View File

@ -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;
}