mbox series

[v7,0/2] usb: typec: ucsi: allow retry to find role switch

Message ID 1650881886-25530-1-git-send-email-quic_linyyuan@quicinc.com (mailing list archive)
Headers show
Series usb: typec: ucsi: allow retry to find role switch | expand

Message

Linyu Yuan April 25, 2022, 10:18 a.m. UTC
when one role switch module built as module, it may load late than
ucsi, this change series allow retry from ucsi.

v2: improve ucsi_connector_clean() to cover all condition,
    and add one new change to avoid allocate one unused connector.

v3: fix comment from ucsi maintainer.

v4: fix review comment from Heikki Krogerus,
    merge patch#1 and patch#2 in V3 into one patch,
    add counter for retry limit,
    and some other minor fix.

v5: only update commit description of two patches

v6: fix review comment from Heikki Krogerus,
    merge patch#1 and patch#2 in v5 into one change,
    remove con->port = NULL; which is not needed.
    add Revieved-by tag for patch#3 in v5.

v7: change break condition in ucsi_unregister_connectors()

Linyu Yuan (2):
  usb: typec: ucsi: add a common function ucsi_unregister_connectors()
  usb: typec: ucsi: Wait for the USB role switches

 drivers/usb/typec/ucsi/ucsi.c | 85 +++++++++++++++++++++++++------------------
 drivers/usb/typec/ucsi/ucsi.h |  6 ++-
 2 files changed, 54 insertions(+), 37 deletions(-)