Commit 2ca443b
fwk: CCG6: set the active current limit before multi-port switching
When the EC processes a multi-port switch, the sink path is enabled
first, and then the input current limit for the active port is set.
This sequence can cause a lower power adapter to operate with a higher
input current limit , potentially triggering an OCP event.
To ensure the adapter operates within a safe operating current, the EC
should set the input current limit to the active one before enabling the
sink path or completing the multi-port switching.
BRANCH=fwk-main
BUG=https://app.clickup.com/t/86ev81hyn
TEST=The EC log will not print the AC off during the multi-port switching
Signed-off-by: Josh Tsai <Josh_Tsai@compal.com>
(cherry picked from commit b32f66864b8374b65e5f3206dd54272ab9e1b463)1 parent ea09e7a commit 2ca443b
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| |||
0 commit comments