]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jan 2018 18:46:04 +0000 (18:46 +0000)
commit98b79c91e06d53398d928a4ca27e0d2c1f9d8bad
treed27f6078e32e9917616d2e67ffa52276d709a705
parentfc34a8d7a6e80eb2c2304f3fb1526e012599ae42
ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read()

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: 40160a18ad64 ("ASoC: Alchemy AC97C/I2SC audio support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/au1x/ac97c.c