summaryrefslogtreecommitdiff
path: root/board/samus_pd
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2016-08-10 15:09:21 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-24 17:40:38 -0700
commitc5bd6d98b9c0799b2c7409d95af980fcdc1e44ea (patch)
tree11ee40a4235280cdfd6358f4d09e6e8cd564e49b /board/samus_pd
parent0dd5175c85775fdae7733cea2743c51fa6431380 (diff)
downloadchrome-ec-c5bd6d98b9c0799b2c7409d95af980fcdc1e44ea.tar.gz
charger: Send host event after charge info is updated.
When the charger is detached, the host event would sometimes be sent before the charge info was updated, resulting in the host thinking that the charger was still connected. BUG=chrome-os-partner:55584 BRANCH=none TEST=Connected charger to kevin 15 times and verified that the icon was removed in 2-seconds or less. Change-Id: I1a4e4e0f7cc23010210570fc261da8308d8e8070 Reviewed-on: https://chromium-review.googlesource.com/367809 Commit-Ready: Wonjoon Lee <woojoo.lee@samsung.com> Tested-by: Sam Hurst <shurst@google.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/samus_pd')
-rw-r--r--board/samus_pd/usb_pd_policy.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/board/samus_pd/usb_pd_policy.c b/board/samus_pd/usb_pd_policy.c
index 7b51e3e38e..875234a9fb 100644
--- a/board/samus_pd/usb_pd_policy.c
+++ b/board/samus_pd/usb_pd_policy.c
@@ -87,9 +87,6 @@ void pd_set_input_current_limit(int port, uint32_t max_ma,
charge.current = max_ma;
charge.voltage = supply_voltage;
charge_manager_update_charge(CHARGE_SUPPLIER_PD, port, &charge);
-
- /* notify host of power info change */
- pd_send_host_event(PD_EVENT_POWER_CHANGE);
}
void typec_set_input_current_limit(int port, uint32_t max_ma,
@@ -99,9 +96,6 @@ void typec_set_input_current_limit(int port, uint32_t max_ma,
charge.current = max_ma;
charge.voltage = supply_voltage;
charge_manager_update_charge(CHARGE_SUPPLIER_TYPEC, port, &charge);
-
- /* notify host of power info change */
- pd_send_host_event(PD_EVENT_POWER_CHANGE);
}
int pd_snk_is_vbus_provided(int port)