Revision tags: v2.6.29, v2.6.29-rc8, v2.6.29-rc7, v2.6.29-rc6, v2.6.29-rc5, v2.6.29-rc4, v2.6.29-rc3, v2.6.29-rc2, v2.6.29-rc1, v2.6.28, v2.6.28-rc9 |
|
#
ae1b4171 |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: move knode_bus into private structure
Nothing outside of the driver core should ever touch knode_bus, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-of
driver core: move knode_bus into private structure
Nothing outside of the driver core should ever touch knode_bus, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
8940b4f3 |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: move knode_driver into private structure
Nothing outside of the driver core should ever touch knode_driver, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Sig
driver core: move knode_driver into private structure
Nothing outside of the driver core should ever touch knode_driver, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
f791b8c8 |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: move klist_children into private structure
Nothing outside of the driver core should ever touch klist_children, or knode_parent, so move them out of the public eye.
Cc: Kay Sievers <ka
driver core: move klist_children into private structure
Nothing outside of the driver core should ever touch klist_children, or knode_parent, so move them out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
fb069a5d |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: create a private portion of struct device
This is to be used to move things out of struct device that no code outside of the driver core should ever touch.
Cc: Kay Sievers <kay.sievers
driver core: create a private portion of struct device
This is to be used to move things out of struct device that no code outside of the driver core should ever touch.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
49b420a1 |
| 21-Jan-2009 |
Ming Lei <tom.leiming@gmail.com> |
driver core: check bus->match without holding device lock
This patch moves bus->match out from driver_probe_device and does not hold device lock to check the match between a device and a driver.
Th
driver core: check bus->match without holding device lock
This patch moves bus->match out from driver_probe_device and does not hold device lock to check the match between a device and a driver.
The idea has been verified by the commit 6cd495860901, which leads to a faster boot. But the commit 6cd495860901 has the following drawbacks: 1),only does the quick check in the path of __driver_attach->driver_probe_device, not in other paths; 2),for a matched device and driver, check the same match twice. It is a waste of cpu ,especially for some drivers with long device id table (eg. usb-storage driver).
This patch adds a helper of driver_match_device to check the match in all paths, and testes the match only once.
Signed-off-by: Ming Lei <tom.leiming@gmail.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
770824bd |
| 22-Feb-2009 |
Rafael J. Wysocki <rjw@sisk.pl> |
PM: Split up sysdev_[suspend|resume] from device_power_[down|up]
Move the sysdev_suspend/resume from the callee to the callers, with no real change in semantics, so that we can rework the disabling
PM: Split up sysdev_[suspend|resume] from device_power_[down|up]
Move the sysdev_suspend/resume from the callee to the callers, with no real change in semantics, so that we can rework the disabling of interrupts during suspend/hibernation.
This is based on an earlier patch from Linus.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
show more ...
|
#
926beadb |
| 09-Jan-2009 |
Greg Kroah-Hartman <gregkh@suse.de> |
Revert "driver core: create a private portion of struct device"
This reverts commit 2831fe6f9cc4e16c103504ee09a47a084297c0f3.
Turns out that device_initialize shouldn't fail silently. This series n
Revert "driver core: create a private portion of struct device"
This reverts commit 2831fe6f9cc4e16c103504ee09a47a084297c0f3.
Turns out that device_initialize shouldn't fail silently. This series needs to be reworked in order to get into proper shape.
Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
e2d40776 |
| 09-Jan-2009 |
Greg Kroah-Hartman <gregkh@suse.de> |
Revert "driver core: move klist_children into private structure"
This reverts commit 11c3b5c3e08f4d855cbef52883c266b9ab9df879.
Turns out that device_initialize shouldn't fail silently. This series
Revert "driver core: move klist_children into private structure"
This reverts commit 11c3b5c3e08f4d855cbef52883c266b9ab9df879.
Turns out that device_initialize shouldn't fail silently. This series needs to be reworked in order to get into proper shape.
Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
cda5e83f |
| 09-Jan-2009 |
Greg Kroah-Hartman <gregkh@suse.de> |
Revert "driver core: move knode_driver into private structure"
This reverts commit 93e746db183b3bdbbda67900f79b5835f9cb388f.
Turns out that device_initialize shouldn't fail silently. This series ne
Revert "driver core: move knode_driver into private structure"
This reverts commit 93e746db183b3bdbbda67900f79b5835f9cb388f.
Turns out that device_initialize shouldn't fail silently. This series needs to be reworked in order to get into proper shape.
Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
4db8e282 |
| 09-Jan-2009 |
Greg Kroah-Hartman <gregkh@suse.de> |
Revert "driver core: move knode_bus into private structure"
This reverts commit b9daa99ee533578e3f88231e7a16784dcb44ec42.
Turns out that device_initialize shouldn't fail silently. This series needs
Revert "driver core: move knode_bus into private structure"
This reverts commit b9daa99ee533578e3f88231e7a16784dcb44ec42.
Turns out that device_initialize shouldn't fail silently. This series needs to be reworked in order to get into proper shape.
Reported-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
b9daa99e |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: move knode_bus into private structure
Nothing outside of the driver core should ever touch knode_bus, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-of
driver core: move knode_bus into private structure
Nothing outside of the driver core should ever touch knode_bus, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
93e746db |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: move knode_driver into private structure
Nothing outside of the driver core should ever touch knode_driver, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Sig
driver core: move knode_driver into private structure
Nothing outside of the driver core should ever touch knode_driver, so move it out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
11c3b5c3 |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: move klist_children into private structure
Nothing outside of the driver core should ever touch klist_children, or knode_parent, so move them out of the public eye.
Cc: Kay Sievers <ka
driver core: move klist_children into private structure
Nothing outside of the driver core should ever touch klist_children, or knode_parent, so move them out of the public eye.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
2831fe6f |
| 16-Dec-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
driver core: create a private portion of struct device
This is to be used to move things out of struct device that no code outside of the driver core should ever touch.
Cc: Kay Sievers <kay.sievers
driver core: create a private portion of struct device
This is to be used to move things out of struct device that no code outside of the driver core should ever touch.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
Revision tags: v2.6.28-rc8, v2.6.28-rc7, v2.6.28-rc6, v2.6.28-rc5, v2.6.28-rc4, v2.6.28-rc3, v2.6.28-rc2, v2.6.28-rc1, v2.6.27, v2.6.27-rc9, v2.6.27-rc8, v2.6.27-rc7, v2.6.27-rc6, v2.6.27-rc5 |
|
#
5a3ceb86 |
| 25-Aug-2008 |
Tejun Heo <tj@kernel.org> |
driver-core: use klist for class device list and implement iterator
Iterating over entries using callback usually isn't too fun especially when the entry being iterated over can't be manipulated fre
driver-core: use klist for class device list and implement iterator
Iterating over entries using callback usually isn't too fun especially when the entry being iterated over can't be manipulated freely. This patch converts class->p->class_devices to klist and implements class device iterator so that the users can freely build their own control structure. The users are also free to call back into class code without worrying about locking.
class_for_each_device() and class_find_device() are converted to use the new iterators, so their users don't have to worry about locking anymore either.
Note: This depends on klist-dont-iterate-over-deleted-entries patch because class_intf->add/remove_dev() depends on proper synchronization with device removal.
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Greg Kroah-Hartman <gregkh@suse.de> Cc: Jens Axboe <jens.axboe@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
show more ...
|
Revision tags: v2.6.27-rc4, v2.6.27-rc3, v2.6.27-rc2, v2.6.27-rc1, v2.6.26, v2.6.26-rc9, v2.6.26-rc8, v2.6.26-rc7, v2.6.26-rc6, v2.6.26-rc5 |
|
#
f75b1c60 |
| 28-May-2008 |
Dave Young <hidave.darkstar@gmail.com> |
class: change internal semaphore to a mutex
Now that the lockdep infrastructure in the class core is in place, we should be able to properly change the internal class semaphore to be a mutex.
David
class: change internal semaphore to a mutex
Now that the lockdep infrastructure in the class core is in place, we should be able to properly change the internal class semaphore to be a mutex.
David wrote the original patch, and Greg fixed it up to apply properly due to all of the recent changes in this area.
From: Dave Young <hidave.darkstar@gmail.com> Cc: Matthew Wilcox <matthew@wil.cx> Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
1e412508 |
| 28-May-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
class: fix docbook comments for class_private structure
Removes a field that has been deleted, and adds a description fo the class_dirs field which was previously undocumented.
Cc: Kay Sievers <kay
class: fix docbook comments for class_private structure
Removes a field that has been deleted, and adds a description fo the class_dirs field which was previously undocumented.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
d9a01573 |
| 28-May-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
class: rename "sem" to "class_sem" in internal class structure
This renames the struct class "sem" field to be "class_sem" to make things easier when struct bus_type and struct class merge in the fu
class: rename "sem" to "class_sem" in internal class structure
This renames the struct class "sem" field to be "class_sem" to make things easier when struct bus_type and struct class merge in the future. It also makes grepping for fields easier as well.
Based on an idea from Kay.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
1fbfee6c |
| 28-May-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
class: rename "subsys" to "class_subsys" in internal class structure
This renames the struct class "subsys" field to be "class_subsys" to make things easier when struct bus_type and struct class mer
class: rename "subsys" to "class_subsys" in internal class structure
This renames the struct class "subsys" field to be "class_subsys" to make things easier when struct bus_type and struct class merge in the future. It also makes grepping for fields easier as well.
Based on an idea from Kay.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
184f1f77 |
| 28-May-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
class: rename "interfaces" to "class_interfaces" in internal class structure
This renames the struct class "interfaces" field to be "class_interfaces" to make things easier when struct bus_type and
class: rename "interfaces" to "class_interfaces" in internal class structure
This renames the struct class "interfaces" field to be "class_interfaces" to make things easier when struct bus_type and struct class merge in the future. It also makes grepping for fields easier as well.
Based on an idea from Kay.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
97ae69fd |
| 28-May-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
class: rename "devices" to "class_devices" in internal class structure
This renames the struct class "devices" field to be "class_devices" to make things easier when struct bus_type and struct class
class: rename "devices" to "class_devices" in internal class structure
This renames the struct class "devices" field to be "class_devices" to make things easier when struct bus_type and struct class merge in the future. It also makes grepping for fields easier as well.
Based on an idea from Kay.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
Revision tags: v2.6.26-rc4, v2.6.26-rc3, v2.6.26-rc2, v2.6.26-rc1, v2.6.25, v2.6.25-rc9, v2.6.25-rc8, v2.6.25-rc7, v2.6.25-rc6, v2.6.25-rc5, v2.6.25-rc4, v2.6.25-rc3, v2.6.25-rc2, v2.6.25-rc1, v2.6.24 |
|
#
7c71448b |
| 22-Jan-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
class: move driver core specific parts to a private structure
This moves the portions of struct class that are dynamic (kobject and lock and lists) out of the main structure and into a dynamic, priv
class: move driver core specific parts to a private structure
This moves the portions of struct class that are dynamic (kobject and lock and lists) out of the main structure and into a dynamic, private, structure.
Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
#
c3b19ff0 |
| 12-Mar-2008 |
Kay Sievers <kay.sievers@vrfy.org> |
driver core: remove no longer used "struct class_device"
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
|
#
4a3ad20c |
| 25-Jan-2008 |
Greg Kroah-Hartman <gregkh@suse.de> |
Driver core: coding style fixes
Fix up a number of coding style issues in the drivers/base/ directory that have annoyed me over the years. checkpatch.pl is now very happy.
Signed-off-by: Greg Kroa
Driver core: coding style fixes
Fix up a number of coding style issues in the drivers/base/ directory that have annoyed me over the years. checkpatch.pl is now very happy.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|
Revision tags: v2.6.24-rc8, v2.6.24-rc7 |
|
#
92b42141 |
| 31-Dec-2007 |
Randy Dunlap <randy.dunlap@oracle.com> |
driver core: fix build with SYSFS=n
When SYSFS=n and MODULES=y, build ends with:
linux-2.6.24-rc6-mm1/drivers/base/module.c: In function 'module_add_driver': linux-2.6.24-rc6-mm1/drivers/base/modul
driver core: fix build with SYSFS=n
When SYSFS=n and MODULES=y, build ends with:
linux-2.6.24-rc6-mm1/drivers/base/module.c: In function 'module_add_driver': linux-2.6.24-rc6-mm1/drivers/base/module.c:49: error: 'module_kset' undeclared (first use in this function) make[3]: *** [drivers/base/module.o] Error 1
Below is one possible fix. Build-tested with all 4 config combinations of SYSFS & MODULES.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
show more ...
|