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

Commit 9f9e0d9c authored by Mohit Aggarwal's avatar Mohit Aggarwal
Browse files

diag: dci: Rectify updation of peripheral status



Currently, whenever a peripheral is going down, diag
driver is not updating the peripheral status correctly
which leads to wrong result. This patch fixes this issue.

Change-Id: I59065cff4b1a1521d321422e427762bd2661be12
Signed-off-by: default avatarMohit Aggarwal <maggarwa@codeaurora.org>
parent bd4743e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1368,7 +1368,7 @@ void diag_dci_notify_client(int peripheral_mask, int data, int proc)
	if (data == DIAG_STATUS_OPEN)
		dci_ops_tbl[proc].peripheral_status |= peripheral_mask;
	else
		dci_ops_tbl[proc].peripheral_status &= !peripheral_mask;
		dci_ops_tbl[proc].peripheral_status &= ~peripheral_mask;

	/* Notify the DCI process that the peripheral DCI Channel is up */
	list_for_each_safe(start, temp, &driver->dci_client_list) {