]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB (12846): tuner-xc2028: Fix skip code for devices with broken read (tm6000)
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 2 Dec 2008 11:30:16 +0000 (08:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:40:22 +0000 (00:40 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tuner-xc2028.c

index 53f0fbb33cc631a234b50716a36be14b48b79b26..61a7e138c748dc5c481cd8de6a688e0091db7f33 100644 (file)
@@ -811,6 +811,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) {
@@ -834,6 +838,7 @@ check_device:
                goto fail;
        }
 
+read_not_reliable:
        memcpy(&priv->cur_fw, &new_fw, sizeof(priv->cur_fw));
 
        /*