aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc
AgeCommit message (Collapse)AuthorFilesLines
2009-01-07xpnet: convert devices to new APIStephen Hemminger1-48/+20
Convert to net_device_ops and internal net_device_stats Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2009-01-07Merge branch 'for-linus' of ↵Linus Torvalds2-2/+2
git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (24 commits) trivial: chack -> check typo fix in main Makefile trivial: Add a space (and a comma) to a printk in 8250 driver trivial: Fix misspelling of "firmware" in docs for ncr53c8xx/sym53c8xx trivial: Fix misspelling of "firmware" in powerpc Makefile trivial: Fix misspelling of "firmware" in usb.c trivial: Fix misspelling of "firmware" in qla1280.c trivial: Fix misspelling of "firmware" in a100u2w.c trivial: Fix misspelling of "firmware" in megaraid.c trivial: Fix misspelling of "firmware" in ql4_mbx.c trivial: Fix misspelling of "firmware" in acpi_memhotplug.c trivial: Fix misspelling of "firmware" in ipw2100.c trivial: Fix misspelling of "firmware" in atmel.c trivial: Fix misspelled firmware in Kconfig trivial: fix an -> a typos in documentation and comments trivial: fix then -> than typos in comments and documentation trivial: update Jesper Juhl CREDITS entry with new email trivial: fix singal -> signal typo trivial: Fix incorrect use of "loose" in event.c trivial: printk: fix indentation of new_text_line declaration trivial: rtc-stk17ta8: fix sparse warning ...
2009-01-06Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6Linus Torvalds6-12/+11
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: (60 commits) uio: make uio_info's name and version const UIO: Documentation for UIO ioport info handling UIO: Pass information about ioports to userspace (V2) UIO: uio_pdrv_genirq: allow custom irq_flags UIO: use pci_ioremap_bar() in drivers/uio arm: struct device - replace bus_id with dev_name(), dev_set_name() libata: struct device - replace bus_id with dev_name(), dev_set_name() avr: struct device - replace bus_id with dev_name(), dev_set_name() block: struct device - replace bus_id with dev_name(), dev_set_name() chris: struct device - replace bus_id with dev_name(), dev_set_name() dmi: struct device - replace bus_id with dev_name(), dev_set_name() gadget: struct device - replace bus_id with dev_name(), dev_set_name() gpio: struct device - replace bus_id with dev_name(), dev_set_name() gpu: struct device - replace bus_id with dev_name(), dev_set_name() hwmon: struct device - replace bus_id with dev_name(), dev_set_name() i2o: struct device - replace bus_id with dev_name(), dev_set_name() IA64: struct device - replace bus_id with dev_name(), dev_set_name() i7300_idle: struct device - replace bus_id with dev_name(), dev_set_name() infiniband: struct device - replace bus_id with dev_name(), dev_set_name() ISDN: struct device - replace bus_id with dev_name(), dev_set_name() ...
2009-01-06ioc4: automatically load sgiioc4 subordinate moduleBrent Casavant1-0/+36
Modify ioc4 to always load the sgiioc4 IDE module if the board carrying the IOC4 hardware actually implements the IDE interface (not all boards bring this functionality off the IOC4 chip). A drive hosted on the IDE interface may contain the root filesystem, and sgiioc4 doesn't load automatically as ioc4 owns the PCI device ID, not sgiioc4. [[email protected]: coding-style fixes] Signed-off-by: Michael Reed <[email protected]> Signed-off-by: Brent Casavant <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-01-06pci: use pci_ioremap_bar() in drivers/miscArjan van de Ven2-4/+2
Use the newly introduced pci_ioremap_bar() function in drivers/misc. pci_ioremap_bar() just takes a pci device and a bar number, with the goal of making it really hard to get wrong, while also having a central place to stick sanity checks. Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2009-01-06SGI: struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers4-7/+7
CC: Jack Steiner <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-01-06tifm: struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers2-5/+4
Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2009-01-06trivial: fix an -> a typos in documentation and commentsFrederik Schwarzer1-1/+1
It is always "an" if there is a vowel _spoken_ (not written). So it is: "an hour" (spoken vowel) but "a uniform" (spoken 'j') Signed-off-by: Frederik Schwarzer <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
2009-01-06trivial: Fix incorrect use of "loose" in event.cNick Andrew1-1/+1
Fix incorrect use of loose in event.c It should be 'lose', not 'loose'. Signed-off-by: Nick Andrew <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
2009-01-05zero i_uid/i_gid on inode allocationAl Viro1-2/+0
... and don't bother in callers. Don't bother with zeroing i_blocks, while we are at it - it's already been zeroed. i_mode is not worth the effort; it has no common default value. Signed-off-by: Al Viro <[email protected]>
2009-01-02[SCSI] struct device - replace bus_id with dev_name(), dev_set_name()Kay Sievers1-4/+4
[jejb: limit ioctl to returning 20 characters to avoid overrun on long device names and add a few more conversions] Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: James Bottomley <[email protected]>
2008-12-31ACPI: remove private acpica headers from driver filesLin Ming2-2/+0
External driver files should not include any private acpica headers. Signed-off-by: Lin Ming <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-12-31ACPI: panasonic-laptop.c: remove ACPI_FUNCTION_TRACELin Ming1-22/+0
ACPI_FUNCTION_TRACE is an internal acpica function. remove ACPI_FUNCTION_TRACE from driver file Signed-off-by: Lin Ming <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-12-31ACPI: sony-laptop.c: call acpi_get_object_info to get node infoLin Ming1-6/+9
Avoid using internal acpica structures acpi_namespace_node and acpi_operand_object Call acpi_get_object_info to get node ascii name and method arg count Signed-off-by: Lin Ming <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-12-28Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6Linus Torvalds1-9/+4
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (1429 commits) net: Allow dependancies of FDDI & Tokenring to be modular. igb: Fix build warning when DCA is disabled. net: Fix warning fallout from recent NAPI interface changes. gro: Fix potential use after free sfc: If AN is enabled, always read speed/duplex from the AN advertising bits sfc: When disabling the NIC, close the device rather than unregistering it sfc: SFT9001: Add cable diagnostics sfc: Add support for multiple PHY self-tests sfc: Merge top-level functions for self-tests sfc: Clean up PHY mode management in loopback self-test sfc: Fix unreliable link detection in some loopback modes sfc: Generate unique names for per-NIC workqueues 802.3ad: use standard ethhdr instead of ad_header 802.3ad: generalize out mac address initializer 802.3ad: initialize ports LACPDU from const initializer 802.3ad: remove typedef around ad_system 802.3ad: turn ports is_individual into a bool 802.3ad: turn ports is_enabled into a bool 802.3ad: make ntt bool ixgbe: Fix set_ringparam in ixgbe to use the same memory pools. ... Fixed trivial IPv4/6 address printing conflicts in fs/cifs/connect.c due to the conversion to %pI (in this networking merge) and the addition of doing IPv6 addresses (from the earlier merge of CIFS).
2008-12-23eeepc-laptop: use select and not depends onCorentin Chary1-3/+3
As len said: "Kconfig should offer users features, and not make users devine their dependencies. Signed-off-by: Corentin Chary <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-12-19create drivers/platform/x86/ from drivers/misc/Len Brown14-17578/+0
Move x86 platform specific drivers from drivers/misc/ to a new home under drivers/platform/x86/. The community has been maintaining x86 vendor-specific platform specific drivers under /drivers/misc/ for a few years. The oldest ones started life under drivers/acpi. They moved out of drivers/acpi/ because they don't actually implement the ACPI specification, but either simply use ACPI, or implement vendor-specific ACPI extensions. In the future we anticipate... drivers/misc/ will go away. other architectures will create drivers/platform/<arch> Signed-off-by: Len Brown <[email protected]>
2008-12-19drivers/misc/Makefile, Kconfig: cleanupLen Brown2-22/+21
tabs->space and delete unnecessary dummy build-in.o rule. Suggested-by: Sam Ravnborg <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-12-16sgi-xp: xpc needs to pass the physical address, not virtualRuss Anderson1-4/+4
Impact: fix crash xpc needs to pass the physical address, not virtual. Testing uncovered this problem. The virtual address happens to work most of the time due to the way bios was masking off the node bits. Passing the physical address makes it work all of the time. Signed-off-by: Russ Anderson <[email protected]> Acked-by: Dean Nelson <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
2008-12-16Merge commit 'v2.6.28-rc8' into x86/uvIngo Molnar4-15/+52
2008-12-15Merge branch 'master' of ↵David S. Miller1-0/+4
master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 Conflicts: drivers/net/e1000e/ich8lan.c
2008-12-09[IA64] Fix GRU compile error w/o CONFIG_HUGETLB_PAGEJack Steiner1-0/+4
Eliminate compile error when compiling without CONFIG_HUGETLB_PAGE. Signed-off-by: Jack Steiner <[email protected]> Signed-off-by: Tony Luck <[email protected]>
2008-12-04sgi-xp: Kill directly reference of netdev->privWang Chen1-9/+4
Simply replace netdev->priv with netdev_priv(). [ Kill unnecessary casts, noticed by Ilpo -DaveM ] Signed-off-by: Wang Chen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2008-12-02sgi-gru: call fs_initcall() if statically linkedDean Nelson1-1/+1
If xpc.ko and gru.ko are both statically linked into the kernel, then xpc_init() can get called before gru_init() and make a call to one of the gru's exported functions before the gru has initialized itself. The end result is a NULL dereference. Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-11-26ACPI: thinkpad-acpi: fix fan sleep/resume pathHenrique de Moraes Holschuh1-12/+45
This fixes a regression from v2.6.27, caused by commit 5814f737e1cd2cfa2893badd62189acae3e1e1fd, "ACPI: thinkpad-acpi: attempt to preserve fan state on resume". It is possible for fan_suspend() to fail to properly initialize fan_control_desired_level as required by fan_resume(), resulting on the fan always being set to level 7 on resume if the user didn't touch the fan controller. In order to get fan sleep/resume handling to work right: 1. Fix the fan_suspend handling of the T43 firmware quirk. If it is still undefined, we didn't touch the fan yet and that means we have no business doing it on resume. 2. Store the fan level on its own variable to avoid any possible issues with hijacking fan_control_desired_level (which isn't supposed to have anything other than 0-7 in it, anyway). 3. Change the fan_resume code to me more straightforward to understand (although we DO optimize the boolean logic there, otherwise it looks disgusting). 4. Add comments to help understand what the code is supposed to be doing. 5. Change fan_set_level to be less strict about how auto and full-speed modes are requested. http://bugzilla.kernel.org/show_bug.cgi?id=11982 Signed-off-by: Henrique de Moraes Holschuh <[email protected]> Reported-by: Tino Keitel <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-26sony-laptop: printk tweakAlessandro Guido1-1/+1
There's no need to print "Sony: " just after "sony-laptop: " (DRV_PFX). Signed-off-by: Alessandro Guido <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-26sony-laptop: brightness regression fixAlessandro Guido1-1/+1
After commit 540b8bb9c33935183ceb5bed466a42ad72b2af56: sony-laptop: fingers off backlight if video.ko is serving this functionality I can't set brightness on my sony laptop (nothing in /sys/class/backlight). dmesg says "sony-laptop: Sony: Brightness ignored, must be controlled by ACPI video driver". The function acpi_video_backlight_support returns 0 if we should use the vendor-specific backlight support, while non-0 if the ACPI generic should be used. Because of this, the check introduced by the said commit appears reversed. Signed-off-by: Alessandro Guido <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-20Merge branch 'linus' into x86/uvIngo Molnar22-53/+1848
2008-11-19GRU: fix for debug optionJack Steiner1-0/+4
Enable -D DEBUG in the GRU Makefile if CONFIG_SGI_GRU_DEBUG is selected. Signed-off-by: Jack Steiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-11-15misc: C2port needs <linux/sched.h>Geert Uytterhoeven1-0/+1
m68k allmodconfig: | drivers/misc/c2port/core.c: In function 'c2port_reset': | drivers/misc/c2port/core.c:73: error: dereferencing pointer to incomplete type | drivers/misc/c2port/core.c: In function 'c2port_strobe_ck': | drivers/misc/c2port/core.c:91: error: dereferencing pointer to incomplete type Include <linux/sched.h> to fix it, as m68k's local_irq_enable() needs to know about struct task_struct. Signed-off-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-11-12c2port: add c2port support for Eurotech Duramar 2150Rodolfo Giometti3-0/+171
Signed-off-by: Rodolfo Giometti <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-11-12Add c2 port supportRodolfo Giometti5-0/+1030
C2port implements a two wire serial communication protocol (bit banging) designed to enable in-system programming, debugging, and boundary-scan testing on low pin-count Silicon Labs devices. Currently this code supports only flash programming through sysfs interface but extensions shoud be easy to add. Signed-off-by: Rodolfo Giometti <[email protected]> Cc: Greg KH <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-11-12ics932s401: new clock generator chip driverDarrick J. Wong3-0/+526
The ics932s401 is a clock generator chip. This driver allows users to read the current clock outputs. Signed-off-by: Darrick J. Wong <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-11-11Merge branch 'video' into releaseLen Brown8-40/+77
Conflicts: Documentation/kernel-parameters.txt Signed-off-by: Len Brown <[email protected]>
2008-11-11Merge branch 'misc' into releaseLen Brown3-4/+27
2008-11-11fujitsu-laptop: Add DMI callback for Lifebook S6420Tony Vroon1-0/+15
The Lifebook S6420 is the ICH9M-based follow-up to the S6410. The application panel contains the following keys: lock, mobility center, eco, info. Whilst key 4 might be more appropriate for help then key 2, I've done things the S6410 way. I can confirm that backlight control is functional, and that the lock key activates the Gnome screensaver as expected. Signed-off-by: Tony Vroon <[email protected]> Acked-by: Jonathan Woithe <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-11x86, UV: fix redundant creation of sgi_uvCliff Wickman1-1/+0
Impact: fix double entry creation in /proc There is a collision between two UV functions: both uv_ptc_init() and gru_proc_init() try to make /proc/sgi_uv So move it's creation to a single place: uv_system_init() Signed-off-by: Cliff Wickman <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
2008-11-08thinkpad_acpi: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-10/+19
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Acked-by: Henrique de Moraes Holschuh <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08sony-laptop: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-1/+5
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08msi-laptop: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-6/+10
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08fujitsu-laptop: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-12/+14
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08eeepc-laptop: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-3/+9
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08compal: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-5/+7
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08asus-acpi: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-3/+7
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-08Acer-WMI: fingers off backlight if video.ko is serving this functionalityThomas Renninger1-0/+6
Signed-off-by: Thomas Renninger <[email protected]> Acked-by: Zhang Rui <[email protected]> Signed-off-by: Andi Kleen <[email protected]> Acked-by: Carlos Corbacho <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-06fujitsu-laptop: fix section mismatch warningRandy Dunlap1-1/+1
Could fix a bug in a hotplug add scenario. WARNING: drivers/misc/fujitsu-laptop.o(.text+0xbde): Section mismatch in reference from the function acpi_fujitsu_add() to the variable .init.data:fujitsu_dmi_table The function acpi_fujitsu_add() references the variable __initdata fujitsu_dmi_table. This is often because acpi_fujitsu_add lacks a __initdata annotation or the annotation of fujitsu_dmi_table is wrong. Signed-off-by: Randy Dunlap <[email protected]> Acked-by: Jonathan Woithe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-06intel_menlow: Add comment documenting legal GTHS valuesThomas, Sujith1-0/+5
Signed-off-by: Sujith Thomas <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-06ACPI: remove CONFIG_ACPI_ECBjorn Helgaas1-2/+2
Remove CONFIG_ACPI_EC. It was always set the same as CONFIG_ACPI, and it had no menu label, so there was no way to set it to anything other than "y". Per section 6.5.4 of the ACPI 3.0b specification, OSPM must make Embedded Controller operation regions, accessed via the Embedded Controllers described in ECDT, available before executing any control method. The ECDT table is optional, but if it is present, the above text means that the EC it describes is a required part of the ACPI subsystem, so CONFIG_ACPI_EC=n wouldn't make sense. Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Alexey Starikovskiy <[email protected]> Signed-off-by: Len Brown <[email protected]>
2008-11-05sgi-xp: support getting the address of a partition's reserved pageDean Nelson1-3/+28
Add support for getting the address of a partition's reserved page. Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>
2008-11-05sgi-xp: define xp_partition_id and xp_region_sizeDean Nelson1-2/+2
Define xp_partition_id and xp_region_size to their correct values. Signed-off-by: Dean Nelson <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]>