diff options
author | Jett Rink <jettrink@chromium.org> | 2019-11-19 09:50:46 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-22 20:23:52 +0000 |
commit | 044f15584125158c867f581004551b7d4e82b9ac (patch) | |
tree | 542ee6f18e96846283fcf0ccd69470547d24864b /test/build.mk | |
parent | 33991367ca56493c68dc2fd6937d7858a39d2811 (diff) | |
download | chrome-ec-044f15584125158c867f581004551b7d4e82b9ac.tar.gz |
usbc: fix storm tracker overflow issue
If there is no USB-C interrupt activity for 2^31 microseconds, then
there are more than ALERT_STORM_MAX_COUNT events within 2^31
microsecond (instead of ALERT_STORM_INTERVAL), then the interrupt
storm would incorrectly detect a storm and disable the port due
to incorrect math regarding 32-bit overflow.
BRANCH=octopus and all branches with original storm detection
(CL:1650484)
BUG=b:144369187
TEST=unit test in CL
Change-Id: I90b888ac092f81d151538d6018771fb32f8e9c39
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1925668
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/build.mk')
-rw-r--r-- | test/build.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/build.mk b/test/build.mk index 7a0b80f04a..4284374df0 100644 --- a/test/build.mk +++ b/test/build.mk @@ -69,6 +69,7 @@ test-list-host += thermal test-list-host += timer_dos test-list-host += uptime test-list-host += usb_common +test-list-host += usb_pd_int test-list-host += usb_pd test-list-host += usb_pd_giveback test-list-host += usb_pd_rev30 @@ -146,6 +147,7 @@ timer_calib-y=timer_calib.o timer_dos-y=timer_dos.o uptime-y=uptime.o usb_common-y=usb_common_test.o +usb_pd_int-y=usb_pd_int.o usb_pd-y=usb_pd.o usb_pd_giveback-y=usb_pd.o usb_pd_rev30-y=usb_pd.o |