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

Commit 6b03048b authored by Manoj Prabhu B's avatar Manoj Prabhu B
Browse files

diag: Update hdlc mode for peripherals after mdlog exit



Presently hdlc mode is not getting updated for a peripheral after
multimode mdlog exit. Update the peripheral's hdlc mode while
closing the mdlog session.

Change-Id: I255db98b592648df00e779027232a55c4585de6a
Signed-off-by: default avatarManoj Prabhu B <bmanoj@codeaurora.org>
parent 99b2bb73
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -481,9 +481,11 @@ static void diag_close_logging_process(const int pid)
			}
		}
	}
	mutex_lock(&driver->hdlc_disable_mutex);
	mutex_lock(&driver->md_session_lock);
	diag_md_session_close(pid);
	mutex_unlock(&driver->md_session_lock);
	mutex_unlock(&driver->hdlc_disable_mutex);
	diag_switch_logging(&params);
	mutex_unlock(&driver->diagchar_mutex);
}
@@ -1419,6 +1421,8 @@ static void diag_md_session_close(int pid)
			driver->md_session_map[proc][i] = NULL;
			driver->md_session_mask[proc] &=
				~session_info->peripheral_mask[proc];
			driver->p_hdlc_disabled[i] =
				driver->hdlc_disabled;
		}
	}
	diag_log_mask_free(session_info->log_mask);