diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2022-07-08 17:00:45 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-19 02:25:27 +0000 |
commit | 4eed38ea2d34c19934334c205ae0328067d0228b (patch) | |
tree | c0c925ab9b578f2b85afc43971842aaf63623156 | |
parent | 573f2f4020d93b93f05e9b5ad01dad81c05ba983 (diff) | |
download | chrome-ec-4eed38ea2d34c19934334c205ae0328067d0228b.tar.gz |
usb_pd_dpm: fix sink_max_pdo_requested
The operator should be a '&' for testing if the port provides
max current of the PDO.
BUG=b:236430560
TEST=pass TDA.2.3.1 POW SRC LOAD PC sub item: Tester could not
increase the load current, Please check the UUT VBUS voltage
behavior in the capture
BRANCH=none
Change-Id: I8e7b4662550be2eab84adcffe2bc68923e66347c
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3752433
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Tested-by: Eric Yilun Lin <yllin@google.com>
-rw-r--r-- | common/usbc/usb_pd_dpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usbc/usb_pd_dpm.c b/common/usbc/usb_pd_dpm.c index 793206b623..91b4286d59 100644 --- a/common/usbc/usb_pd_dpm.c +++ b/common/usbc/usb_pd_dpm.c @@ -822,7 +822,7 @@ void dpm_evaluate_request_rdo(int port, uint32_t rdo) return; op_ma = (rdo >> 10) & 0x3FF; - if ((BIT(port) && sink_max_pdo_requested) && (op_ma <= 150)) { + if ((BIT(port) & sink_max_pdo_requested) && (op_ma <= 150)) { /* * sink_max_pdo_requested will be set when we get 5V/3A sink * capability from port partner. If port partner only request |