]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic32x4: Register clocks before registering component
authorAnnaliese McDermond <nh6z@nh6z.net>
Wed, 31 Mar 2021 18:21:38 +0000 (18:21 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 6 Apr 2021 16:12:34 +0000 (17:12 +0100)
commit3f85e679a9b68f15a8894a341f14280c67b9fbda
treedb0225ef96af00e7669453a3425abbcca847ca3c
parentf2813a866da174c4b1263e7a10da43811e96c020
ASoC: tlv320aic32x4: Register clocks before registering component

Clock registration must be performed before the component is
registered.  aic32x4_component_probe attempts to get all the
clocks right off the bat.  If the component is registered before
the clocks there is a race condition where the clocks may not
be registered by the time aic32x4_componet_probe actually runs.

Fixes: baa392e015ef ("ASoC: codec: tlv3204: Increased maximum supported channels")
Cc: stable@vger.kernel.org
Signed-off-by: Annaliese McDermond <nh6z@nh6z.net>
Link: https://lore.kernel.org/r/0101017889850206-dcac4cce-8cc8-4a21-80e9-4e4bef44b981-000000@us-west-2.amazonses.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c