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

Commit c5e6b05c authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

greybus: core: add interface id to interface and bundle uevents



Add the interface id to interface and bundle uevents.

This is needed to identify interfaces that are being removed (e.g. at
hot-unplug).

Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent f0960d05
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -102,6 +102,11 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
	if (add_uevent_var(env, "BUS=%u", hd->bus_id))
	if (add_uevent_var(env, "BUS=%u", hd->bus_id))
		return -ENOMEM;
		return -ENOMEM;


	if (intf) {
		if (add_uevent_var(env, "INTERFACE=%u", intf->interface_id))
			return -ENOMEM;
	}

	if (bundle) {
	if (bundle) {
		// FIXME
		// FIXME
		// add a uevent that can "load" a bundle type
		// add a uevent that can "load" a bundle type