Skip to content

Commit

Permalink
V4L/DVB (12846): tuner-xc2028: Fix skip code for devices with broken …
Browse files Browse the repository at this point in the history
…read (tm6000)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed May 18, 2010
1 parent e8a4845 commit 0fb84ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/media/common/tuners/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,10 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
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) {
Expand All @@ -834,6 +838,7 @@ static int check_firmware(struct dvb_frontend *fe, unsigned int type,
goto fail;
}

read_not_reliable:
memcpy(&priv->cur_fw, &new_fw, sizeof(priv->cur_fw));

/*
Expand Down

0 comments on commit 0fb84ce

Please sign in to comment.