media: si2157: Better check for running tuner in init
authorBrad Love <brad@nextdimension.cc>
Thu, 14 Nov 2019 20:03:57 +0000 (21:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jun 2020 07:05:09 +0000 (09:05 +0200)
commit11ff15e4fec72c392945579a49ee4bc0d9c796e9
treef201584271f174e7b2c5fcfc424b579dc21bf84d
parent8ff3bf83df470b5cb8e5735fbaa44b00bf6ec3b4
media: si2157: Better check for running tuner in init

[ Upstream commit e955f959ac52e145f27ff2be9078b646d0352af0 ]

Getting the Xtal trim property to check if running is less error prone.
Reset if_frequency if state is unknown.

Replaces the previous "garbage check".

Signed-off-by: Brad Love <brad@nextdimension.cc>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/tuners/si2157.c