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

Commit 41196f87 authored by Hardik Arya's avatar Hardik Arya Committed by Gerrit - the friendly Code Review server
Browse files

diag: Keep buffer busy when starting session in multi mode



The patch updates the checks for keeping buffer busy for
multi logging mode at starting of session.

CRs-Fixed: 2203013
Change-Id: If97cf3c64fa6cbc4a496b6ca1ee4471e4e336012
Signed-off-by: default avatarHardik Arya <harya@codeaurora.org>
parent 352a344c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1183,11 +1183,10 @@ static void __diag_fwd_open(struct diagfwd_info *fwd_info)
	 * Logging mode here is reflecting previous mode
	 * status and will be updated to new mode later.
	 *
	 * Keeping the buffers busy for Memory Device Mode.
	 * Keeping the buffers busy for Memory Device and Multi Mode.
	 */

	if ((driver->logging_mode != DIAG_USB_MODE) ||
		driver->usb_connected) {
	if (driver->logging_mode != DIAG_USB_MODE) {
		if (fwd_info->buf_1) {
			atomic_set(&fwd_info->buf_1->in_busy, 0);
			DIAG_LOG(DIAG_DEBUG_PERIPHERALS,