Commit 3e1fd478 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[media] fintek-cir: change || to &&

The current condition is always true, so everything uses
LOGICAL_DEV_CIR_REV2 (8).  It should be that Fintek products
0x0408(F71809) and 0x0804(F71855) use logical device
LOGICAL_DEV_CIR_REV1 (5) and other chip ids use logical device 8.

In other words, this fixes hardware detection for 0x0408 and 0x0804.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarJarod Wilson <jarod@redhat.com>
Cc: stable@kernel.org
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5694e029
...@@ -197,7 +197,7 @@ static int fintek_hw_detect(struct fintek_dev *fintek) ...@@ -197,7 +197,7 @@ static int fintek_hw_detect(struct fintek_dev *fintek)
/* /*
* Newer reviews of this chipset uses port 8 instead of 5 * Newer reviews of this chipset uses port 8 instead of 5
*/ */
if ((chip != 0x0408) || (chip != 0x0804)) if ((chip != 0x0408) && (chip != 0x0804))
fintek->logical_dev_cir = LOGICAL_DEV_CIR_REV2; fintek->logical_dev_cir = LOGICAL_DEV_CIR_REV2;
else else
fintek->logical_dev_cir = LOGICAL_DEV_CIR_REV1; fintek->logical_dev_cir = LOGICAL_DEV_CIR_REV1;
......
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