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

Commit 905523b6 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mhi_dev: Add uevent support to IPCR IN/OUT channels"

parents bfcc40ff 004c815a
Loading
Loading
Loading
Loading
+29 −2
Original line number Diff line number Diff line
@@ -92,6 +92,8 @@ struct chan_attr {
	bool wr_cmpl;
	/* Uevent broadcast of channel state */
	bool state_bcast;
	/* Skip node creation if not needed */
	bool skip_node;
	/* Number of write request structs to allocate */
	u32 num_wr_reqs;

@@ -230,6 +232,29 @@ static const struct chan_attr uci_chan_attr_table[] = {
		NULL,
		true
	},
	{
		MHI_CLIENT_IPCR_OUT,
		TRB_MAX_DATA_SIZE,
		MAX_NR_TRBS_PER_CHAN,
		MHI_DIR_OUT,
		NULL,
		NULL,
		NULL,
		false,
		true
	},
	{
		MHI_CLIENT_IPCR_IN,
		TRB_MAX_DATA_SIZE,
		MAX_NR_TRBS_PER_CHAN,
		MHI_DIR_IN,
		NULL,
		NULL,
		NULL,
		false,
		false,
		true
	},
	{
		MHI_CLIENT_DUN_OUT,
		TRB_MAX_DATA_SIZE,
@@ -251,6 +276,7 @@ static const struct chan_attr uci_chan_attr_table[] = {
		NULL,
		false,
		true,
		true,
		50
	},
	{
@@ -275,7 +301,7 @@ static const struct chan_attr uci_chan_attr_table[] = {
		NULL,
		NULL,
		false,
		true
		false
	},
};

@@ -1971,7 +1997,8 @@ int mhi_uci_init(void)
		 * this client's channels is called by the MHI driver,
		 * if one is registered.
		 */
		if (mhi_client->in_chan_attr->chan_state_cb)
		if (mhi_client->in_chan_attr->chan_state_cb ||
				mhi_client->in_chan_attr->skip_node)
			continue;
		ret_val = uci_device_create(mhi_client);
		if (ret_val)