Commit 62d19285 authored by Mario Hros's avatar Mario Hros Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMario Hros <git@reversity.org>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 806d0616
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -552,6 +552,9 @@ static int rtl2832u_read_config(struct dvb_usb_device *d)
		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) {