summaryrefslogtreecommitdiffstats
path: root/drivers/sbus
AgeCommit message (Collapse)AuthorLines
2005-03-28[PATCH] io_remap_pfn_range: fix some callers for XENRandy Dunlap-1/+1
(from Keir:) I have audited the drivers/ and sound/ directories. Most uses of remap_pfn_range are okay, but there are a small handful that are remapping device memory (mostly AGP and DRM drivers). Of particular driver is the HPET driver, whose mmap function is broken even for native (non-Xen) builds. If nothing else, vmalloc_to_phys should be used instead of __pa to convert an ioremapped virtual address to a valid physical address. The fix in this patch is to remember the original bus address as probed at boot time and to pass this to io_remap_pfn_range. Signed-off-by: Keir Fraser <keir@xensource.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-28[PATCH] io_remap_pfn_range: convert sparc callersRandy Dunlap-2/+4
io_remap_pfn_range(): convert sparc32/64 callers of io_remap_page_range(with 6 args) to io_remap_pfn_range(with 5 args); Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-03-13[PATCH] verify_area cleanup : drivers part 2Jesper Juhl-10/+6
This patch converts the second half of drivers from verify_area to access_ok. Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-20[PATCH] Lock initializer cleanup: Misc driversThomas Gleixner-5/+5
Use the new lock initializers DEFINE_SPIN_LOCK and DEFINE_RW_LOCK Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-13[SPARC64]: Need some more SPARC32 ifdeffing in here.David S. Miller-3/+5
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-01-01[PATCH] sparc32: fix sbus rtc warningsWilliam Lee Irwin III-2/+3
Add a sparc #ifdef to drivers/char/rtc.c and iomem annotations to drivers/sbus/char/rtc.c Signed-off-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-01-01[PATCH] sparc32: sun4d updateWilliam Lee Irwin III-0/+14
Chris Newport and Thomas Bogendoerfer have been working to get the sun4d port functional again. This patch updates 2.6.10-rc3 to a current snapshot of their work. It does the following 3 things: (1) add sun4d hook to sbus_bus_ranges_init() (2) fix up pgd_offset() call in sun4d iommu code (3) fix up sun4d's definition of current Signed-off-by: Chris Newport <crn@netunix.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Acked-by: William Irwin <wli@holomorphy.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-27[PATCH] misc sparc iomem annotationsAlexander Viro-4/+4
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-27[PATCH] sunbpp iomem annotationsAlexander Viro-8/+8
Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-11-10[PATCH] convert MODULE_PARM() to module_param() familyRandy Dunlap-10/+10
Convert MODULE_PARM() to module_param(). Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-10-21[PATCH] added typechecking ot sparc64 ioremap()Alexander Viro-1/+1
ioremap() made inlined function on sparc64; that had caught one bogosity in drivers, actually - cpwatchdog.c passed sizeof(structure that was never declared) as the second argument to ioremap(). It went unnoticed since that argument was never used in the body of macro, so it disappeared without a trace... Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-10-20Update tty layer to not mix kernel and user pointers.Linus Torvalds-43/+14
Instead, tty_io.c will always copy user space data to kernel space, leaving the drivers to worry only about normal kernel buffers. No more "from_user" flag, and having the user copy in each driver. This cleans up the code and also fixes a number of locking bugs.
2004-10-19[PATCH] #include <asm/bitops.h> -> #include <linux/bitops.h>Adrian Bunk-1/+1
There's no reason to directly #include <asm/bitops.h> since it's available on all architectures and also included by #include <linux/bitops.h>. This patch changes #include <asm/bitops.h> to #include <linux/bitops.h>. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-10-19[PATCH] vm: convert users of remap_page_range() under drivers/ and net/ to ↵William Lee Irwin III-3/+3
use remap_pfn_range() This patch converts all callers of remap_page_range() under arch/ and net/ to use remap_pfn_range() instead. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-29[PATCH] tty locking cleanup and fixesAlan Cox-10/+3
No problems reported other than Linus typo in an unbuildable driver from the last one. This one adds tty_ldisc_flush and also makes tty_wakeup do the queue wake as discussed with Paul. I've then propagated these functions through all the drivers. This means most drivers don't know about the ldisc locking and instead call generic functions that look after it. The result is the removal of a lot of duplicate code both for ldisc referencing and historical code for handling tty ldisc wakeup semantics. A nice side effect is that by adding versions of the two helpers we can switch most of the drivers over before changing the core tty code if preferred. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-09-28[SPARC64]: Make bbc_i2c use msleep_interruptible().Nishanth Aravamudan-2/+2
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-28[SPARC64]: Make bbc_envctrl use msleep_interruptible().Nishanth Aravamudan-3/+2
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-16[SPARC]: Kill dump_dma_regs, unused.David S. Miller-11/+0
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-16[SPARC64]: Fix iomem warnings in flash driver.David S. Miller-1/+2
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-16[SPARC64]: Fix iomem warnings in cpwatchdog driver.David S. Miller-48/+34
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-09-16[SPARC64]: Fix iomem warnings in display7seg driver.David S. Miller-1/+1
2004-09-16[SPARC64]: Fix iomem warnings in envctrl driver.David S. Miller-42/+23
Signed-off-by: David S. Miller <davem@davemloft.net>
2004-08-08Remove ESPIPE logic from drivers, letting the VFS layer handle it instead.Linus Torvalds-7/+2
This cleans up and simplifies drivers, and also allows us future simplification in the VFS layer, since it removes knowledge about internal VFS layer handling of "f_pos".
2004-08-07[PATCH] sparc32: remove unused variable in dvma.cWilliam Lee Irwin III-1/+0
This variable is unused and causes noisy compiles. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-07-27[SPARC]: bbc_envctrl.c needs linux/delay.hDavid S. Miller-0/+1
2004-07-27[SPARC]: envctrl: Replace schedule_timeout() with msleep().Nishanth Aravamudan-2/+1
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-07-27[SPARC]: bbc_envctrl: Replace schedule_timeout() with msleep().Nishanth Aravamudan-3/+1
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Signed-off-by: David S. Miller <davem@redhat.com>
2004-07-12[PATCH] sparse: drivers/sbus annotationAlexander Viro-82/+84
2004-07-12[PATCH] sparse: drivers/sbus fixesAlexander Viro-6/+5
a) vfc is not 64bit-clean, marked as such in Kconfig b) aurora is simply broken - still uses tqueues. Marked as broken. c) vfc does dereferencing of userland pointer, right after having carefully copied the data to kernel space ;-) Fixed. d) vfc ->mmap() had missed prototype change. Fixed. e) BPP ioctls are misdeclared - they should've been _IO(...) instead of _IOR(..., void). Too late to fix, but we can at least make them _IOR(..., char) - same value, but doesn't try to find sizeof(void).
2004-07-12[PATCH] sparse: NULL noise removal in drivers/sbusAlexander Viro-9/+9
2004-07-11Merge foobazco.org:/sources/2.5-bkKeith M. Wesolowski-0/+4
into foobazco.org:/sources/2.5-sparc-todave
2004-06-23[PATCH] Move saved_command_line to init/main.cAndrew Morton-1/+0
From: Rusty Russell <rusty@rustcorp.com.au> Currently every arch declares its own char saved_command_line[]. Make sure every arch defines COMMAND_LINE_SIZE in asm/setup.h, and declare saved_command_line in linux/init.h (init/main.c contains the definition). Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-06-09[SPARC32]: Fix CONFIG_SUN4 buildKeith M. Wesolowski-0/+4
2004-03-06[PATCH] drivers/sbus/char/vfc_dev.c needs mm.hAndrew Morton-0/+1
From: Jakub Bogusz <qboosh@pld-linux.org> drivers/sbus/char/vfc_dev.c: In function `vfc_mmap': drivers/sbus/char/vfc_dev.c:623: error: dereferencing pointer to incomplete type
2004-02-22[PATCH] more serial driver fixupsAndrew Morton-39/+22
From: Russell King <rmk@arm.linux.org.uk> Here is a patch which updates various serial drivers in the kernel to make them less broken than they were before. Nevertheless, they are still broken. The improvement is to make these drivers use the tiocmget/tiocmset methods, which are present in the 2.6 kernel. Many of these have been incorrectly converted from the old global IRQ locking without regard for SMP issues, or still use the old global IRQ locking methods which are no longer present in 2.6 kernels. The full message thread can be found at: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&threadm=1dvnl-5Pr-1%40gated-at.bofh.it&rnum=1&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DISO-8859-1%26q%3DOutstanding%2Bfixups%26btnG%3DGoogle%2BSearch%26meta%3Dgroup%253Dlinux.kernel
2004-01-19[PATCH] RTC leaks.Andrew Morton-0/+1
From: Russell King, Tom Rini, Dave Jones As plugged in 2.4 recently. Fix some leakage of uninitialised memory to userspace via rtc reads.
2004-01-04[SPARC]: Add missing MODULE_LICENSE tags to various Sparc driver.Tom 'spot' Callaway-0/+4
2003-10-06[SPARC64]: Fix kernel_thread() return value check in envctrl.cEric Brower-1/+1
2003-10-05[PATCH] janitor: schedule_timeout sets curr->state (arm)Randy Dunlap-3/+0
From: Alexey Dobriyan <adobriyan@mail.ru> Don't set process state to TASK_RUNNING after a schedule_timeout(), since there's no way we will return from the scheduler if we're not running.
2003-10-04[SPARC64]: Fix typo in bbc_envctrl.cMichael Shields-1/+1
2003-10-04[SPARC64]: Fix watchdog on CP1500/Netra-t1.Michael Shields-1/+1
2003-09-29[SPARC]: jsflash updatePete Zaitcev-21/+10
Parts of this come from a janitor named Domen, unfortunately, I forgot his e-mail... Anyhow, it's obvious that janitors did not try to compile result of their efforts, this version at least builds.
2003-09-24Manual merge of Kconfig file module commentsLinus Torvalds-3/+4
2003-09-24[PATCH] Kconfig fixes for modules.txtRusty Russell-3/+4
Kconfig cleanup megapatch from Nicolas Kaiser <nikai@nikai.net>. modules.txt no longer exists, and the common wording used to refer to it sucks. This is all by Nicolas Kaiser's: at Randy and Matthew's request, "say M" changed to "choose M" (more sense for graphical front ends, too).
2003-09-19[SPARC]: Remove unneeded includes (from Randy Hron).Randy Dunlap-3/+0
2003-08-31[SPARC]: Mark get_rtc_time() static in SBUS rtc driver.David S. Miller-1/+1
2003-08-30[PATCH] dev_t handling cleanups (10/12)Alexander Viro-13/+13
new helper - iminor(inode); defined as minor(inode->i_rdev); lots and lots of places in drivers had been switched to it.
2003-08-08[SPARC64]: Delete fop->read stub in riowatchdog driver.Rob Radez-6/+0
2003-08-06[PATCH] Proper block queue reference countingJens Axboe-4/+10
To be able to properly be able to keep references to block queues, we make blk_init_queue() return the queue that it initialized, and let it be independently allocated and then cleaned up on the last reference. I have grepped high and low, and there really shouldn't be any broken uses of blk_init_queue() in the kernel drivers left. The added bonus being blk_init_queue() error checking is explicit now, most of the drivers were broken in this regard (even IDE/SCSI). No drivers have embedded request queue structures. Drivers that don't use blk_init_queue() but blk_queue_make_request(), should allocate the queue with blk_alloc_queue(gfp_mask). I've converted all of them to do that, too. They can call blk_cleanup_queue() now too, using the define blk_put_queue() is probably cleaner though.
2003-07-22[SPARC]: Fix compile warnings in flash driver when !PCI.David S. Miller-1/+4