OSDN Git Service

mn88473: fix chip id check on probe
authorAntti Palosaari <crope@iki.fi>
Wed, 30 Nov 2016 21:36:14 +0000 (19:36 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:32:23 +0000 (08:32 +0100)
commit9fd64b8302593a6398e4e05571e84309b017fd55
tree81de766ce033ec4a031800226015e4b8353d46af
parenteb9afff9513dff7862eba01679fb6587e97fc2b7
mn88473: fix chip id check on probe

commit d930b5b5bf122a61952cfebabb1e618682a2631a 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: 7908fad99a6c ("[media] mn88473: finalize driver")

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/mn88473.c