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

Commit 96a84c5c authored by Manoj Prabhu B's avatar Manoj Prabhu B
Browse files

diag: Switch to correct logging mode after mdlog exit



Mdlog in multimode when exits is not switching to required
USB or PCIE mode. Adding missing check handles switching to
proper logging mode when mdlog exits.

Change-Id: I7c7bc23c463cc809765b4774fa5147c7245d8c50
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent 409330d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1591,7 +1591,8 @@ static int diag_md_session_check(int curr_mode, int req_mode,
		*change_mode = 1;
		return 0;
	} else if ((req_mode == DIAG_USB_MODE || req_mode == DIAG_PCIE_MODE)
		&& curr_mode == DIAG_MEMORY_DEVICE_MODE) {
		&& (curr_mode == DIAG_MEMORY_DEVICE_MODE ||
		curr_mode == DIAG_MULTI_MODE)) {
		mutex_lock(&driver->md_session_lock);
		if (driver->md_session_mode == DIAG_MD_NONE
		    && driver->md_session_mask == 0 && driver->logging_mask) {