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

Commit 6dc2e287 authored by Ravi Aravamudhan's avatar Ravi Aravamudhan
Browse files

diag: Send non real time control packet to all peripherals



Non real time mode of logging data was earlier supported on limited
peripherals. It is now supported on all peripherals. Diag driver
now sends the switching information to all ther peripherals.

Change-Id: I28cd83a14e86a561bacc14bc0435fc4be9bfe810
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 59cf2db6
Loading
Loading
Loading
Loading
+12 −3
Original line number Original line Diff line number Diff line
@@ -349,10 +349,19 @@ void diag_send_diag_mode_update_by_smd(struct diag_smd_info *smd_info,
	int wr_size = -ENOMEM, retry_count = 0, timer;
	int wr_size = -ENOMEM, retry_count = 0, timer;
	struct diag_smd_info *data = NULL;
	struct diag_smd_info *data = NULL;


	/* For now only allow the modem to receive the message */
	if (!smd_info && smd_info->type != SMD_CNTL_TYPE) {
	if (!smd_info || smd_info->type != SMD_CNTL_TYPE ||
		pr_err("diag: In %s, invalid channel info, smd_info: %p type: %d\n",
		(smd_info->peripheral != MODEM_DATA))
					__func__, smd_info,
					((smd_info) ? smd_info->type : -1));
		return;
		return;
	}

	if (smd_info->peripheral < MODEM_DATA ||
					smd_info->peripheral > WCNSS_DATA) {
		pr_err("diag: In %s, invalid peripheral %d\n", __func__,
							smd_info->peripheral);
		return;
	}


	data = &driver->smd_data[smd_info->peripheral];
	data = &driver->smd_data[smd_info->peripheral];
	if (!data)
	if (!data)