mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
usb: typec: Print err when displayport fails to enter
Print the error reason for typec_altmode_enter so users can understand why displayport failed to enter. Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Benson Leung <bleung@chromium.org> Link: https://lore.kernel.org/r/20241213153543.v5.4.I6cff9d767b0f8ab6458d8940941e42c920902d49@changeid Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
183b194d8f
commit
5399a1bac6
|
|
@ -252,7 +252,7 @@ static void dp_altmode_work(struct work_struct *work)
|
|||
case DP_STATE_ENTER:
|
||||
ret = typec_altmode_enter(dp->alt, NULL);
|
||||
if (ret && ret != -EBUSY)
|
||||
dev_err(&dp->alt->dev, "failed to enter mode\n");
|
||||
dev_err(&dp->alt->dev, "failed to enter mode: %d\n", ret);
|
||||
break;
|
||||
case DP_STATE_ENTER_PRIME:
|
||||
ret = typec_cable_altmode_enter(dp->alt, TYPEC_PLUG_SOP_P, NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user