diff options
| author | Amit Sunil Dhamne <[email protected]> | 2025-08-15 18:31:52 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-08-17 10:14:55 +0000 |
| commit | a381c6d6f646226924809d0ad01a9465786da463 (patch) | |
| tree | 06d01fb9e5c594474f1f5383bcb5c892db9c572d /scripts/make_fit.py | |
| parent | usb: typec: maxim_contaminant: disable low power mode when reading comparator... (diff) | |
| download | kernel-a381c6d6f646226924809d0ad01a9465786da463.tar.gz kernel-a381c6d6f646226924809d0ad01a9465786da463.zip | |
usb: typec: maxim_contaminant: re-enable cc toggle if cc is open and port is clean
Presently in `max_contaminant_is_contaminant()` if there's no
contaminant detected previously, CC is open & stopped toggling and no
contaminant is currently present, TCPC.RC would be programmed to do DRP
toggling. However, it didn't actively look for a connection. This would
lead to Type-C not detect *any* new connections. Hence, in the above
situation, re-enable toggling & program TCPC to look for a new
connection.
Also, return early if TCPC was looking for connection as this indicates
TCPC has neither detected a potential connection nor a change in
contaminant state.
In addition, once dry detection is complete (port is dry), restart
toggling.
Fixes: 02b332a06397e ("usb: typec: maxim_contaminant: Implement check_contaminant callback")
Cc: stable <[email protected]>
Signed-off-by: Amit Sunil Dhamne <[email protected]>
Reviewed-by: Badhri Jagan Sridharan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions
