projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0960d0
)
greybus: core: add interface id to interface and bundle uevents
author
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 3 Dec 2015 18:18:04 +0000
(19:18 +0100)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Fri, 4 Dec 2015 01:25:28 +0000
(17:25 -0800)
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>
drivers/staging/greybus/core.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/core.c
b/drivers/staging/greybus/core.c
index 3d8b7ef589bb5e427e80848ec59edf70b378dfbd..4ec7988eea266998bebb70bcc8b73c38b8d1e2e3 100644
(file)
--- a/
drivers/staging/greybus/core.c
+++ b/
drivers/staging/greybus/core.c
@@
-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