]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitb79b60fade99c67e3a4b0c7a06e7b3000172cafb
tree0a84b02f274f0f81f14440899353f07a45177931
parentcd131950332692f3b1ffb6687130f5388a936300
[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