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

Commit 6d328aef authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mhi_dev: update uevent support to DCI OUT channel"

parents ea7c4e3a 310a5f19
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -996,6 +996,15 @@ static int mhi_state_uevent(struct device *dev, struct kobj_uevent_env *env)
	mhi_parse_state(buf, &nbytes, info);
	add_uevent_var(env, "MHI_CHANNEL_STATE_12=%s", buf);

	rc = mhi_ctrl_state_info(MHI_CLIENT_DCI_OUT, &info);
	if (rc) {
		pr_err("Failed to obtain channel 20 state\n");
		return -EINVAL;
	}
	nbytes = 0;
	mhi_parse_state(buf, &nbytes, info);
	add_uevent_var(env, "MHI_CHANNEL_STATE_20=%s", buf);

	return 0;
}