diff options
author | Neil Armstrong <[email protected]> | 2023-06-26 18:52:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-07-25 17:39:26 +0200 |
commit | 71c47ad8920ef19d6545202191252a50c03aca30 (patch) | |
tree | 58da921134799e54dd017fcd55c0b7baeff96cce /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | c55afcbeaa7a6f4fffdbc999a9bf3f0b29a5186f (diff) |
usb: typec: ucsi: move typec_set_mode(TYPEC_STATE_SAFE) to ucsi_unregister_partner()
It's better to set TYPEC_STATE_SAFE mode from ucsi_unregister_partner()
instead of ucsi_partner_change(), ucsi_unregister_partner() is always
when the partner disconnects.
Fixes: 25a2bc21c863 ("usb: typec: ucsi: call typec_set_mode on non-altmode partner change")
Suggested-by: Heikki Krogerus <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/20230626-topic-sm8550-usb-c-audio-fixup-v1-1-bc72fddf3f42@linaro.org
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions