summaryrefslogtreecommitdiff
path: root/chip/stm32/gpio.c
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2019-11-19 09:50:46 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-26 17:23:00 +0000
commit8d1007b2c940c081729cbf43c1fbec857fc85fde (patch)
treeca32f5d1b23b98ec58eef359e857716a11b50a0f /chip/stm32/gpio.c
parent6e0dd622e2f4d83432f0b518b58cf99645097ab4 (diff)
downloadchrome-ec-8d1007b2c940c081729cbf43c1fbec857fc85fde.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. (Needed to remove tests for cherry-pick to branch) 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> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1931289 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/stm32/gpio.c')
0 files changed, 0 insertions, 0 deletions