diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2020-08-11 18:57:25 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-17 19:48:45 +0200 |
commit | 78013a1cf2971684775f6956d5666237ac53a1aa (patch) | |
tree | 438a7c05a66786f24c9b0bed98239bca9129eb8d /sound/soc/codecs/da7219.h | |
parent | ASoC: da7219: Move soft reset handling to codec level probe (diff) | |
download | linux-78013a1cf2971684775f6956d5666237ac53a1aa.tar.xz linux-78013a1cf2971684775f6956d5666237ac53a1aa.zip |
ASoC: da7219: Fix clock handling around codec level probe
Previously the driver would use devm_* related functions at
the codec level probe() to allocate clock resources for MCLK
and the DAI clocks exposed by the device. This caused issues
when registering clocks on a re-probe (no device level
remove/prove involved) as the devm_* resources were never
freed up so the clocks were still registered from the previous
codec level probe().
This commit updates the clock handling for MCLK usage and DAI
clock provision to fix this discrepancy and allow the codec level
probe/remove functionality to operate as intended.
Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/b92c461baeed27a6cd92e59e36a55c2547218683.1597164865.git.Adam.Thomson.Opensource@diasemi.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.h')
-rw-r--r-- | sound/soc/codecs/da7219.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/da7219.h b/sound/soc/codecs/da7219.h index 88b67fedd01b..94af88f52589 100644 --- a/sound/soc/codecs/da7219.h +++ b/sound/soc/codecs/da7219.h @@ -817,6 +817,7 @@ struct da7219_priv { #ifdef CONFIG_COMMON_CLK struct clk_hw dai_clks_hw[DA7219_DAI_NUM_CLKS]; + struct clk_hw_onecell_data *clk_hw_data; #endif struct clk_lookup *dai_clks_lookup[DA7219_DAI_NUM_CLKS]; struct clk *dai_clks[DA7219_DAI_NUM_CLKS]; |