ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Jan 2018 08:08:38 +0000 (11:08 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 31 May 2018 23:30:08 +0000 (00:30 +0100)
commit11043ae6a9e56a2c362ae4289f1ca77e3ff4be4f
tree7cccf200d2013b1ad118f068ecfc5c1559d4edcc
parentc7411569cbc87bad53d9811166a49eaaa3b71cc3
ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read()

commit 123af9043e93cb6f235207d260d50f832cdb5439 upstream.

The loop timeout doesn't work because it's a post op and ends with "tmo"
set to -1.  I changed it from a post-op to a pre-op and I changed the
initial the starting value from 5 to 6 so we still iterate 5 times.  I
left the other as it was because it's a large number.

Fixes: b3c70c9ea62a ("ASoC: Alchemy AC97C/I2SC audio support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/soc/au1x/ac97c.c