diff options
author | Abhishek Pandit-Subedi <abhishekpandit@chromium.org> | 2024-12-13 15:35:45 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-24 08:56:05 +0100 |
commit | 5399a1bac6a8f67eb180ac900641c1836cc3c0dd (patch) | |
tree | 7264e0988be03ec8db7775f583162b5e198aab61 /drivers/usb | |
parent | 183b194d8fb62694e81c18e1faec9ad418f952e3 (diff) | |
download | linux-stable-5399a1bac6a8f67eb180ac900641c1836cc3c0dd.tar.gz linux-stable-5399a1bac6a8f67eb180ac900641c1836cc3c0dd.tar.bz2 linux-stable-5399a1bac6a8f67eb180ac900641c1836cc3c0dd.zip |
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/typec/altmodes/displayport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/typec/altmodes/displayport.c b/drivers/usb/typec/altmodes/displayport.c index 3245e03d59e6..ac84a6d64c2f 100644 --- a/drivers/usb/typec/altmodes/displayport.c +++ b/drivers/usb/typec/altmodes/displayport.c @@ -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); |