aboutsummaryrefslogtreecommitdiffstats
path: root/bad
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-06-06 16:25:32 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-06 16:25:32 -0700
commitb2267928115c563206ff006eb83e7935b7565eec (patch)
tree9bde67c65534c1711480385e9acaf67630be1ed9 /bad
parent24422233277d7b2b940fa93e7374d881063a6cff (diff)
downloadpatches-b2267928115c563206ff006eb83e7935b7565eec.tar.gz
i2c patches and remove kevent patch
Diffstat (limited to 'bad')
-rw-r--r--bad/kevent-add-new-uevent.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/bad/kevent-add-new-uevent.patch b/bad/kevent-add-new-uevent.patch
new file mode 100644
index 0000000000000..30be67bae7de1
--- /dev/null
+++ b/bad/kevent-add-new-uevent.patch
@@ -0,0 +1,43 @@
+From kristen.c.accardi@intel.com Fri May 5 15:04:09 2006
+Subject: KEVENT: add new uevent
+From: Kristen Accardi <kristen.c.accardi@intel.com>
+Cc: <arjan@linux.intel.com>
+Date: Fri, 05 May 2006 15:13:36 -0700
+Message-Id: <1146867216.21633.6.camel@whizzy>
+
+Add dock uevents so that userspace can be notified of dock and undock
+events.
+
+Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
+
+
+---
+ include/linux/kobject.h | 2 ++
+ lib/kobject_uevent.c | 4 ++++
+ 2 files changed, 6 insertions(+)
+
+--- gregkh-2.6.orig/include/linux/kobject.h
++++ gregkh-2.6/include/linux/kobject.h
+@@ -46,6 +46,8 @@ enum kobject_action {
+ KOBJ_UMOUNT = (__force kobject_action_t) 0x05, /* umount event for block devices (broken) */
+ KOBJ_OFFLINE = (__force kobject_action_t) 0x06, /* device offline */
+ KOBJ_ONLINE = (__force kobject_action_t) 0x07, /* device online */
++ KOBJ_UNDOCK = (__force kobject_action_t) 0x08, /* undocking */
++ KOBJ_DOCK = (__force kobject_action_t) 0x09, /* dock */
+ };
+
+ struct kobject {
+--- gregkh-2.6.orig/lib/kobject_uevent.c
++++ gregkh-2.6/lib/kobject_uevent.c
+@@ -50,6 +50,10 @@ static char *action_to_string(enum kobje
+ return "offline";
+ case KOBJ_ONLINE:
+ return "online";
++ case KOBJ_DOCK:
++ return "dock";
++ case KOBJ_UNDOCK:
++ return "undock";
+ default:
+ return NULL;
+ }