From cf0c734e84b7dcf995ddc0b08d9b1b57edc86a7c Mon Sep 17 00:00:00 2001 From: Bruce Levy Date: Thu, 2 May 2019 11:17:44 -0700 Subject: [PATCH] Revert "Revert "dsp: voice_mhi: use modified mhi sync/put api"" This reverts commit 952f3d7864cf9ac7eb23e9ad4374742ffe89adc2. This revert of a revert is needed for supporting PCIE changes. Change-Id: Ib12e4114355b15c52225ff000ed59fb1889aab4d --- dsp/voice_mhi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dsp/voice_mhi.c b/dsp/voice_mhi.c index 87572efa7e76..69942b24807c 100644 --- a/dsp/voice_mhi.c +++ b/dsp/voice_mhi.c @@ -228,7 +228,8 @@ int voice_mhi_start(void) goto done; } if (voice_mhi_lcl.vote_count == 0) { - ret = mhi_device_get_sync(voice_mhi_lcl.mhi_dev); + ret = mhi_device_get_sync(voice_mhi_lcl.mhi_dev, + MHI_VOTE_DEVICE); if (ret) { pr_err("%s: mhi_device_get_sync failed\n", __func__); @@ -269,7 +270,7 @@ int voice_mhi_end(void) } if (voice_mhi_lcl.vote_count == 1) - mhi_device_put(voice_mhi_lcl.mhi_dev); + mhi_device_put(voice_mhi_lcl.mhi_dev, MHI_VOTE_DEVICE); voice_mhi_lcl.vote_count--; } mutex_unlock(&voice_mhi_lcl.mutex);