hal/hald/linux2 classdev.c,1.36,1.37
Kay Sievers
kay at freedesktop.org
Fri Dec 9 10:08:23 PST 2005
- Previous message: hal/tools Makefile.am, 1.23, 1.24 hal-system-storage-eject, NONE,
1.1 hal-system-storage-mount, NONE,
1.1 hal-system-storage-unmount, NONE, 1.1
- Next message: hal ChangeLog,1.705,1.706
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/hald/linux2
In directory gabe:/tmp/cvs-serv7107/hald/linux2
Modified Files:
classdev.c
Log Message:
2005-12-09 Kay Sievers <kay.sievers at vrfy.org>
* hald/linux2/classdev.c: (hotplug_event_begin_add_classdev): Update
the driver property if we add a class device. A module load or manual
driver bind did not update "info.linux.driver" of the parent device
and NetworkManager depends on that property.
Index: classdev.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/classdev.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- classdev.c 8 Dec 2005 19:03:02 -0000 1.36
+++ classdev.c 9 Dec 2005 18:08:20 -0000 1.37
@@ -1179,6 +1179,12 @@
HAL_INFO (("class_add: subsys=%s sysfs_path=%s dev=%s physdev=0x%08x", subsystem, sysfs_path, device_file, physdev));
+ /* update driver property of the physical device, cause manual driver bind/unbind
+ * may change change this without sending events for the bus device
+ */
+ if (physdev != NULL)
+ hal_util_set_driver (physdev, "info.linux.driver", sysfs_path_in_devices);
+
if (physdev != NULL && hal_device_property_get_bool (physdev, "info.ignore")) {
HAL_INFO (("Ignoring class_add since physdev has info.ignore==TRUE"));
hotplug_event_end (end_token);
- Previous message: hal/tools Makefile.am, 1.23, 1.24 hal-system-storage-eject, NONE,
1.1 hal-system-storage-mount, NONE,
1.1 hal-system-storage-unmount, NONE, 1.1
- Next message: hal ChangeLog,1.705,1.706
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list