aboutsummaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2006-10-16[PATCH] ide: add sanity checking to ide taskfile ioctlAlan Cox1-4/+9
Without this the user can feed in bogus values and get very bogus results. Security impact is minimal as this ioctl isn't available to unpriviledged processes anyway. Reported to the l/k list and found with an auditing tool. Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-16[PATCH] rio: fix array checkingAlan Cox1-2/+2
Found by an analysis tool and reported to the list. Fix is simple enough Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-15[Bluetooth] Use work queue to trigger URB submissionMarcel Holtmann1-10/+7
The bcm203x firmware loading driver uses a timer to trigger the URB submission. It is better to use a work queue instead. Signed-off-by: Marcel Holtmann <[email protected]>
2006-10-15[AGPGART] uninorth: Add module param 'aperture' for aperture sizeMichel D�nzer1-19/+35
In contrast to most if not all PC BIOSes, OpenFirmware (OF) on PowerMacs with UniNorth bridges does not allow changing the aperture size. The size set up by OF is usually 16 MB, which is too low for graphics intensive environments. Hence, add a module parameter that allows changing the aperture size at driver initialization time. When the parameter is not specified, the default is 32 MB. Signed-off-by: Michel Dänzer <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Dave Jones <[email protected]>
2006-10-15Merge branch 'release' of ↵Linus Torvalds18-932/+869
git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (28 commits) ACPI: check battery status on resume for un/plug events during sleep ACPICA: Fix incorrect handling of PCI Express Root Bridge _HID ACPI: asus_acpi: don't printk on writing garbage to proc files ACPI: asus_acpi: fix proc files parsing ACPI: SCI interrupt source override ACPI: fix printk format warnings ACPI: fix section for CPU init functions ACPI: update comments in motherboard.c ACPI: acpi_pci_link_set() can allocate with either GFP_ATOMIC or GFP_KERNEL ACPI: fix potential OOPS in power driver with CONFIG_ACPI_DEBUG ACPI: ibm_acpi: delete obsolete documentation ACPI: created a dedicated workqueue for notify() execution ACPI: Remove deferred execution from global lock acquire wakeup path MSI S270 Laptop support: backlight, wlan, bluetooth states ACPI: EC: export ec_transaction() for msi-laptop driver ACPI: EC: Simplify acpi_hw_low_level*() with inb()/outb(). ACPI: EC: Unify poll and interrupt gpe handlers ACPI: EC: Unify poll and interrupt mode transaction functions ACPI: EC: Remove unused variables and duplicated code ACPI: EC: Remove unnecessary delay added by previous transation patch. ...
2006-10-15Merge branch 'master' of ↵Linus Torvalds24-79/+340
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: V4L/DVB (4750): AGC command1/2 is board specific V4L/DVB (4748): Fixed oops for Nova-T USB2 V4L/DVB (4746): HM12 is YUV 4:2:0, not YUV 4:1:1 V4L/DVB (4744): The Samsung TCPN2121P30A does not have a tda9887 V4L/DVB (4743): Fix oops in VIDIOC_G_PARM V4L/DVB (4742): Drivers/media/video: handle sysfs errors V4L/DVB (4741): {ov511,stv680}: handle sysfs errors V4L/DVB (4740): Fixed an if-block to avoid floating with debug-messages V4L/DVB (4739): SECAM support for saa7113 into saa7115 V4L/DVB (4738): Bt8xx/dvb-bt8xx.c: check kmalloc() return value. V4L/DVB (4734): Tda826x: fix frontend selection for dvb_attach V4L/DVB (4733): Tda10086: fix frontend selection for dvb_attach V4L/DVB (4732): Fix spelling error in Kconfig help text for DVB_CORE_ATTACH V4L/DVB (4731a): Kconfig: restore pvrusb2 menu items V4L/DVB (4729): Fix VIDIOC_G_FMT for NTSC in cx25840. V4L/DVB (4727): Support status readout for saa713x based FM radio V4L/DVB (4725): Fix vivi compile on parisc V4L/DVB (4692): Add WinTV-HVR3000 DVB-T support
2006-10-15[PATCH] serial167 __user annotations, NULL noise removalAl Viro1-26/+26
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-15[PATCH] hp drivers/input stuff: C99 initializers, NULL noise removal, __user ↵Al Viro3-15/+15
annotations Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-15[ARM] Fix Zaurii keyboard/touchscreen driversRussell King4-5/+5
The Zaurii drivers were partially fixed up for the IRQ register changes, but unfortunately missed some bits, resulting in build errors. Fix these. Signed-off-by: Russell King <[email protected]>
2006-10-14[WATCHDOG] remove experimental on iTCO_wdt.cWim Van Sebroeck1-4/+7
The iTCO_wdt.c driver has been tested enough. So we can remove the experimental classification. Signed-off-by: Wim Van Sebroeck <[email protected]>
2006-10-14Pull trivial into test branchLen Brown7-11/+14
2006-10-14Pull bugzilla-5534 into test branchLen Brown2-34/+14
2006-10-14Pull msi-laptop into test branchLen Brown3-0/+415
2006-10-14Pull ec into test branchLen Brown1-803/+293
2006-10-14Pull mwait into test branchLen Brown1-38/+63
2006-10-14Pull battery into test branchLen Brown2-7/+27
2006-10-14Pull ibm into test branchLen Brown1-2/+0
2006-10-14Pull asus into test branchLen Brown1-30/+37
2006-10-14ACPI: check battery status on resume for un/plug events during sleepJiri Kosina1-0/+14
Add ->resume method to the ACPI battery handler to check if the battery state has changed during sleep. If yes, update the ACPI internal data structures for benefit of /proc/acpi/battery/. Signed-off-by: Jiri Kosina <[email protected]> Cc: Stefan Seyfried <[email protected]> Acked-by: Pavel Machek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPICA: Fix incorrect handling of PCI Express Root Bridge _HIDEiichiro Oiwa1-7/+6
I could not get correct PCI Express bus number from the structure of acpi_object_extra. I always get zero as bus number regardless of bus location. I found that there is incorrect comparison with _HID (PNP0A08) in acpi/events/evrgnini.c and PCI Express _BBN method always fail. Therefore, we always get zero as PCI Express bus number. http://bugzilla.kernel.org/show_bug.cgi?id=7145 Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Alexey Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: asus_acpi: don't printk on writing garbage to proc filesAlexey Dobriyan1-9/+1
This reporting is useless (we errno anyway). Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: asus_acpi: fix proc files parsingDarren Jenkins1-23/+23
ICC complains about a "Pointless comparsion of unsigned interger with zero" @ line 760 & 808 of asus_acpi.c parse_arg() mentioned below returns -E but it's copied into unsigned variable... Signed-off-by: Darren Jenkins <[email protected]> Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: fix printk format warningsRandy Dunlap2-2/+2
Fix printk format warnings in drivers/acpi: drivers/acpi/tables/tbget.c:326: warning: format '%X' expects type 'unsigned int', but argument 5 has type 'long unsigned int' drivers/acpi/tables/tbrsdt.c:189: warning: format '%X' expects type 'unsigned int', but argument 5 has type 'long unsigned int' Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: fix section for CPU init functionsPierre Ossman2-2/+2
The ACPI processor init functions should be marked as __cpuinit as they use structures marked with __cpuinitdata. Signed-off-by: Pierre Ossman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: update comments in motherboard.cLen Brown1-0/+6
Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: acpi_pci_link_set() can allocate with either GFP_ATOMIC or GFP_KERNELJiri Kosina1-1/+1
acpi_pci_link_set() allocates both with interrupts on and with interrupts off (resume-time), so check interrupts and decide on GFP_ATOMIC or GFP_KERNEL at run-time. Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: fix potential OOPS in power driver with CONFIG_ACPI_DEBUGDmitry Torokhov1-6/+3
device was set to null and used before set in a debug printk Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: created a dedicated workqueue for notify() executionAlexey Y. Starikovskiy1-21/+13
http://bugzilla.kernel.org/show_bug.cgi?id=5534#c160 Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: Remove deferred execution from global lock acquire wakeup pathAlexey Y. Starikovskiy1-13/+1
On acquiring the ACPI global lock, if there were sleepers on the lock, we used to use acpi_os_execute() to defer a thread which would signal sleepers. Now just signal the semaphore directly. http://bugzilla.kernel.org/show_bug.cgi?id=5534#c159 Signed-off-by: Len Brown <[email protected]>
2006-10-14MSI S270 Laptop support: backlight, wlan, bluetooth statesLennart Poettering3-0/+415
Create a driver to support the platform-specific features of MSI S270 laptops (and maybe other MSI laptops). This driver implements a backlight device for controlling LCD brightness (/sys/class/backlight/msi-laptop-bl/). In addition it allows access to the WLAN and Bluetooth states through a platform driver (/sys/devices/platform/msi-laptop-pf/). Signed-off-by: Lennart Poettering <[email protected]> Cc: Dmitry Torokhov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: EC: export ec_transaction() for msi-laptop driverLennart Poettering1-0/+2
Signed-off-by: Lennart Poettering <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: EC: Simplify acpi_hw_low_level*() with inb()/outb().Denis M. Sadykov1-79/+45
Simplify acpi_hw_low_level_xxx() functions to inb() and outb(). Signed-off-by: Alexey Y. Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: EC: Unify poll and interrupt gpe handlersDenis M. Sadykov1-95/+12
Signed-off-by: Alexey Y. Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: EC: Unify poll and interrupt mode transaction functionsDenis M. Sadykov1-81/+29
Signed-off-by: Alexey Y. Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: EC: Remove unused variables and duplicated codeDenis M. Sadykov1-458/+253
Signed-off-by: Alexey Y. Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: EC: Remove unnecessary delay added by previous transation patch.Denis M. Sadykov1-53/+50
Remove unnecessary delay (50 ms) while reading data from EC in interrupt mode. Signed-off-by: Alexey Y. Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: consolidate functions in acpi ec driverLennart Poettering1-230/+95
Unify the following functions: acpi_ec_poll_read() acpi_ec_poll_write() acpi_ec_poll_query() acpi_ec_intr_read() acpi_ec_intr_write() acpi_ec_intr_query() into: acpi_ec_poll_transaction() acpi_ec_intr_transaction() These new functions take as arguments an ACPI EC command, a few bytes to write to the EC data register and a buffer for a few bytes to read from the EC data register. The old _read(), _write(), _query() are just special cases of these functions. Then unified the code in acpi_ec_poll_transaction() and acpi_ec_intr_transaction() a little more. Both functions are now just wrappers around the new acpi_ec_transaction_unlocked() function. The latter contains the EC access logic, the two original function now just do their special way of locking and call the the new function for the actual work. This saves a lot of very similar code. The primary reason for doing this, however, is that my driver for MSI 270 laptops needs to issue some non-standard EC commands in a safe way. Due to this I added a new exported function similar to ec_write()/ec_write() which is called ec_transaction() and is essentially just a wrapper around acpi_ec_{poll,intr}_transaction(). Signed-off-by: Lennart Poettering <[email protected]> Acked-by: Luming Yu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: Processor native C-states using MWAITVenkatesh Pallipadi1-38/+63
Intel processors starting with the Core Duo support support processor native C-state using the MWAIT instruction. Refer: Intel Architecture Software Developer's Manual http://www.intel.com/design/Pentium4/manuals/253668.htm Platform firmware exports the support for Native C-state to OS using ACPI _PDC and _CST methods. Refer: Intel Processor Vendor-Specific ACPI: Interface Specification http://www.intel.com/technology/iapc/acpi/downloads/302223.htm With Processor Native C-state, we use 'MWAIT' instruction on the processor to enter different C-states (C1, C2, C3). We won't use the special IO ports to enter C-state and no SMM mode etc required to enter C-state. Overall this will mean better C-state support. One major advantage of using MWAIT for all C-states is, with this and "treat interrupt as break event" feature of MWAIT, we can now get accurate timing for the time spent in C1, C2, .. states. Signed-off-by: Venkatesh Pallipadi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: sbs: fix module_param() initializersLebedev, Vladimir P1-5/+5
Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: sbs: check for NULL device pointerLebedev, Vladimir P1-2/+8
Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: ibm_acpi: Remove experimental status for brightness and volume.Stefan Schmidt1-2/+0
The brightness and volume features from ibm-acpi are stable. The experimental flag is no longer needed. Signed-off-by: Stefan Schmidt <[email protected]> Acked-by: Borislav Deianov <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14ACPI: asus_acpi: W3000 supportMarek W1-1/+16
Add support for W3000 (W3V) and indirectly fixes an issue with kmilo under KDE (it was triggering excessive LCD read error messages by querying asus_acpi module) allowing people (I am probably the only one who tested this) with W3000 to run kmilo. Cc: Karol Kozimor <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2006-10-14V4L/DVB (4750): AGC command1/2 is board specificPatrick Boettcher3-3/+13
Added config-struct-parameter to take board-specific AGC command 1 and 2 into account. Signed-off-by: Patrick Boettcher <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4748): Fixed oops for Nova-T USB2Patrick Boettcher2-1/+4
When using the remote control with the Nova-T USB there was an Oops because of the recent DVB-USB-Adapter change. Signed-off-by: Patrick Boettcher <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4744): The Samsung TCPN2121P30A does not have a tda9887Hans Verkuil1-1/+0
Contrary to all expections the Samsung TCPN2121P30A tuner does NOT have a tda9887. Remove the tda9887 flag from the tuner definition. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4743): Fix oops in VIDIOC_G_PARMJonathan Corbet1-2/+9
The call to v4l2_std_construct() in the VIDIOC_G_PARM handler treats vfd->current_norm as if it were an index - but it's not. The result is an oops if the driver has no vidioc_g_parm() method defined. Here's the fix. Signed-off-by: Jonathan Corbet <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4742): Drivers/media/video: handle sysfs errorsJeff Garzik3-32/+117
Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4741): {ov511,stv680}: handle sysfs errorsJeff Garzik2-21/+90
Signed-off-by: Jeff Garzik <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4740): Fixed an if-block to avoid floating with debug-messagesEnrico Scholz1-2/+3
The dbgarg() macro in videodev.c contains some printk() statements where only the first one is influenced by an if-statement. This causes floating with debug-messages which is fixed by this patch by adding a '{ ... }' pair. Signed-off-by: Enrico Scholz <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2006-10-14V4L/DVB (4739): SECAM support for saa7113 into saa7115P�draig Brady1-0/+2
Without the attached trivial patch, the saa7113 is set up for PAL when SECAM is selected and hence will see only show black and white for SECAM signals. Tested the patch against the saa7115 module in linux-2.6.17 with a Pinnacle 50e USB tuner (em28xx). Signed-off-by: P�draig Brady <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>