24 Sep, 2009

32 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6:
    truncate: use new helpers
    truncate: new helpers
    fs: fix overflow in sys_mount() for in-kernel calls
    fs: Make unload_nls() NULL pointer safe
    freeze_bdev: grab active reference to frozen superblocks
    freeze_bdev: kill bd_mount_sem
    exofs: remove BKL from super operations
    fs/romfs: correct error-handling code
    vfs: seq_file: add helpers for data filling
    vfs: remove redundant position check in do_sendfile
    vfs: change sb->s_maxbytes to a loff_t
    vfs: explicitly cast s_maxbytes in fiemap_check_ranges
    libfs: return error code on failed attr set
    seq_file: return a negative error code when seq_path_root() fails.
    vfs: optimize touch_time() too
    vfs: optimization for touch_atime()
    vfs: split generic_forget_inode() so that hugetlbfs does not have to copy it
    fs/inode.c: add dev-id and inode number for debugging in init_special_inode()
    libfs: make simple_read_from_buffer conventional

    Linus Torvalds
     
  • * 'for-linus' of git://neil.brown.name/md: (97 commits)
    md: raid-1/10: fix RW bits manipulation
    md: remove unnecessary memset from multipath.
    md: report device as congested when suspended
    md: Improve name of threads created by md_register_thread
    md: remove sparse warnings about lock context.
    md: remove sparse waring "symbol xxx shadows an earlier one"
    async_tx/raid6: add missing dma_unmap calls to the async fail case
    ioat3: fix uninitialized var warnings
    drivers/dma/ioat/dma_v2.c: fix warnings
    raid6test: fix stack overflow
    ioat2: clarify ring size limits
    md/raid6: cleanup ops_run_compute6_2
    md/raid6: eliminate BUG_ON with side effect
    dca: module load should not be an error message
    ioat: driver version 4.0
    dca: registering requesters in multiple dca domains
    async_tx: remove HIGHMEM64G restriction
    dmaengine: sh: Add Support SuperH DMA Engine driver
    dmaengine: Move all map_sg/unmap_sg for slave channel to its client
    fsldma: Add DMA_SLAVE support
    ...

    Linus Torvalds
     
  • * 'hwpoison' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-mce-2.6: (21 commits)
    HWPOISON: Enable error_remove_page on btrfs
    HWPOISON: Add simple debugfs interface to inject hwpoison on arbitary PFNs
    HWPOISON: Add madvise() based injector for hardware poisoned pages v4
    HWPOISON: Enable error_remove_page for NFS
    HWPOISON: Enable .remove_error_page for migration aware file systems
    HWPOISON: The high level memory error handler in the VM v7
    HWPOISON: Add PR_MCE_KILL prctl to control early kill behaviour per process
    HWPOISON: shmem: call set_page_dirty() with locked page
    HWPOISON: Define a new error_remove_page address space op for async truncation
    HWPOISON: Add invalidate_inode_page
    HWPOISON: Refactor truncate to allow direct truncating of page v2
    HWPOISON: check and isolate corrupted free pages v2
    HWPOISON: Handle hardware poisoned pages in try_to_unmap
    HWPOISON: Use bitmask/action code for try_to_unmap behaviour
    HWPOISON: x86: Add VM_FAULT_HWPOISON handling to x86 page fault handler v2
    HWPOISON: Add poison check to page fault handling
    HWPOISON: Add basic support for poisoned pages in fault handler v3
    HWPOISON: Add new SIGBUS error codes for hardware poison signals
    HWPOISON: Add support for poison swap entries v2
    HWPOISON: Export some rmap vma locking to outside world
    ...

    Linus Torvalds
     
  • This driver memory maps the UV Hub RTC.

    Signed-off-by: Dimitri Sivanich
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dimitri Sivanich
     
  • Introduce core pipe limiting sysctl.

    Since we can dump cores to pipe, rather than directly to the filesystem,
    we create a condition in which a user can create a very high load on the
    system simply by running bad applications.

    If the pipe reader specified in core_pattern is poorly written, we can
    have lots of ourstandig resources and processes in the system.

    This sysctl introduces an ability to limit that resource consumption.
    core_pipe_limit defines how many in-flight dumps may be run in parallel,
    dumps beyond this value are skipped and a note is made in the kernel log.
    A special value of 0 in core_pipe_limit denotes unlimited core dumps may
    be handled (this is the default value).

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Neil Horman
    Reported-by: Earl Chew
    Cc: Oleg Nesterov
    Cc: Andi Kleen
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Neil Horman
     
  • Soft limits is a new feature for the memory resource controller, something
    similar has existed in the group scheduler in the form of shares. The CPU
    controllers interpretation of shares is very different though.

    Soft limits are the most useful feature to have for environments where the
    administrator wants to overcommit the system, such that only on memory
    contention do the limits become active. The current soft limits
    implementation provides a soft_limit_in_bytes interface for the memory
    controller and not for memory+swap controller. The implementation
    maintains an RB-Tree of groups that exceed their soft limit and starts
    reclaiming from the group that exceeds this limit by the maximum amount.

    This patch:

    Add documentation for soft limits

    Signed-off-by: Balbir Singh
    Cc: KAMEZAWA Hiroyuki
    Cc: Li Zefan
    Cc: KOSAKI Motohiro
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Balbir Singh
     
  • Change the memory cgroup to remove the overhead associated with accounting
    all pages in the root cgroup. As a side-effect, we can no longer set a
    memory hard limit in the root cgroup.

    A new flag to track whether the page has been accounted or not has been
    added as well. Flags are now set atomically for page_cgroup,
    pcg_default_flags is now obsolete and removed.

    [akpm@linux-foundation.org: fix a few documentation glitches]
    Signed-off-by: Balbir Singh
    Signed-off-by: Daisuke Nishimura
    Reviewed-by: KAMEZAWA Hiroyuki
    Cc: Daisuke Nishimura
    Cc: Li Zefan
    Cc: Paul Menage
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Balbir Singh
     
  • Alter the ss->can_attach and ss->attach functions to be able to deal with
    a whole threadgroup at a time, for use in cgroup_attach_proc. (This is a
    pre-patch to cgroup-procs-writable.patch.)

    Currently, new mode of the attach function can only tell the subsystem
    about the old cgroup of the threadgroup leader. No subsystem currently
    needs that information for each thread that's being moved, but if one were
    to be added (for example, one that counts tasks within a group) this bit
    would need to be reworked a bit to tell the subsystem the right
    information.

    [hidave.darkstar@gmail.com: fix build]
    Signed-off-by: Ben Blum
    Signed-off-by: Paul Menage
    Acked-by: Li Zefan
    Reviewed-by: Matt Helsley
    Cc: "Eric W. Biederman"
    Cc: Oleg Nesterov
    Cc: Peter Zijlstra
    Cc: Ingo Molnar
    Cc: Dave Young
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Blum
     
  • To simplify referring to cgroup hierarchies in mount statements, and to
    allow disambiguation in the presence of empty hierarchies and
    multiply-bindable subsystems this patch adds support for naming a new
    cgroup hierarchy via the "name=" mount option

    A pre-existing hierarchy may be specified by either name or by subsystems;
    a hierarchy's name cannot be changed by a remount operation.

    Example usage:

    # To create a hierarchy called "foo" containing the "cpu" subsystem
    mount -t cgroup -oname=foo,cpu cgroup /mnt/cgroup1

    # To mount the "foo" hierarchy on a second location
    mount -t cgroup -oname=foo cgroup /mnt/cgroup2

    Signed-off-by: Paul Menage
    Reviewed-by: Li Zefan
    Cc: KAMEZAWA Hiroyuki
    Cc: Balbir Singh
    Cc: Dhaval Giani
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Menage
     
  • Introduce "-p|--pid " for walking the process address space. The
    default action is to walk raw memory PFNs.

    Both the virtual address and physical address of each present pages will
    be listed:

    # ./tools/vm/page-types -lp $$ | head -3
    voffset offset len flags
    400 11bebe 1 __RU_lA____M______________________
    402 11bebc 1 __RU_lA____M______________________

    Note that voffset/offset/len are now showed as hex numbers.

    [akpm@linux-foundation.org: coding-style fixes]
    Cc: Andi Kleen
    Signed-off-by: Wu Fengguang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wu Fengguang
     
  • Signed-off-by: Josh Triplett
    Cc: Wu Fengguang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josh Triplett
     
  • fix the following 'make includecheck' warning:

    Documentation/auxdisplay/cfag12864b-example.c: string.h is included more than once.

    Signed-off-by: Jaswinder Singh Rajput
    Acked-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jaswinder Singh Rajput
     
  • In "documentation: update Documentation/filesystem/proc.txt and
    Documentation/sysctls" (commit 760df93ec) we merged /proc/sys/fs
    documentation in Documentation/sysctl/fs.txt and
    Documentation/filesystem/proc.txt, but stale file-nr definition
    remained.

    This patch adds back the right fs-nr definition for 2.6 kernel.

    Signed-off-by: Xiaotian Feng
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Xiaotian Feng
     
  • Documentation/filesystems/sharedsubtree.txt needs updating because the
    mount command in util-linux package is well aware of shared subtree
    features now. The patch also fixes two typos in sharedsubtree.txt.

    Signed-off-by: Peng Tao
    Signed-off-by: Randy Dunlap
    Cc: Miklos Szeredi
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peng Tao
     
  • mount(8) handles shared subtrees just fine, so remove the smount program
    from Documentation/filesystems/sharedsubtree.txt.

    Fix annoying "Lets" -> "Let's".
    Insert space between '#' prompt and "mount" command.

    Signed-off-by: Randy Dunlap
    Acked-by: Miklos Szeredi
    Cc: Christoph Hellwig
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Introduce new truncate helpers truncate_pagecache and inode_newsize_ok.
    vmtruncate is also consolidated from mm/memory.c and mm/nommu.c and
    into mm/truncate.c.

    Reviewed-by: Christoph Hellwig
    Signed-off-by: Nick Piggin
    Signed-off-by: Al Viro

    npiggin@suse.de
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next: (30 commits)
    Use macros for .data.page_aligned section.
    Use macros for .bss.page_aligned section.
    Use new __init_task_data macro in arch init_task.c files.
    kbuild: Don't define ALIGN and ENTRY when preprocessing linker scripts.
    arm, cris, mips, sparc, powerpc, um, xtensa: fix build with bash 4.0
    kbuild: add static to prototypes
    kbuild: fail build if recordmcount.pl fails
    kbuild: set -fconserve-stack option for gcc 4.5
    kbuild: echo the record_mcount command
    gconfig: disable "typeahead find" search in treeviews
    kbuild: fix cc1 options check to ensure we do not use -fPIC when compiling
    checkincludes.pl: add option to remove duplicates in place
    markup_oops: use modinfo to avoid confusion with underscored module names
    checkincludes.pl: provide usage helper
    checkincludes.pl: close file as soon as we're done with it
    ctags: usability fix
    kernel hacking: move STRIP_ASM_SYMS from General
    gitignore usr/initramfs_data.cpio.bz2 and usr/initramfs_data.cpio.lzma
    kbuild: Check if linker supports the -X option
    kbuild: introduce ld-option
    ...

    Fix trivial conflict in scripts/basic/fixdep.c

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
    9p: Update documentation to add fscache related bits
    9p: Add fscache support to 9p
    9p: Fix the incorrect update of inode size in v9fs_file_write()
    9p: Use the i_size_[read, write]() macros instead of using inode->i_size directly.

    Linus Torvalds
     
  • * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    hwmon: (ltc4245) Clear faults at startup
    hwmon: (ltc4215) Clear faults at startup
    hwmon: (coretemp) Add Lynnfield CPU
    hwmon: (coretemp) Add support for Penryn mobile CPUs
    hwmon: (coretemp) Fix Atom CPUs support
    hwmon: Delete deprecated FSC drivers
    hwmon: (adm1031) Add sysfs files for temperature offsets

    Linus Torvalds
     
  • Add Lynnfield processor support. Lynnfield is a quad-core Nehalem
    based microprocessor for Desktop market, which is introduced in
    September 2009.

    Signed-off-by: Huaxu Wan
    Signed-off-by: Kent Liu
    Acked-by: Rudolf Marek
    Signed-off-by: Jean Delvare

    Huaxu Wan
     
  • Following patch adds support for mobile Penryn CPUs. Intel documents this
    poorly. I asked the Coretemp author for some help. This is totally untested and
    may not work. Please test!

    Signed-off-by: Rudolf Marek
    Cc: Huaxu Wan
    Cc: Kent Liu
    Signed-off-by: Jean Delvare

    Rudolf Marek
     
  • Fix Atom CPUs support. Intel documents TjMax at 90 degrees C but
    some Atoms may have 125 degrees C (this is undocumented speculation).

    Signed-off-by: Rudolf Marek
    Cc: Huaxu Wan
    Cc: Kent Liu
    Signed-off-by: Jean Delvare

    Rudolf Marek
     
  • The legacy fscpos and fscher drivers have been replaced by the unified
    fschmd driver. The transition period is over now, we can delete them.

    Signed-off-by: Jean Delvare
    Acked-by: Hans de Goede

    Jean Delvare
     
  • Update the documentation to describe FS-Cache related
    caching parameters. This patch also updates the pointers
    to 9p-related papers and adds pointer to the Wiki.

    Signed-off-by: Abhishek Kulkarni
    Signed-off-by: Eric Van Hensbergen

    Abhishek Kulkarni
     
  • * git://git.infradead.org/battery-2.6:
    power_supply: Add driver for the PMU on WM831x PMICs
    ds2760_battery: Fix integer overflow for time_to_empty_now
    wm97xx_battery: Convert to dev_pm_ops
    wm97xx_battery: Use irq to detect charger state
    wm97xx_battery: Use platform_data
    wm97xx-core: Pass platform_data to battery
    ds2760_battery: implement set_charged() feature
    power_supply: get_by_name and set_charged functionality
    power_supply: EXPORT_SYMBOL cleanups
    ds2760_battery: add current_accum module parameter
    ds2760_battery: handle full_active_uAh == 0 case correctly
    ds2760_battery: add rated_capacity module parameter
    ds2760_battery: export more features
    ds2760_battery: delay power supply registration
    wm8350_power: Implement charge type property
    power_supply: Add a charge_type property, and use it for olpc driver
    olpc_battery: Add an 'error' sysfs device that displays raw errors
    Revert "power: remove POWER_SUPPLY_PROP_CAPACITY_LEVEL"

    Linus Torvalds
     
  • * git://git.infradead.org/mtd-2.6: (58 commits)
    mtd: jedec_probe: add PSD4256G6V id
    mtd: OneNand support for Nomadik 8815 SoC (on NHK8815 board)
    mtd: nand: driver for Nomadik 8815 SoC (on NHK8815 board)
    m25p80: Add Spansion S25FL129P serial flashes
    jffs2: Use SLAB_HWCACHE_ALIGN for jffs2_raw_{dirent,inode} slabs
    mtd: sh_flctl: register sh_flctl using platform_driver_probe()
    mtd: nand: txx9ndfmc: transfer 512 byte at a time if possible
    mtd: nand: fix tmio_nand ecc correction
    mtd: nand: add __nand_correct_data helper function
    mtd: cfi_cmdset_0002: add 0xFF intolerance for M29W128G
    mtd: inftl: fix fold chain block number
    mtd: jedec: fix compilation problem with I28F640C3B definition
    mtd: nand: fix ECC Correction bug for SMC ordering for NDFC driver
    mtd: ofpart: Check availability of reg property instead of name property
    driver/Makefile: Initialize "mtd" and "spi" before "net"
    mtd: omap: adding DMA mode support in nand prefetch/post-write
    mtd: omap: add support for nand prefetch-read and post-write
    mtd: add nand support for w90p910 (v2)
    mtd: maps: add mtd-ram support to physmap_of
    mtd: pxa3xx_nand: add single-bit error corrections reporting
    ...

    Linus Torvalds
     
  • * git://git.infradead.org/iommu-2.6: (23 commits)
    intel-iommu: Disable PMRs after we enable translation, not before
    intel-iommu: Kill DMAR_BROKEN_GFX_WA option.
    intel-iommu: Fix integer wrap on 32 bit kernels
    intel-iommu: Fix integer overflow in dma_pte_{clear_range,free_pagetable}()
    intel-iommu: Limit DOMAIN_MAX_PFN to fit in an 'unsigned long'
    intel-iommu: Fix kernel hang if interrupt remapping disabled in BIOS
    intel-iommu: Disallow interrupt remapping if not all ioapics covered
    intel-iommu: include linux/dmi.h to use dmi_ routines
    pci/dmar: correct off-by-one error in dmar_fault()
    intel-iommu: Cope with yet another BIOS screwup causing crashes
    intel-iommu: iommu init error path bug fixes
    intel-iommu: Mark functions with __init
    USB: Work around BIOS bugs by quiescing USB controllers earlier
    ia64: IOMMU passthrough mode shouldn't trigger swiotlb init
    intel-iommu: make domain_add_dev_info() call domain_context_mapping()
    intel-iommu: Unify hardware and software passthrough support
    intel-iommu: Cope with broken HP DC7900 BIOS
    iommu=pt is a valid early param
    intel-iommu: double kfree()
    intel-iommu: Kill pointless intel_unmap_single() function
    ...

    Fixed up trivial include lines conflict in drivers/pci/intel-iommu.c

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6: (41 commits)
    regulator: Add some brief design documentation
    regulator: fix voltage range in da9034 ldo12
    regulator/driver: be more specific in nanodoc for is_enabled
    regulator/lp3971: drop unnecessary initialization
    regulator: drop 'default n'
    regulator: fix typos
    regulator: fix calculation of voltage range in da9034_set_ldo12_voltage()
    regulator: update a filename in documentation
    drivers/regulator/Kconfig: fix typo (s/Usersapce/Userspace/) in REGULATOR_USERSPACE_CONSUMER description
    REGULATOR Handle positive returncode from enable
    regulator: tps650xx - build fixes for x86_64
    Fix some regulator documentation
    Regulator: Adding TPS65023 and TPS6507x in Kconfig and Makefile
    Regulator: Add TPS6507x regulator driver
    Regulator: Add TPS65023 regulator driver
    regulator: userspace: use sysfs_create_group
    regulator: Add GPIO enable control to fixed voltage regulator driver
    Regulator: Implement list_voltage for pcf50633 regulator driver.
    regulator: regulator_enable() permission checking
    regulator: Push locking for regulator_is_enabled() out
    ...

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (119 commits)
    ACPI: don't pass handle for fixed hardware notifications
    ACPI: remove null pointer checks in deferred execution path
    ACPI: simplify deferred execution path
    acerhdf: additional BIOS versions
    acerhdf: convert to dev_pm_ops
    acerhdf: fix fan control for AOA150 model
    thermal: add missing Kconfig dependency
    acpi: switch /proc/acpi/{debug_layer,debug_level} to seq_file
    hp-wmi: fix rfkill memory leak on unload
    ACPI: remove unnecessary #ifdef CONFIG_DMI
    ACPI: linux/acpi.h should not include linux/dmi.h
    hwmon driver for ACPI 4.0 power meters
    topstar-laptop: add new driver for hotkeys support on Topstar N01
    thinkpad_acpi: fix rfkill memory leak on unload
    thinkpad-acpi: report brightness events when required
    thinkpad-acpi: don't poll by default any of the reserved hotkeys
    thinkpad-acpi: Fix procfs hotkey reset command
    thinkpad-acpi: deprecate hotkey_bios_mask
    thinkpad-acpi: hotkey poll fixes
    thinkpad-acpi: be more strict when detecting a ThinkPad
    ...

    Linus Torvalds
     
  • * 'i2c-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
    i2c: Clearly mark ACPI drivers as such
    i2c: Add driver for SMBus Control Method Interface
    i2c-pnx: Correct use of request_region/request_mem_region
    MAINTAINERS: Add maintainer for AT24 and PCA9564/PCA9665
    i2c-piix4: Add AMD SB900 SMBus device ID
    i2c/chips: Remove deprecated pcf8574 driver
    i2c/chips: Remove deprecated pca9539 driver
    i2c/chips: Remove deprecated pcf8575 driver
    gpio/pcf857x: Copy i2c_device_id from old pcf8574 driver
    i2c/scx200_acb: Provide more information on bus errors
    i2c: Provide compatibility links for i2c adapters
    i2c: Convert i2c adapters to bus devices
    i2c: Convert i2c clients to a device type
    i2c/tsl2550: Use combined SMBus transactions
    i2c-taos-evm: Switch echo off to improve performance
    i2c: Drop unused i2c_driver.id field

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (142 commits)
    USB: Fix sysfs paths in documentation
    USB: skeleton: fix coding style issues.
    USB: O_NONBLOCK in read path of skeleton
    USB: make usb-skeleton honor O_NONBLOCK in write path
    USB: skel_read really sucks royally
    USB: Add hub descriptor update hook for xHCI
    USB: xhci: Support USB hubs.
    USB: xhci: Set multi-TT field for LS/FS devices under hubs.
    USB: xhci: Set route string for all devices.
    USB: xhci: Fix command wait list handling.
    USB: xhci: Change how xHCI commands are handled.
    USB: xhci: Refactor input device context setup.
    USB: xhci: Endpoint representation refactoring.
    USB: gadget: ether needs to select CRC32
    USB: fix USBTMC get_capabilities success handling
    USB: fix missing error check in probing
    USB: usbfs: add USBDEVFS_URB_BULK_CONTINUATION flag
    USB: support for autosuspend in sierra while online
    USB: ehci-dbgp,ehci: Allow dbpg to work with suspend/resume
    USB: ehci-dbgp,documentation: Documentation updates for ehci-dbgp
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus:
    lguest: don't force VIRTIO_F_NOTIFY_ON_EMPTY
    lguest: cleanup for map_switcher()
    lguest: use PGDIR_SHIFT for PAE code to allow different PAGE_OFFSET
    lguest: use set_pte/set_pmd uniformly for real page table entries
    lguest: move panic notifier registration to its expected place.
    virtio_blk: add support for cache flush
    virtio: add virtio IDs file
    virtio: get rid of redundant VIRTIO_ID_9P definition
    virtio: make add_buf return capacity remaining
    virtio_pci: minor MSI-X cleanups

    Linus Torvalds
     

