mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 01:21:49 +00:00
Record what current limit we set when we act as a source and when we are changing it. The change should be backward-compatible as older EC will return 0 in `current_max` when their role is PD_ROLE_SOURCE while newer firmware will set the actual limit. BRANCH=none BUG=chrome-os-partner:56110 TEST=manual: on Kevin, plug and unplug various devices on the 2 ports, and dump the values with 'ectool usbpdpower'. Change-Id: I8e78663f3196b1b81c2235ed8642da0638bed649 Reviewed-on: https://chromium-review.googlesource.com/375918 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
166 KiB
166 KiB