mn88472: fix chip id check on probe
authorAntti Palosaari <crope@iki.fi>
Thu, 1 Dec 2016 00:08:27 +0000 (22:08 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:21:59 +0000 (08:21 +0100)
commit84b2f664409c26196f6f1e2f2eb7a5bc0ba7fbe4
treed175910d255a81ea9921c20982d3ab3adedfc966
parent15d1d226eab460617f6e4d33e64d0be34676ddf4
mn88472: fix chip id check on probe

commit 365fe4e0ce218dc5ad10df17b150a366b6015499 upstream.

A register used to identify chip during probe was overwritten during
firmware download and due to that later probe's for warm chip were
failing. Detect chip from the another register, which is located on
different register bank 2.

Fixes: 94d0eaa41987 ("[media] mn88472: move out of staging to media")
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/dvb-frontends/mn88472.c