mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 11:37:06 +02:00
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:
parent
f18f7394cd
commit
62a30b8944
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user