23 Sep, 2009

8 commits

  • I would like to get rid of option CONFIG_FB_MATROX_MULTIHEAD and just
    always enable it. There are many reasons for doing this:

    * CONFIG_FB_MATROX_MULTIHEAD=y is what all x86 distributions do, so it
    definitely works or we would know by now.

    * Building the matroxfb driver with CONFIG_FB_MATROX_MULTIHEAD not set
    results in the following build warning:

    drivers/video/matrox/matroxfb_crtc2.c: In function 'matroxfb_dh_open':
    drivers/video/matrox/matroxfb_crtc2.c:265: warning: the address of 'matroxfb_global_mxinfo' will always evaluate as 'true'
    drivers/video/matrox/matroxfb_crtc2.c: In function 'matroxfb_dh_release':
    drivers/video/matrox/matroxfb_crtc2.c:285: warning: the address of 'matroxfb_global_mxinfo' will always evaluate as 'true'

    This is nothing to be worried about, the driver will work fine, but build
    warnings are still annoying.

    * The trick to get multihead support without CONFIG_FB_MATROX_MULTIHEAD,
    which is described in the config help text, no longer works: you can't
    load the same kernel module more than once.

    * I fail to see how CONFIG_FB_MATROX_MULTIHEAD=y would make the code
    significantly slower, contrary to what the help text says. A few extra
    parameters on the stack here and there can't really slow things down in
    comaprison to the rest of the code, and register access.

    * The driver built without CONFIG_FB_MATROX_MULTIHEAD is larger than the
    driver build with CONFIG_FB_MATROX_MULTIHEAD=y by 8%.

    * One less configuration option makes things simpler. We add options
    all the time, being able to remove one for once is nice. It improves
    testing coverage. And I don't think the Matrox adapters are still
    popular enough to warrant overdetailed configuration settings.

    * We should be able to unobfuscate the driver code quite a bit after
    this change (patches follow.)

    Signed-off-by: Jean Delvare
    Acked-by: Petr Vandrovec
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • EP93xx video driver plus documentation.

    Signed-off-by: Ryan Mallon
    Acked-by: H Hartley Sweeten
    Cc: Daniele Venzano
    Cc: Russell King
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ryan Mallon
     
  • Many gpio chips allow to generate interrupts when the value of a pin
    changes. This patch gives usermode application the opportunity to make
    use of this feature by calling poll(2) on the /sys/class/gpio/gpioN/value
    sysfs file. The edge to trigger can be set in the edge file in the same
    directory. Possible values are "none", "rising", "falling", and "both".

    Using level triggers is not possible with current sysfs since nothing
    changes the GPIO value (and the IRQ keeps triggering). Edge triggering
    will "just work". Note that if there was an event between read() and
    poll(), the poll() returns immediately.

    Also note that this version only supports true GPIO interrupts. Some
    later patch might be able to synthesize this behavior by timer-driven
    polling; some systems seem to need that.

    [dbrownell@users.sourceforge.net: align ids to 16 bit ids; whitespace]
    Signed-off-by: Daniel Glöckner
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Glöckner
     
  • Commit 926b663ce8215ba448960e1ff6e58b67a2c3b99b (gpiolib: allow GPIOs to
    be named) already provides naming on the chip level. This patch provides
    more flexibility by allowing multiple names where ever in sysfs on a per
    GPIO basis.

    Adapted from David Brownell's comments on a similar concept:
    http://lkml.org/lkml/2009/4/20/203.

    [randy.dunlap@oracle.com: fix build for CONFIG_GENERIC_GPIO=n]
    Signed-off-by: Jani Nikula
    Acked-by: David Brownell
    Cc: Daniel Silverstone
    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jani Nikula
     
  • CONFIG_RTC_HCTOSYS allows the kernel to read the system time from the RTC
    at boot and resume, avoiding the need for userspace to do so.
    Unfortunately userspace currently has no way to know whether this
    configuration option is enabled and thus cannot sensibly choose whether to
    run hwclock itself or not. Add a hctosys sysfs attribute which indicates
    whether a given RTC set the system clock.

    Signed-off-by: Matthew Garrett
    Acked-by: Alessandro Zummo
    Cc: Mark Brown
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • The sysfs interface to the RTC class drivers is currently undocumented.
    Add some basic documentation defining the semantics of the fields.

    Signed-off-by: Matthew Garrett
    Cc: Mark Brown
    Acked-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • Signed-off-by: Mike Frysinger
    Cc: David Brownell
    Signed-off-by: Alessandro Zummo
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Fix spelling of `automatically' in Documentation/spi/spi-summary.

    Signed-off-by: Ben Dooks
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks