aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Suman <[email protected]>2020-11-02 18:18:10 +0200
committerMark Brown <[email protected]>2020-11-10 17:28:25 +0000
commit048751de568816de52dedf0fa967cceada7885f1 (patch)
treec8b030f6acbf7221a89d9296c8f6412058b4a283
parent513e22f384f04f205c9501372d04ece070cfc1b4 (diff)
ASoC: fsl_xcvr: fix break condition
The break condition copied by mistake as same as loop condition in the previous version, but must be the opposite. So fix it. Signed-off-by: Viorel Suman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/fsl/fsl_xcvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c
index c055179e6d11..2a28810d0e29 100644
--- a/sound/soc/fsl/fsl_xcvr.c
+++ b/sound/soc/fsl/fsl_xcvr.c
@@ -247,7 +247,7 @@ static int fsl_xcvr_ai_write(struct fsl_xcvr *xcvr, u8 reg, u32 data, bool phy)
regmap_write(xcvr->regmap, FSL_XCVR_PHY_AI_CTRL_TOG, idx);
ret = regmap_read_poll_timeout(xcvr->regmap, FSL_XCVR_PHY_AI_CTRL, val,
- (val & idx) != ((val & tidx) >> 1),
+ (val & idx) == ((val & tidx) >> 1),
10, 10000);
if (ret)
dev_err(dev, "AI timeout: failed to set %s reg 0x%02x=0x%08x\n",