1
0
Fork 0

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: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Johan Hovold 2015-12-03 19:18:04 +01:00 committed by Greg Kroah-Hartman
parent f0960d05f5
commit c5e6b05ce4
1 changed files with 5 additions and 0 deletions

View File

@ -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))
return -ENOMEM;
if (intf) {
if (add_uevent_var(env, "INTERFACE=%u", intf->interface_id))
return -ENOMEM;
}
if (bundle) {
// FIXME
// add a uevent that can "load" a bundle type