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

Commit 41f9651e authored by Arun Prakash's avatar Arun Prakash
Browse files

diag: Adding remote proc check for hsic



Adding support for remote processor check in
diagfwd_hsic to fix device mask error while
querying remote device mask from user space
client.

Change-Id: Ia6c0b4ea2fe6ca6c14b7b00ff486310cf616f611
Signed-off-by: default avatarArun Prakash <app@codeaurora.org>
parent e80972da
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -470,13 +470,18 @@ static int hsic_fwd_complete(int id, unsigned char *buf, int len, int ctxt)
	return 0;
}

static int hsic_remote_proc_check(void)
{
	return diag_hsic[HSIC_1].enabled;
}

static struct diag_remote_dev_ops diag_hsic_fwd_ops = {
	.open = hsic_open,
	.close = hsic_close,
	.queue_read = hsic_queue_read,
	.write = hsic_write,
	.fwd_complete = hsic_fwd_complete,
	.remote_proc_check = NULL,
	.remote_proc_check = hsic_remote_proc_check,
};

int diag_hsic_init(void)