media: si2157: Briefly wait for tuning operation to complete
authorBrad Love <brad@nextdimension.cc>
Thu, 14 Nov 2019 20:03:59 +0000 (21:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 14:46:55 +0000 (16:46 +0200)
commit578147e968bd0cf6d74f4f04eee5a1f9b7e007da
tree6dfbf00714509be485238d25b848713bdea776d6
parent7e80a8d14d9ffa5fbd10652da9a2d93c1cefd6f9
media: si2157: Briefly wait for tuning operation to complete

To detect errors in the tuning operation, this waits up 40ms for operation
completion status. This allows for error detection and prevents issuing
additional commands to the tuner before it is finished.

Tuning typically completes in 20-30ms.

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>
drivers/media/tuners/si2157.c