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

Commit 3f26e341 authored by Manoj Prabhu B's avatar Manoj Prabhu B Committed by Gerrit - the friendly Code Review server
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 80d949a5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1615,7 +1615,8 @@ static int diag_md_session_check(int proc, 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[proc] == DIAG_MD_NONE
		    && driver->md_session_mask[proc] == 0 &&