Commit eb5d7ff
usb: typec: ucsi: Fix role swapping
All attempts to swap the roles timed out because the
completion was done without releasing the port lock. Fixing
that by releasing the lock before starting to wait for the
completion.
Link: https://lore.kernel.org/linux-usb/037de7ac-e210-bdf5-ec7a-8c0c88a0be20@gmail.com/
Fixes: ad74b86 ("usb: typec: ucsi: Preliminary support for alternate modes")
Cc: stable@vger.kernel.org
Reported-and-tested-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220405134824.68067-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent e25adcc commit eb5d7ff
1 file changed
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
958 | 958 | | |
959 | 959 | | |
960 | 960 | | |
| 961 | + | |
| 962 | + | |
961 | 963 | | |
962 | | - | |
963 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
964 | 968 | | |
965 | 969 | | |
966 | 970 | | |
967 | 971 | | |
968 | | - | |
| 972 | + | |
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| |||
996 | 1000 | | |
997 | 1001 | | |
998 | 1002 | | |
| 1003 | + | |
| 1004 | + | |
999 | 1005 | | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
1004 | 1010 | | |
1005 | 1011 | | |
1006 | 1012 | | |
| |||
0 commit comments