summaryrefslogtreecommitdiff
path: root/util/signer
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-09-10 12:36:02 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-09-20 21:29:59 -0700
commitd5b9b8c12570a57def102d0039f0aef379582fb0 (patch)
tree378292bdfdfd502a32ba725300cf219b066bda73 /util/signer
parentfd3f9b9a304bb4838bd0b015981e1798b15552f6 (diff)
downloadchrome-ec-d5b9b8c12570a57def102d0039f0aef379582fb0.tar.gz
Make USB_PD_POWER_INFO detect inactive supplier
Currently, CMD_USB_PD_POWER_INFO does not report a supplier if the available current is 0. This causes a dedicated charger (a barrel jack adapter) to be ignored by the command if it's not the active supplier. This change allows a supplier which has 0 current to be reported by the command as long as there is no other supplier with positive current on the same port. With this change, the host can detect a BJ adapter's physical presence regardless of its charging status. In other words, a supplier with positive current always supersedes whatever supplier with zero current. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> BUG=chromium:841944,b:111667665,b:111777351 BRANCH=none TEST=Verify ectool usbpdpower 1 return 'Port 1: Disconnected' and 'Port 1: SNK (not charging)' without and with a BJ adapter connected respectively on Fizz. Change-Id: I22ba5f147209177c0c9cac87a123d4c3d0f2ec68 Reviewed-on: https://chromium-review.googlesource.com/1217607 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/signer')
0 files changed, 0 insertions, 0 deletions