ASoC: tlv320aic32x4: Register clocks before registering component
authorAnnaliese McDermond <nh6z@nh6z.net>
Wed, 31 Mar 2021 18:21:38 +0000 (18:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:49:57 +0000 (09:49 +0200)
commit8d24a71959769ebe4fbf5e6350db0bd922625392
tree74ef7fa3ced081f6f875576dbd4916a7046d63e6
parentc3c86bd3d5e4d7ffcbc2c8d0e3eda278b43b8930
ASoC: tlv320aic32x4: Register clocks before registering component

commit 1ca1156cfd69530e6b7cb99943baf90c8bd871a5 upstream.

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: d1c859d314d8 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/tlv320aic32x4.c