- 04 Nov, 2004 9 commits
-
-
Robert Love authored
Attached patch adds a MAINTAINER entry for the kernel event layer. Signed-Off-By: Robert Love <rml@novell.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Robert Love authored
Looks like kobject_uevent_init is executed before netlink_proto_init and consequently always fails. Not cool. Attached patch switches the initialization over from core_initcall (init level 1) to postcore_initcall (init level 2). Netlink's initialization is done in core_initcall, so this should fix the problem. We should be fine waiting until postcore_initcall. Also a couple white space changes mixed in, because I am anal. Signed-Off-By: Robert Love <rml@novell.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Greg Kroah-Hartman authored
Thanks to Serge Hallyn <serue@us.ibm.com> for pointing this out. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Tejun Heo authored
df_05_device_add_ref_fix.patch In device_add(), @dev wan't put'd properly when it has zero length bus_id (error path). Fixed. Signed-off-by: Tejun Heo <tj@home-tj.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Tejun Heo authored
df_04_kobject_add_ref_fix.patch In kobject_add(), @kobj wasn't put'd properly on error path. This patch fixes it. Signed-off-by: Tejun Heo <tj@home-tj.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Tejun Heo authored
df_03_sysfs_release_fix.patch Some attributes are allocated dynamically (e.g. module and device parameters) and are usually deallocated when the assoicated kobject is released. So, it's not safe to access attr after putting the kobject. Signed-off-by: Tejun Heo <tj@home-tj.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Tejun Heo authored
df_02_bus_rescan_devcies_fix.patch bus_rescan_devices() eventually calls device_attach() and thus requires write locking the corresponding bus. The original code just called bus_for_each_dev() which only read locks the bus. This patch separates __bus_for_each_dev() and __bus_for_each_drv(), which don't do locking themselves, out from the original functions and call them with read lock in the original functions and with write lock in bus_rescan_devices(). Signed-off-by: Tejun Heo <tj@home-tj.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Tejun Heo authored
df_01_driver_attach_comment_fix.patch bus_match() was renamed to driver_probe_device() but the comment for device_attach() wasn't updated. This patch updates it. Signed-off-by: Tejun Heo <tj@home-tj.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Kay Sievers authored
Add the sysfs path of the physical device to the hotplug event of class and block devices. This should solve the userspace issue not to know if the device is a virtual one and the "device" symlink will never be created, but we sit there and wait for it to show up not knowing when we should give up. Also the bus name is added to the hotplug event, so we don't need to reverse lookup in the /sys/bus/* directory which bus our physical device belongs to. This is e.g. the value matched against the BUS= key, that may be used in an udev rule. This is a PCI network card: ACTION=add SUBSYSTEM=net DEVPATH=/class/net/eth0 PHYSDEVPATH=/devices/pci0000:00/0000:00:1e.0/0000:02:01.0 PHYSDEVBUS=pci INTERFACE=eth0 SEQNUM=827 PATH=/sbin:/bin:/usr/sbin:/usr/bin HOME=/ This is a IDE CDROM: ACTION=add SUBSYSTEM=block DEVPATH=/block/hdc PHYSDEVPATH=/devices/pci0000:00/0000:00:1f.1/ide1/1.0 PHYSDEVBUS=ide SEQNUM=1017 PATH=/sbin:/bin:/usr/sbin:/usr/bin HOME=/ This is an USB-stick partition: ACTION=add SUBSYSTEM=block DEVPATH=/block/sda/sda1 PHYSDEVPATH=/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/host1/target1:0:0/1:0:0:0 PHYSDEVBUS=scsi SEQNUM=1032 PATH=/sbin:/bin:/usr/sbin:/usr/bin HOME=/ Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
- 03 Nov, 2004 2 commits
-
-
Adrian Bunk authored
The patch below does the following cleanups for the sysfs code: - remove the unused global function sysfs_mknod - make some structs and functions static Please check whether this patch is correct, or whether some of the things I made static should be used globally in the forseeable future. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
Maneesh Soni authored
o sysfs_new_dirent to retrun 0 if kmalloc fails. Thanks to Milton Miller for spotting this. Signed-off-by: Maneesh Soni <maneesh@in.ibm.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
-
- 02 Nov, 2004 29 commits
-
-
Benjamin Herrenschmidt authored
The new atyfb has the return value for the Power Management routine wrong. This prevents sleep from working on PowerBooks with mach64 video chips. This fixes it. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Benjamin Herrenschmidt authored
XFree (and X.org) has both always been broken in their conversion of the DPMS blanking mode when passing to the kernel ioctl FBIOBLANK (in fbdev mode). This patch makes sure that at least the value passed by userland stays in the legal range, which has the side effect that an X DPMS POWERDOWN request will result as an fbdev VESA_POWERDOWN request at the fbdev level now, instead of an out-of-range value. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Matthew Wilcox authored
Small tweaks to the checksumming routines Fix a corner case in csum_partial Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
Superio cleanup Committed-by: Grant Grundler <grundler@parisc-linux.org>
-
Matthew Wilcox authored
The default interruption handler "handle_interruption" does not properly check to see if the faulting space is the same as the users space. The problem lies in the fact that if a fault happens on the gateway we will not deliver signals to the process, the process will not die, and we may continue handling the same fault in a loop forever. Any malicious user code can crash the kernel by jumping into the gateway page at an inopportune address. The solution is to check if the user has the right privilege and if the spaces match, both faulting and currently active. The best action is to force the process back to it's own space of execution at address zero, and let it take a SIGSEGV. The process can never recover from this because it happens immediately after the return from the interrupt via rfi or rfir. Committed-by: Carlos O'Donell <carlos@parisc-linux.org>
-
Matthew Wilcox authored
Add new syscalls: tkill, waitid, fadvise64_64, set_tid_address, tgkill, mbind, [sg]et_mempolicy, {,l,f}{set,get,list,remove}xattr, timer_{create,settime,gettime,getoverrun,delete}, clock_{settime,gettime,getres,nanosleep} Committed-by: Matthew Wilcox <willy@parisc-linux.org>
-
Matthew Wilcox authored
PTRACE_GETEVENTMSG was not 64-bit clean, fix it Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
remove the now unused lcopy_*_user routines Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
Stop exporting the old memcpy symbols Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
dump the stack on a BUG() Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
register cpus with sysfs Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
- new memcpy routine, replaces memcpy, bcopy, copy_{from,to,in}_user implementations - workaround gcc-3.0 limitations for asm() - Pip and Rufus pointed out the flaw in the current misaligned memcopy routines. Randolph now owes lots of Milk bones. - updates to work with testsuite - sparse annotations - Improve copy performance for small and unaligned copies - Enable merge optimization for non-PA20 builds too Committed-by: Randolph Chung <tausq@parisc-linux.org> Committed-by: James Bottomley <jejb@parisc-linux.org>
-
Matthew Wilcox authored
fix CONFIG_DISCONTIGMEM support Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
- Fix Astro/Elroy LMMIO space reporting in /proc/iomem. - Output in /proc/iomem include PCI bus number and "Extra LMMIO" range. - LBA now reports proper addresses routed down from SBA. - add mercury_cfg_ops. This fixes the tg3 init delay problem. PDC took ~20ms per PCI cfg write. tg3 performs ~1600 writes (~30 seconds per NIC) during init. Alternative is the relocate PDC to host ram. But that would burn ~4MB of RAM. This is cheaper. - add PCI_F_EXTEND to asm/pci.h - replaces private definitions Committed-by: Grant Grundler <grundler@parisc-linux.org>
-
Matthew Wilcox authored
Add memory clobber to userspace syscall wrapper provided by kernel, this matches glibc definition. Committed-by: Carlos O'Donell <carlos@parisc-linux.org>
-
Matthew Wilcox authored
export global fixup routines Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
Matthew Wilcox authored
Revamp exceptions support to use fixup sections Committed-by: Randolph Chung <tausq@parisc-linux.org>
-
bk://bk.arm.linux.org.uk/linux-2.6-serialLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Russell King authored
- linux/8250.h is replaced by linux/serial_8250.h - we now pass serial port information via a platform device.
-
Russell King authored
-
Russell King authored
-
Russell King authored
-
bk://bk.arm.linux.org.uk/linux-2.6-rmkLinus Torvalds authored
into ppc970.osdl.org:/home/torvalds/v2.6/linux
-
Ben Dooks authored
Patch from Ben Dooks Fixes mis-labelled timer variables, and incldes the clock header to allow the code to compile. This was not caught on previous rounds as all the s3c2440 machine support is pending the finalisation of the new s3c2440 uart driver (arriving soon) Signed-off-by: Ben Dooks
-
Ben Dooks authored
Patch from Ben Dooks Select the PCLK based TIMER4 to provide the system timer tick if there is no machine specific timer setup specified. This should make it easier to add new machines, as well as cut down on the code required in time.c when they are added. Signed-off-by: Ben Dooks
-
George G. Davis authored
Patch from George G. Davis The Lubbock PCMCIA socket driver, drivers/pcmcia/pxa2xx_lubbock.c, lacks a MODULE_LICENSE declaration. This patch merely adds the missing MODULE_LICENSE declaration to eliminate tainted kernel warnings when this driver is built as a module. I have intentionally not used the Dual MPL/GPL license in this case because 1) current linux-2.6.10-rc1 PXA PCMCIA drivers use only the GPL license, 2) the original source files on which the PXA PCMCIA drivers are based, i.e. the SA11xx PCMCIA drivers, state: "If you wish to allow the use of your version of this file only under the terms of the GPL and not to allow others to use your version of this file under the MPL, indicate your decision by deleting the provisions above and replace them with the notice and other provisions required by the GPL." Signed-off-by:: George G. Davis
-
Nicolas Pitre authored
Patch from Nicolas Pitre This allows to set the default state of GPIOs before they're enabled as output, eliminating spurious level transitions. Signed-off-by: Nicolas Pitre
-
Colin Leroy authored
Here's the patch that supercedes the one I asked you to drop. It changes the fan speed logic so that the fans will go incrementally fast instead of using just two steps. Also, it starts and stops both fans instead of just one on Powerbooks 15" and 17" (functionality asked by most of the Albooks users on Debian's ML, and justified by the fact that fan 1 and fan 2 do not correspond to CPU and GPU, as we previously thought). Signed-off-by: Colin Leroy <colin@colino.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-
Russell King authored
VIDEO_MODE_SECAM was incorrectly writing the contents of cached register 14 back to hardware register 8, rather than using cached register 8. Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-