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

Commit 845b3e90 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "icnss: block modem shutdown during driver remove"

parents 62438364 09a8ed91
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2462,9 +2462,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);