Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 250b03d4 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: block modem shutdown during driver remove"

parents 86f41a9d fc009165
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1231,9 +1231,14 @@ static int icnss_driver_event_unregister_driver(void *data)
	}

	set_bit(ICNSS_DRIVER_UNLOADING, &penv->state);

	icnss_block_shutdown(true);

	if (penv->ops)
		penv->ops->remove(&penv->pdev->dev);

	icnss_block_shutdown(false);

	clear_bit(ICNSS_DRIVER_UNLOADING, &penv->state);
	clear_bit(ICNSS_DRIVER_PROBED, &penv->state);