mbox series

[v3,0/4] usb: typec: ucsi: allow retry to find role switch

Message ID 1649843891-15554-1-git-send-email-quic_linyyuan@quicinc.com
Headers show
Series usb: typec: ucsi: allow retry to find role switch | expand

Message

Linyu Yuan April 13, 2022, 9:58 a.m. UTC
when one role switch module built as module, it may load later then
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.

Linyu Yuan (4):
  usb: typec: ucsi: set con->port to NULL when register port fail
  usb: typec: ucsi: add a common function ucsi_unregister_connectors()
  usb: typec: ucsi: do not allocate one extra unused connector
  usb: typec: ucsi: retry find role swithch when module load late

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