[media] tm6000: add detection based on eeprom name
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 20 Apr 2011 21:43:24 +0000 (18:43 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:28:55 +0000 (09:28 -0300)
commit792bc09a9896dfbdac575ab4cdcd0f4db96d8ca1
tree0a84b02f274f0f81f14440899353f07a45177931
parentdca6b74bb332f6aa52bd2a6efc464233e542297b
[media] tm6000: add detection based on eeprom name

On some situations, it is desired to use eeprom data to detect
the board type. This patch adds a logic for it and fixes 2 detection
issues:
1) 10Moons UT-821 uses a generic Trident ID. Other boards
also share the same ID. So, better to use an alternative way for
it;
2) Sometimes, HVR-900H is loaded with the default Trident
ID. This seems to be some hardware bug or race condition.

The new logic will only be enabled if the device is detected as
having a generic ID.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/tm6000/tm6000-cards.c
drivers/staging/tm6000/tm6000-i2c.c
drivers/staging/tm6000/tm6000.h