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

Commit b5002070 authored by Sreelakshmi Gownipalli's avatar Sreelakshmi Gownipalli Committed by Gerrit - the friendly Code Review server
Browse files

diag: Free the response buffer for user pd



Free the apps response buffer for the user pd during memory device mode.

Change-Id: Ie64ffa6a0da0f3969fcd53b1bb48a1ce36ebc32b
Signed-off-by: default avatarSreelakshmi Gownipalli <sgownipa@codeaurora.org>
parent 4f5a0984
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3983,7 +3983,7 @@ static int __init diagchar_init(void)
	driver->mask_check = 0;
	driver->in_busy_pktdata = 0;
	driver->in_busy_dcipktdata = 0;
	driver->rsp_buf_ctxt = SET_BUF_CTXT(APPS_DATA, TYPE_CMD, 1);
	driver->rsp_buf_ctxt = SET_BUF_CTXT(APPS_DATA, TYPE_CMD, TYPE_CMD);
	hdlc_data.ctxt = SET_BUF_CTXT(APPS_DATA, TYPE_DATA, 1);
	hdlc_data.len = 0;
	non_hdlc_data.ctxt = SET_BUF_CTXT(APPS_DATA, TYPE_DATA, 1);
+3 −3
Original line number Diff line number Diff line
@@ -1798,9 +1798,9 @@ static int diagfwd_mux_write_done(unsigned char *buf, int len, int buf_ctxt,
			"Marking buffer as free after write done p: %d, t: %d, buf_num: %d\n",
			peripheral, type, num);
			diagfwd_write_done(peripheral, type, num);
		} else if (peripheral == APPS_DATA ||
			(peripheral >= 0 && peripheral < NUM_PERIPHERALS &&
			num == TYPE_CMD)) {
		} else if ((peripheral >= 0 &&
			peripheral <= NUM_PERIPHERALS + NUM_UPD) &&
			num == TYPE_CMD) {
			DIAG_LOG(DIAG_DEBUG_PERIPHERALS,
			"Marking APPS response buffer free after write done for p: %d, t: %d, buf_num: %d\n",
			peripheral, type, num);