[PATCH v2 0/2] media: dvb-usb-v2: add init_ready flag to prevent race during device initialization

From: Nalivayko Sergey

Date: Fri Nov 07 2025 - 13:16:41 EST


This patch series introduces an atomic init_ready flag in
struct dvb_usb_device and adds checks in relevant code paths.
Drivers now verify that device initialization has completed before
performing operations that rely on initialized device state.
If the device is not yet ready, the operation is deferred until
initialization finishes, preventing race conditions and improving
driver robustness.

Nalivayko Sergey (2):
media: dvb-usb-v2: add device init_ready flag
media: mxl111sf: fix i2c race condition during device probe

drivers/media/usb/dvb-usb-v2/dvb_usb.h | 4 ++++
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 4 ++++
drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)

--
2.39.5