diff options
Diffstat (limited to 'common/usb_pd_protocol.c')
-rw-r--r-- | common/usb_pd_protocol.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 23aae650c0..28389b274f 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -904,14 +904,13 @@ static void handle_ctrl_request(int port, uint16_t head, /* Do nothing, assume this is a redundant PD_RDY */ } else if (pd[port].power_role == PD_ROLE_SINK) { set_state(port, PD_STATE_SNK_READY); + pd_set_input_current_limit(port, pd[port].curr_limit, + pd[port].supply_voltage); #ifdef CONFIG_CHARGE_MANAGER /* Set ceiling based on what's negotiated */ charge_manager_set_ceil(port, CEIL_REQUESTOR_PD, pd[port].curr_limit); -#else - pd_set_input_current_limit(port, pd[port].curr_limit, - pd[port].supply_voltage); #endif } break; |