mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
ASoC: pcm3060: Add soft reset on probe
Softly reset registers values on module probe Signed-off-by: Kirill Marinushkin <kmarinushkin@birdec.tech> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
e0771fc989
commit
a3daee0859
@ -287,6 +287,14 @@ int pcm3060_probe(struct device *dev)
|
||||
int rc;
|
||||
struct pcm3060_priv *priv = dev_get_drvdata(dev);
|
||||
|
||||
/* soft reset */
|
||||
rc = regmap_update_bits(priv->regmap, PCM3060_REG64,
|
||||
PCM3060_REG_MRST, 0);
|
||||
if (rc) {
|
||||
dev_err(dev, "failed to reset component, rc=%d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
if (dev->of_node)
|
||||
pcm3060_parse_dt(dev->of_node, priv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user