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

Commit 07335eaf authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Keep buffer busy when starting session in multi mode"

parents 526e0b27 41196f87
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,