From 42ebfa74b90679a79e4c2c42d2371d027ffb4ff4 Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Thu, 25 Jul 2024 14:32:09 -0700 Subject: [PATCH] vibrator: Update polling timeout to 50ms Update the polling timeout to match that of main vibrator HAL. The polling timeout is too short, and will cause reset logic to run if the bus is busy. Bug: 348364432 Flag: EXEMPT bugfix Test: atest PtsVibratorHalTestSuite \ PtsHapticsTestCases \ VibratorHalCs40l26TestSuite \ VtsHalVibratorManagerTargetTest \ VtsHalVibratorTargetTest \ CtsVibratorTestCases Change-Id: I31dac8f1693eda8f1a5bac8420aaa7c0d11781fa --- vibrator/cs40l26/Vibrator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vibrator/cs40l26/Vibrator.cpp b/vibrator/cs40l26/Vibrator.cpp index b3ce88e..d045bce 100644 --- a/vibrator/cs40l26/Vibrator.cpp +++ b/vibrator/cs40l26/Vibrator.cpp @@ -58,7 +58,7 @@ static constexpr int8_t MAX_PAUSE_TIMING_ERROR_MS = 1; // ALERT Irq Handling static constexpr uint32_t MAX_TIME_MS = UINT16_MAX; static constexpr auto ASYNC_COMPLETION_TIMEOUT = std::chrono::milliseconds(100); -static constexpr auto POLLING_TIMEOUT = 20; +static constexpr auto POLLING_TIMEOUT = 50; static constexpr int32_t COMPOSE_DELAY_MAX_MS = 10000; /* nsections is 8 bits. Need to preserve 1 section for the first delay before the first effect. */