media: rtl28xxu: add missing sleep before probing slave demod

Slave demod needs some time to wake up otherwise it may not respond to the
following probe commands. This problem manifested randomly on my Astrometa
DVB-T2 dongle.

Signed-off-by: Mario Hros <git@reversity.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Mario Hros 2020-02-19 22:14:19 +01:00 committed by Mauro Carvalho Chehab
parent 806d06161a
commit 62d1928531
1 changed files with 3 additions and 0 deletions

View File

@ -552,6 +552,9 @@ tuner_found:
if (ret)
goto err;
/* slave demod needs some time to wake up */
msleep(20);
/* check slave answers */
ret = rtl28xxu_ctrl_msg(d, &req_mn88472);
if (ret == 0 && buf[0] == 0x02) {