projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
513e22f
)
ASoC: fsl_xcvr: fix break condition
author
Viorel Suman
<viorel.suman@nxp.com>
Mon, 2 Nov 2020 16:18:10 +0000
(18:18 +0200)
committer
Mark Brown
<broonie@kernel.org>
Tue, 10 Nov 2020 17:28:25 +0000
(17:28 +0000)
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 <viorel.suman@nxp.com>
Link:
https://lore.kernel.org/r/20201102161810.902464-1-viorel.suman@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_xcvr.c
b/sound/soc/fsl/fsl_xcvr.c
index
c055179
..
2a28810
100644
(file)
--- 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",