From 5d7d9d76f643eda04f135092af614e39b9cce36b Mon Sep 17 00:00:00 2001 From: Fenglin Wu Date: Tue, 27 Jul 2021 15:43:26 +0800 Subject: [PATCH] input: qcom-hv-haptics: ignore pattern_src when checking hBoost ready Commit b610aa2d70a3 ("input: qcom-hv-haptics: Ignore checking HBoost status when SWR is playing") is added to ignore checking hBoost ready status when triggering a non-FIFO play with SWR playing in the background. This should be also applicable when triggering a FIFO play, so remove the pattern_src check as the HBoost should be always ready when triggering the play with SWR playing in the background. Change-Id: If3d5ff7138e189c81991775d7814229c4d0e8c0a Signed-off-by: Fenglin Wu --- drivers/input/misc/qcom-hv-haptics.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/input/misc/qcom-hv-haptics.c b/drivers/input/misc/qcom-hv-haptics.c index 6c328798f23d..6efb2322b0ad 100644 --- a/drivers/input/misc/qcom-hv-haptics.c +++ b/drivers/input/misc/qcom-hv-haptics.c @@ -1357,13 +1357,11 @@ static int haptics_wait_hboost_ready(struct haptics_chip *chip) return 0; /* - * If the coming request is not FIFO play and there is - * already a SWR play in the background, then HBoost will - * be kept as on always hence no need to wait its ready. + * If there is already a SWR play in the background, then HBoost + * will be kept as on hence no need to wait its ready. */ mutex_lock(&chip->play.lock); - if (chip->play.pattern_src != FIFO && - is_swr_play_enabled(chip)) { + if (is_swr_play_enabled(chip)) { dev_dbg(chip->dev, "Ignore waiting hBoost when SWR play is in progress\n"); mutex_unlock(&chip->play.lock); return 0;