Commit 7bca39e7 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent e7b7411c
......@@ -810,6 +810,10 @@ check_device:
hwmodel, (version & 0xf000) >> 12, (version & 0xf00) >> 8,
(version & 0xf0) >> 4, version & 0xf);
if (priv->ctrl.read_not_reliable)
goto read_not_reliable;
/* Check firmware version against what we downloaded. */
if (priv->firm_version != ((version & 0xf0) << 4 | (version & 0x0f))) {
if (!priv->ctrl.read_not_reliable) {
......@@ -833,6 +837,7 @@ check_device:
goto fail;
}
read_not_reliable:
memcpy(&priv->cur_fw, &new_fw, sizeof(priv->cur_fw));
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment