MLK-21484-2: ASoC: fsl_spdif: ensure clk is unprepared before reparent
authorViorel Suman <viorel.suman@nxp.com>
Thu, 18 Apr 2019 12:25:44 +0000 (15:25 +0300)
committerViorel Suman <viorel.suman@nxp.com>
Mon, 22 Apr 2019 06:47:00 +0000 (09:47 +0300)
commit69b1dce1105a26c9125dbd5a486ad8d72f269732
tree55303073aaf08af4bbd133a1bd2c2c386e468736
parentb17f0cc8f0676783d2e74c2521c01d5e89443de3
MLK-21484-2: ASoC: fsl_spdif: ensure clk is unprepared before reparent

On recent kernels clks which are marked with CLK_SET_RATE_GATE are
"protected" against further changes at clk_prepare time, including clk
reparent. Wrap clk set_parent and set_rate operations with
disable_unprepare and prepare_enable.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
sound/soc/fsl/fsl_spdif.c