提交 0fb84ce0 编写于 作者: M Mauro Carvalho Chehab

V4L/DVB (12846): tuner-xc2028: Fix skip code for devices with broken read (tm6000)

Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 e8a4845d
...@@ -811,6 +811,10 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type, ...@@ -811,6 +811,10 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
hwmodel, (version & 0xf000) >> 12, (version & 0xf00) >> 8, hwmodel, (version & 0xf000) >> 12, (version & 0xf00) >> 8,
(version & 0xf0) >> 4, version & 0xf); (version & 0xf0) >> 4, version & 0xf);
if (priv->ctrl.read_not_reliable)
goto read_not_reliable;
/* Check firmware version against what we downloaded. */ /* Check firmware version against what we downloaded. */
if (priv->firm_version != ((version & 0xf0) << 4 | (version & 0x0f))) { if (priv->firm_version != ((version & 0xf0) << 4 | (version & 0x0f))) {
if (!priv->ctrl.read_not_reliable) { if (!priv->ctrl.read_not_reliable) {
...@@ -834,6 +838,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type, ...@@ -834,6 +838,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
goto fail; goto fail;
} }
read_not_reliable:
memcpy(&priv->cur_fw, &new_fw, sizeof(priv->cur_fw)); memcpy(&priv->cur_fw, &new_fw, sizeof(priv->cur_fw));
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册