diff options
author | Adam Thomson <[email protected]> | 2018-09-26 16:23:52 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-09-28 15:08:09 +0200 |
commit | ea3b4d5523bc8d3e955075d3716af536d6212cc7 (patch) | |
tree | 871df18f9f4c81f2ba3c0e0bdef14744b43998c6 /scripts/bpf_helpers_doc.py | |
parent | 40326e857c57a0095d3f9d72c14cb13aef4ca564 (diff) |
usb: typec: fusb302: Resolve fixed power role contract setup
When the controller is configured for a fixed power role (Source
only or Sink only), attach does not proceed within the TCPM state
machine as there is no CC event generated by this driver to update
the CC line status.
To rectify this, when CC is configured as Source or Sink we now
make use of the hardware's automatic fixed Source or Sink
toggling mechanism, which detects attaches in the same way as for
DRP toggling. In this way the result of toggling is handled in the
same way by the 'fusb302_handle_togdone()' function, and CC events
are generated as expected for TCPM allowing a contract to be
established.
Signed-off-by: Adam Thomson <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions