summaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>2017-08-22 16:45:53 +0530
committerMark Brown <broonie@kernel.org>2017-08-23 11:55:18 +0100
commit7b992c24de78a206b3abd07192686d2d5db5012c (patch)
tree20af735de3da1b85e1d935b307a421d16a942346 /lib/memory-notifier-error-inject.c
parentc360e0c3ab8ef8d0fd6b5501a407b9a2be4f204d (diff)
downloadop-kernel-dev-7b992c24de78a206b3abd07192686d2d5db5012c.zip
op-kernel-dev-7b992c24de78a206b3abd07192686d2d5db5012c.tar.gz
ASoC: Intel: Skylake: Fix DSP core ref count for init failure
During dsp init failure, the ref count is not incremented and dsp is powered down. But as the skl driver calls put_core for the init failure it decrements the dsp core ref count and ref count becomes unbalanced. This results in dsp core powered up in further runtime suspend/resume cycles and never powered down. So increment the ref count before dsp core powerup and for any failure, decrement in put_core will be balanced. Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Acked-By: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud