aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-02-10 12:14:45 +0900
committerMark Brown <broonie@kernel.org>2020-02-12 23:52:26 +0000
commit5d9fa03e6c3514266fa94851ab1b6dd6e0595a13 (patch)
treec776f2fb63133e6662ec880a256843189a503fe2 /Documentation/devicetree
parentASoC: soc-pcm: move soc_pcm_close() next to soc_pcm_open() (diff)
downloadwireguard-linux-5d9fa03e6c3514266fa94851ab1b6dd6e0595a13.tar.xz
wireguard-linux-5d9fa03e6c3514266fa94851ab1b6dd6e0595a13.zip
ASoC: soc-pcm: tidyup soc_pcm_open() order
soc_pcm_open() operation order is not good. At first, soc_pcm_open() operation order is 1) CPU DAI startup 2) Component open 3) Codec DAI startup 4) rtd startup But here, 2) will call try_module_get() if component has module_get_upon_open flags. This means 1) CPU DAI startup will be operated *before* its module was loaded. DAI should be called *after* Component. Second, soc_pcm_close() operation order is 1) CPU DAI shutdown 2) Codec DAI shutdown 3) rtd shutdown 4) Component close soc_pcm_open() and soc_pcm_close() are paired function, but, its operation order is unbalance. This patch tidyup soc_pcm_open() order to Component -> rtd -> DAI. This is one of prepare for cleanup soc-pcm-open() Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/871rr3cext.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions