Commit e2a0c9fa authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: davinci-mcasp: Fix XDATA check in mcasp_start_tx

The condition for checking for XDAT being cleared was not correct.

Fixes: 36bcecd0 ("ASoC: davinci-mcasp: Correct TX start sequence")
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
parent 8005c49d
...@@ -223,8 +223,8 @@ static void mcasp_start_tx(struct davinci_mcasp *mcasp) ...@@ -223,8 +223,8 @@ static void mcasp_start_tx(struct davinci_mcasp *mcasp)
/* wait for XDATA to be cleared */ /* wait for XDATA to be cleared */
cnt = 0; cnt = 0;
while (!(mcasp_get_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG) & while ((mcasp_get_reg(mcasp, DAVINCI_MCASP_TXSTAT_REG) & XRDATA) &&
~XRDATA) && (cnt < 100000)) (cnt < 100000))
cnt++; cnt++;
/* Release TX state machine */ /* Release TX state machine */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment