Skip to contentSkip to conversation

usb: typec: displayport: Reduce noise from the driver

PATCH New Heikki Krogerus 1 participant 1 message Sep 28, 2020

Subsystems (3)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH 1/1 usb: typec: displayport: Reduce noise from the driver

It's not an error if the mode can't be entered because another mode is already active, so no longer printing an error message if that happens.

---
 drivers/usb/typec/altmodes/displayport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/typec/altmodes/displayport.c +1 -1
index 7b20073d7fc0a..e62e5e3da01e4 100644
@@ -190,7 +190,7 @@ static void dp_altmode_work(struct work_struct *work)
 	switch (dp->state) {
 	case DP_STATE_ENTER:
 		ret = typec_altmode_enter(dp->alt, NULL);
-		if (ret)
+		if (ret && ret != -EBUSY)
 			dev_err(&dp->alt->dev, "failed to enter mode\n");
 		break;
 	case DP_STATE_UPDATE:
Signature · 1 line
2.28.0