Skip to contentSkip to conversation

media: rtl28xxu: add missing sleep before probing slave demod

PATCH New Mario Hros 1 participant 1 message Feb 19, 2020

Subsystems (2)
lore
Share & tools
lore

Mario Hros

author
#0 lore raw

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.

---
 drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/media/usb/dvb-usb-v2/rtl28xxu.c +3 -0
index c6881a1b3232..2080f6ef4be1 100644
@@ -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