media: rtl28xxu: add missing sleep before probing slave demod
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/media/usb/dvb-usb-v2/rtl28xxu.c +3 -0
@@ -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 ) {
Signature · 1 line
2.25.1