mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
b4ed6b51f3
Recently, for Intel platforms the "ignore_module_refcount" field was introduced for the component driver. In order to avoid a deadlock preventing the PCI modules from being removed even when the card was idle, the refcounts were not incremented for the device driver module during component probe. However, this change introduced a nasty side effect: the device driver module can be unloaded while a pcm stream is open. This patch proposes to change the field to be renamed as "module_get_upon_open". When this field is set, the module refcount should be incremented on pcm open amd decremented upon pcm close. This will enable modules to be removed when no PCM playback/capture happens and prevent removal when the component is actually in use. Also, align with the skylake component driver with the new name. Fixes: b450b878('ASoC: core: don't increase component module refcount unconditionally' Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> |
||
---|---|---|
.. | ||
bxt-sst.c | ||
cnl-sst-dsp.c | ||
cnl-sst-dsp.h | ||
cnl-sst.c | ||
Makefile | ||
skl-debug.c | ||
skl-i2s.h | ||
skl-messages.c | ||
skl-nhlt.c | ||
skl-nhlt.h | ||
skl-pcm.c | ||
skl-ssp-clk.c | ||
skl-ssp-clk.h | ||
skl-sst-cldma.c | ||
skl-sst-cldma.h | ||
skl-sst-dsp.c | ||
skl-sst-dsp.h | ||
skl-sst-ipc.c | ||
skl-sst-ipc.h | ||
skl-sst-utils.c | ||
skl-sst.c | ||
skl-topology.c | ||
skl-topology.h | ||
skl.c | ||
skl.h |