summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/peripheral_charger.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/peripheral_charger.c b/common/peripheral_charger.c
index 2faa315253..eeb2a4cf80 100644
--- a/common/peripheral_charger.c
+++ b/common/peripheral_charger.c
@@ -5,6 +5,7 @@
#include "atomic.h"
#include "common.h"
+#include "device_event.h"
#include "hooks.h"
#include "host_command.h"
#include "peripheral_charger.h"
@@ -320,6 +321,12 @@ void pchg_task(void *u)
pchg_run(ctx);
} while (queue_count(&ctx->events));
}
+ /*
+ * Send one host event for all ports. Currently PCHG supports
+ * only WLC but in the future other types (e.g. WPC Qi) should
+ * send different device events.
+ */
+ device_set_single_event(EC_DEVICE_EVENT_WLC);
task_wait_event(-1);
}
}