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

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

Merge "diag: Switch to usb mode if md session mode is not peripheral mode"

parents e5cb9812 a2e00fd1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1392,7 +1392,8 @@ static int diag_md_session_check(int curr_mode, int req_mode,
		return -EINVAL;
	} else if (curr_mode == DIAG_MEMORY_DEVICE_MODE) {
		if (req_mode == DIAG_USB_MODE) {
			if (driver->md_session_mask != 0) {
			if (driver->md_session_mask != 0 &&
				driver->md_session_mode == DIAG_MD_PERIPHERAL) {
				/*
				 * An instance of mdlog is still running, Return
				 * error.