提交 567627bf 编写于 作者: B Benjamin Larsson 提交者: Mauro Carvalho Chehab

[media] mn88473: check if firmware is already running before loading it

Signed-off-by: NBenjamin Larsson <benjamin@southpole.se>
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 0f21ac7f
......@@ -196,8 +196,19 @@ static int mn88473_init(struct dvb_frontend *fe)
dev_dbg(&client->dev, "\n");
if (dev->warm)
/* set cold state by default */
dev->warm = false;
/* check if firmware is already running */
ret = regmap_read(dev->regmap[0], 0xf5, &tmp);
if (ret)
goto err;
if (!(tmp & 0x1)) {
dev_info(&client->dev, "firmware already running\n");
dev->warm = true;
return 0;
}
/* request the firmware, this will block and timeout */
ret = request_firmware(&fw, fw_file, &client->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册