diff options
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index f7500ceb6a..123fbaa475 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -1487,9 +1487,11 @@ static int pd_send_request_msg(int port, int always_send_request) * If this port is not actively charging or we are not allowed to * request the max voltage, then select vSafe5V */ - pd_build_request(port, &rdo, &curr_limit, &supply_voltage, - charging && max_request_allowed ? - PD_REQUEST_MAX : PD_REQUEST_VSAFE5V); + pd_build_request(pd_get_src_cap_cnt(port), pd_get_src_caps(port), 0, + &rdo, &curr_limit, &supply_voltage, + charging && max_request_allowed ? + PD_REQUEST_MAX : PD_REQUEST_VSAFE5V, + get_max_request_mv()); if (!always_send_request) { /* Don't re-request the same voltage */ |