summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTommy Chung <tommy.chung@quanta.corp-partner.google.com>2023-04-21 15:03:33 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-24 02:13:11 +0000
commit236a3419e6f0c9599c66ac0610d7914a70ada848 (patch)
tree2831816de0699ebcec8fd67a9e39c84478ad46c8
parent3693fe33b5748bdc777457a4294a76d8ca0c69f9 (diff)
downloadchrome-ec-236a3419e6f0c9599c66ac0610d7914a70ada848.tar.gz
yavilla: Placate watchdog after receiving dp_attention
This follows CL:4388314 to fix watchdog reset when HPD issued in short time by some peripheral display docks. BUG=none BRANCH=none TEST=make sure system won't reset under condition described above. Change-Id: Ief318cb7e9037d5b9c083af9cd2f794638aab247 Signed-off-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4458711 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Devin Lu <devin.lu@quantatw.com>
-rw-r--r--zephyr/program/nissa/yavilla/src/usbc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/program/nissa/yavilla/src/usbc.c b/zephyr/program/nissa/yavilla/src/usbc.c
index 07d924e000..c9950ae73b 100644
--- a/zephyr/program/nissa/yavilla/src/usbc.c
+++ b/zephyr/program/nissa/yavilla/src/usbc.c
@@ -12,6 +12,7 @@
#include "hooks.h"
#include "system.h"
#include "usb_mux.h"
+#include "watchdog.h"
#include <zephyr/logging/log.h>
@@ -316,6 +317,15 @@ void board_process_pd_alert(int port)
*/
if (!gpio_pin_get_dt(GPIO_DT_FROM_NODELABEL(gpio_usb_c1_int_odl)))
schedule_deferred_pd_interrupt(port);
+
+ /*
+ * b:273208597: There are some peripheral display docks will
+ * issue HPDs in the short time. TCPM must wake up pd_task
+ * continually to service the events. They may cause the
+ * watchdog to reset. This patch placates watchdog after
+ * receiving dp_attention.
+ */
+ watchdog_reload();
}
int pd_snk_is_vbus_provided(int port)