25 Jan, 2008
40 commits
-
We don't need a "default" ktype for a kset. We should set this
explicitly every time for each kset. This change is needed so that we
can make ksets dynamic, and cleans up one of the odd, undocumented
assumption that the kset/kobject/ktype model has.This patch is based on a lot of help from Kay Sievers.
Nasty bug in the block code was found by Dave Young
Cc: Kay Sievers
Cc: Dave Young
Signed-off-by: Greg Kroah-Hartman -
Also add a kobject_init_and_add function which bundles up what a lot of
the current callers want to do all at once, and it properly handles the
memory usages, unlike kobject_register();Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
This is what the kobject_add function is going to become.
Add this to the kernel and then we can convert the tree over to use it.
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
This is what the kobject_init function is going to become.
Add this to the kernel and then we can convert the tree over to use it.
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
No one except the kobject core calls it so make the function static.
Signed-off-by: Greg Kroah-Hartman
-
Kay pointed out that kobject_set_name was being very stupid, doing two
allocations for every call, when it should just be using the kernel
function kvasprintf() instead.This change adds the internal kobject_set_name_vargs() function, which
other follow-on patches will be using.Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
The IBM icom serial driver is using a kobject only for reference
counting, nothing else. So switch it to use a kref instead, which is
all that is needed, and is much smaller.Cc: Anton Blanchard
Cc: Paul Mackerras
Cc: Benjamin Herrenschmidt
Cc: Ryan S. Arnold
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
hvcs is using a kobject only for reference counting, nothing else. So
switch it to use a kref instead, which is all that is needed, and is
much smaller.Cc: Anton Blanchard
Cc: Paul Mackerras
Cc: Benjamin Herrenschmidt
Cc: Ryan S. Arnold
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
hvc_console is using a kobject only for reference counting, nothing
else. So switch it to use a kref instead, which is all that is needed,
and is much smaller.Cc: Anton Blanchard
Cc: Paul Mackerras
Cc: Benjamin Herrenschmidt
Cc: Ryan S. Arnold
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
The IBM asm driver is using a kobject only for reference counting,
nothing else. So switch it to use a kref instead, which is all that is
needed, and is much smaller.Cc: Max Asböck
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
SPIN_LOCK_UNLOCKED is deprecated, use DEFINE_SPINLOCK instead
Signed-off-by: Jiri Slaby
Signed-off-by: Andrew Morton
Cc: Tejun Heo
Signed-off-by: Greg Kroah-Hartman -
Instead of walking from the source down to the root of sysfs, and back
to the target, we stop at the first directory the source and the target
share.This link:
/devices/pci0000:00/0000:00:1d.7/usb1/1-0:1.0/ep_81pointed to:
../../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-0:1.0/usb_endpoint/usbdev2.1_ep81now it just points to:
usb_endpoint/usbdev1.1_ep81Thanks to Denis Cheng for bringing this up, and sending the initial patch.
CC: Denis Cheng
Signed-off-by: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
Removed duplicates defined elsewhere
Signed-off-by: Emil Medve
Signed-off-by: Greg Kroah-Hartman -
It isn't that hard to add simple kset attributes, so don't go through
all the gyrations of creating your own object type and show and store
functions. Just use the functions that are already present. This makes
things much simpler.Note, the version_str string violates the "one value per file" rule for
sysfs. I suggest changing this now (individual files per type supported
is one suggested way.)Cc: Michael A. Halcrow
Cc: Michael C. Thompson
Cc: Tyler Hicks
Signed-off-by: Greg Kroah-Hartman -
struct class_device is going away, this converts the code to use struct
device instead.Signed-off-by: Tony Jones
Cc: Jan "Yenya" Kasprzak
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Tony Jones
Cc: Alex Dubov
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
struct class_device is going away, this converts the code to use struct
device instead.Signed-off-by: Tony Jones
Cc: Peter Osterlund
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
struct class_device is going away, this converts the code to use struct
device instead.Signed-off-by: Tony Jones
Cc: Tim Waugh
Cc: Jens Axboe
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
struct class_device is going away, this converts the code to use struct
device instead.Signed-off-by: Tony Jones
Cc: David Woodhouse
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
struct class_device is going away, this converts the code to use struct
device instead.Signed-off-by: Tony Jones
Cc: Russell King
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
struct class_device is going away, this converts the code to use struct
device instead.Signed-off-by: Tony Jones
Cc: Joshua Thompson
Cc: Benjamin Herrenschmidt
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Tony Jones
Cc: Kay Sievers
Acked-by: Karsten Keil
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Tony Jones
Cc: Gadi Oxman
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Tony Jones
Signed-off-by: Dan Williams
Cc: Shannon Nelson
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Kay Sievers
Cc: Tony Jones
Cc: Jan Harkes
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Tony Jones
Cc: Jens Axboe
Cc: Sam Hopkins
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
This adds kref_set() to the kref api for future use by people who really
know what they are doing with krefs...From: Evgeniy Polyakov
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
This patch reorganizes the way suspend and resume notifications are
sent to drivers. The major changes are that now the PM core acquires
every device semaphore before calling the methods, and calls to
device_add() during suspends will fail, while calls to device_del()
during suspends will block.It also provides a way to safely remove a suspended device with the
help of the PM core, by using the device_pm_schedule_removal() callback
introduced specifically for this purpose, and updates two drivers (msr
and cpuid) that need to use it.Signed-off-by: Alan Stern
Signed-off-by: Rafael J. Wysocki
Signed-off-by: Greg Kroah-Hartman -
As pointed out by Kay.
Cc: Kay Sievers
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Robert P. J. Day
-
This is a driver to control the cardbus wireless data card that works on
3g networks.Greg Kroah-Hartman did the initial driver cleanup.
Thanks to Arnaud Patard for help with bugfixing.
Thanks to Alan Cox for a lot of tty fixes.
Thanks to Satyam Sharma for fixing buildbreakage.
Thanks to Frank Seidel for a lot of bugfixes and
rewriting to make it a sane Linux driver
Thanks to Jiri Slaby for a lot bugfixes, cleanups
and rewrites that make it much more readable.Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Frank Seidel
Signed-off-by: Jiri Slaby -
Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Zhang Le
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Bryan Wu
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: TripleX Chung
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Dave Young
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: TripleX Chung
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman -
The email address of the man-pages maintainer has changed.
Cc: Michael Kerrisk
Signed-off-by: Li Yang
Signed-off-by: Greg Kroah-Hartman