1. 20 May, 2010 17 commits
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6 · fb091be0
      Linus Torvalds authored
      * 'v4l_for_2.6.35' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (534 commits)
        V4L/DVB (13554a): v4l: Use the video_drvdata function in drivers
        V4L/DVB: vivi and mem2mem_testdev need slab.h to build
        V4L/DVB: tm6000: bugfix image position
        V4L/DVB: IR/imon: remove dead IMON_KEY_RELEASE_OFFSET
        V4L/DVB: tm6000: README - add vbi
        V4L/DVB: Fix unlock logic at medusa_video_init
        V4L/DVB: fix dvb frontend lockup
        V4L/DVB: s2255drv: remove dead code
        V4L/DVB: s2255drv: return if vdev not found
        V4L/DVB: ov511: cleanup: remove unneeded null check
        V4L/DVB: media/mem2mem: dereferencing free memory
        V4L/DVB: media/IR: Add missing include file to rc-map.c
        V4L/DVB: dvb/stv6110x: cleanup error handling
        V4L/DVB: ngene: Add lgdt3303 and mt2131 deps to Kconfig
        V4L/DVB: ngene: start separating out DVB functions into separate file
        V4L/DVB: ngene: split out card specific code into a separate file
        V4L/DVB: ngene: split out i2c code into a separate file
        V4L/DVB: ngene: add initial support for digital side of Avermedia m780
        V4L/DVB: ngene: properly support boards where channel 0 isn't a TS input
        V4L-DVB: ngene: make sure that tuner headers are included
        ...
      fb091be0
    • Linus Torvalds's avatar
      Merge branch 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev · bd7fc2f2
      Linus Torvalds authored
      * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev: (49 commits)
        libata-sff: separate out BMDMA qc_issue
        libata-sff: prd is BMDMA specific
        libata-sff: ata_sff_[dumb_]qc_prep are BMDMA specific
        libata-sff: separate out BMDMA EH
        libata-sff: port_task is SFF specific
        libata-sff: ap->[last_]ctl are SFF specific
        libata-sff: rename ap->ops->drain_fifo() to sff_drain_fifo()
        libata-sff: introduce ata_sff_init/exit() and ata_sff_port_init()
        libata-sff: clean up BMDMA initialization
        libata-sff: clean up inheritance in several drivers
        libata-sff: reorder SFF/BMDMA functions
        sata_inic162x: kill PORT_PRD_ADDR initialization
        libata: kill ATA_FLAG_DISABLED
        libata-sff: kill unused prototype and make ata_dev_select() static
        libata-sff: update bmdma host bus error handling
        sata_mv: remove unnecessary initialization
        sata_inic162x: inic162x is not dependent on CONFIG_ATA_SFF
        pata_sch: use ata_pci_sff_init_one()
        pata_sil680: Do our own exec_command posting
        libata: Remove excess delay in the tf_load path
        ...
      bd7fc2f2
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial · f39d01be
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (44 commits)
        vlynq: make whole Kconfig-menu dependant on architecture
        add descriptive comment for TIF_MEMDIE task flag declaration.
        EEPROM: max6875: Header file cleanup
        EEPROM: 93cx6: Header file cleanup
        EEPROM: Header file cleanup
        agp: use NULL instead of 0 when pointer is needed
        rtc-v3020: make bitfield unsigned
        PCI: make bitfield unsigned
        jbd2: use NULL instead of 0 when pointer is needed
        cciss: fix shadows sparse warning
        doc: inode uses a mutex instead of a semaphore.
        uml: i386: Avoid redefinition of NR_syscalls
        fix "seperate" typos in comments
        cocbalt_lcdfb: correct sections
        doc: Change urls for sparse
        Powerpc: wii: Fix typo in comment
        i2o: cleanup some exit paths
        Documentation/: it's -> its where appropriate
        UML: Fix compiler warning due to missing task_struct declaration
        UML: add kernel.h include to signal.c
        ...
      f39d01be
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6 · 54291263
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia-2.6: (29 commits)
        pcmcia: disable PCMCIA ioctl also for ARM
        drivers/staging/comedi: dev_node removal (quatech_daqp_cs)
        drivers/staging/comedi: dev_node removal (ni_mio_cs)
        drivers/staging/comedi: dev_node removal (ni_labpc_cs)
        drivers/staging/comedi: dev_node removal (ni_daq_dio24)
        drivers/staging/comedi: dev_node removal (ni_daq_700)
        drivers/staging/comedi: dev_node removal (das08_cs)
        drivers/staging/comedi: dev_node removal (cb_das16_cs)
        pata_pcmcia: get rid of extra indirection
        pcmcia: remove suspend-related comment from yenta_socket.c
        pcmcia: call pcmcia_{read,write}_cis_mem with ops_mutex held
        pcmcia: remove pcmcia_add_device_lock
        pcmcia: update gfp/slab.h includes
        pcmcia: remove unused mem_op.h
        pcmcia: do not autoadd root PCI bus resources
        pcmcia: clarify alloc_io_space, move it to resource handlers
        pcmcia: move all pcmcia_resource_ops providers into one module
        pcmcia: move high level CIS access code to separate file
        pcmcia: dev_node removal (core)
        pcmcia: dev_node removal (remaining drivers)
        ...
      54291263
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 46ee9645
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM: PM QOS update fix
        Freezer / cgroup freezer: Update stale locking comments
        PM / platform_bus: Allow runtime PM by default
        i2c: Fix bus-level power management callbacks
        PM QOS update
        PM / Hibernate: Fix block_io.c printk warning
        PM / Hibernate: Group swap ops
        PM / Hibernate: Move the first_sector out of swsusp_write
        PM / Hibernate: Separate block_io
        PM / Hibernate: Snapshot cleanup
        FS / libfs: Implement simple_write_to_buffer
        PM / Hibernate: document open(/dev/snapshot) side effects
        PM / Runtime: Add sysfs debug files
        PM: Improve device power management document
        PM: Update device power management document
        PM: Allow runtime_suspend methods to call pm_schedule_suspend()
        PM: pm_wakeup - switch to using bool
      46ee9645
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · fa5312d9
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: change cancel_work_sync() to clear work->data
        workqueue: warn about flush_scheduled_work()
      fa5312d9
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · 9c688c11
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        ia64: add sparse annotation to __ia64_per_cpu_var()
        percpu: implement kernel memory based chunk allocation
        percpu: move vmalloc based chunk management into percpu-vm.c
        percpu: misc preparations for nommu support
        percpu: reorganize chunk creation and destruction
        percpu: factor out pcpu_addr_in_first/reserved_chunk() and update per_cpu_ptr_to_phys()
      9c688c11
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 9d35bc1e
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        IB/core: Use kmemdup() instead of kmalloc()+memcpy()
        IB/iser: Fix error flow in iser_create_ib_conn_res()
        IB/iser: Enhance disconnection logic for multi-pathing
        IB/iser: Remove buggy back-pointer setting
        IB/iser: Add asynchronous event handler
        MAINTAINERS: Add cxgb4 and iw_cxgb4 entries
        RDMA/cxgb3: Shrink .text with compile-time init of handlers arrays
        IPoIB: Allow disabling/enabling TSO on the fly through ethtool
        IB/mlx4: Add support for masked atomic operations
        IB/core: Add support for masked atomic operations
        RDMA/cma: Randomize local port allocation
        RDMA/nes: Make unnecessarily global functions static
        RDMA/nes: Make nesadapter->phy_lock usage consistent
        RDMA/cxgb4: Add driver for Chelsio T4 RNIC
        IB/mthca: Use the dma state API instead of pci equivalents
        RDMA/amso1100: Use the dma state API instead of pci equivalents
        RDMA/cxgb3: Don't free skbs on NET_XMIT_* indications from LLD
        RDMA/cxgb3: Use the dma state API instead of pci equivalents
        IB: Explicitly rule out llseek to avoid BKL in default_llseek()
      9d35bc1e
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of... · 96b5b7f4
      Linus Torvalds authored
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: (61 commits)
        KEYS: Return more accurate error codes
        LSM: Add __init to fixup function.
        TOMOYO: Add pathname grouping support.
        ima: remove ACPI dependency
        TPM: ACPI/PNP dependency removal
        security/selinux/ss: Use kstrdup
        TOMOYO: Use stack memory for pending entry.
        Revert "ima: remove ACPI dependency"
        Revert "TPM: ACPI/PNP dependency removal"
        KEYS: Do preallocation for __key_link()
        TOMOYO: Use mutex_lock_interruptible.
        KEYS: Better handling of errors from construct_alloc_key()
        KEYS: keyring_serialise_link_sem is only needed for keyring->keyring links
        TOMOYO: Use GFP_NOFS rather than GFP_KERNEL.
        ima: remove ACPI dependency
        TPM: ACPI/PNP dependency removal
        selinux: generalize disabling of execmem for plt-in-heap archs
        LSM Audit: rename LSM_AUDIT_NO_AUDIT to LSM_AUDIT_DATA_NONE
        CRED: Holding a spinlock does not imply the holding of RCU read lock
        SMACK: Don't #include Ext2 headers
        ...
      96b5b7f4
    • Linus Torvalds's avatar
      Merge branch 'for-2.6.35' of git://linux-nfs.org/~bfields/linux · f72caf7e
      Linus Torvalds authored
      * 'for-2.6.35' of git://linux-nfs.org/~bfields/linux: (45 commits)
        Revert "nfsd4: distinguish expired from stale stateids"
        nfsd: safer initialization order in find_file()
        nfs4: minor callback code simplification, comment
        NFSD: don't report compiled-out versions as present
        nfsd4: implement reclaim_complete
        nfsd4: nfsd4_destroy_session must set callback client under the state lock
        nfsd4: keep a reference count on client while in use
        nfsd4: mark_client_expired
        nfsd4: introduce nfs4_client.cl_refcount
        nfsd4: refactor expire_client
        nfsd4: extend the client_lock to cover cl_lru
        nfsd4: use list_move in move_to_confirmed
        nfsd4: fold release_session into expire_client
        nfsd4: rename sessionid_lock to client_lock
        nfsd4: fix bare destroy_session null dereference
        nfsd4: use local variable in nfs4svc_encode_compoundres
        nfsd: further comment typos
        sunrpc: centralise most calls to svc_xprt_received
        nfsd4: fix unlikely race in session replay case
        nfsd4: fix filehandle comment
        ...
      f72caf7e
    • Linus Torvalds's avatar
      Merge branch 'nfs-for-2.6.35' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6 · 6a6be470
      Linus Torvalds authored
      * 'nfs-for-2.6.35' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: (78 commits)
        SUNRPC: Don't spam gssd with upcall requests when the kerberos key expired
        SUNRPC: Reorder the struct rpc_task fields
        SUNRPC: Remove the 'tk_magic' debugging field
        SUNRPC: Move the task->tk_bytes_sent and tk_rtt to struct rpc_rqst
        NFS: Don't call iput() in nfs_access_cache_shrinker
        NFS: Clean up nfs_access_zap_cache()
        NFS: Don't run nfs_access_cache_shrinker() when the mask is GFP_NOFS
        SUNRPC: Ensure rpcauth_prune_expired() respects the nr_to_scan parameter
        SUNRPC: Ensure memory shrinker doesn't waste time in rpcauth_prune_expired()
        SUNRPC: Dont run rpcauth_cache_shrinker() when gfp_mask is GFP_NOFS
        NFS: Read requests can use GFP_KERNEL.
        NFS: Clean up nfs_create_request()
        NFS: Don't use GFP_KERNEL in rpcsec_gss downcalls
        NFSv4: Don't use GFP_KERNEL allocations in state recovery
        SUNRPC: Fix xs_setup_bc_tcp()
        SUNRPC: Replace jiffies-based metrics with ktime-based metrics
        ktime: introduce ktime_to_ms()
        SUNRPC: RPC metrics and RTT estimator should use same RTT value
        NFS: Calldata for nfs4_renew_done()
        NFS: Squelch compiler warning in nfs_add_server_stats()
        ...
      6a6be470
    • Linus Torvalds's avatar
      Merge branch 'bkl/procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing · 98c89cdd
      Linus Torvalds authored
      * 'bkl/procfs' of git://git.kernel.org/pub/scm/linux/kernel/git/frederic/random-tracing:
        sunrpc: Include missing smp_lock.h
        procfs: Kill the bkl in ioctl
        procfs: Push down the bkl from ioctl
        procfs: Use generic_file_llseek in /proc/vmcore
        procfs: Use generic_file_llseek in /proc/kmsg
        procfs: Use generic_file_llseek in /proc/kcore
        procfs: Kill BKL in llseek on proc base
      98c89cdd
    • Linus Torvalds's avatar
      Merge branch 'timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip · 164d44fd
      Linus Torvalds authored
      * 'timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        clocksource: Add clocksource_register_hz/khz interface
        posix-cpu-timers: Optimize run_posix_cpu_timers()
        time: Remove xtime_cache
        mqueue: Convert message queue timeout to use hrtimers
        hrtimers: Provide schedule_hrtimeout for CLOCK_REALTIME
        timers: Introduce the concept of timer slack for legacy timers
        ntp: Remove tickadj
        ntp: Make time_adjust static
        time: Add xtime, wall_to_monotonic to feature-removal-schedule
        timer: Try to survive timer callback preempt_count leak
        timer: Split out timer function call
        timer: Print function name for timer callbacks modifying preemption count
        time: Clean up warp_clock()
        cpu-timers: Avoid iterating over all threads in fastpath_timer_check()
        cpu-timers: Change SIGEV_NONE timer implementation
        cpu-timers: Return correct previous timer reload value
        cpu-timers: Cleanup arm_timer()
        cpu-timers: Simplify RLIMIT_CPU handling
      164d44fd
    • Linus Torvalds's avatar
      Merge branch 'timers-fixes-for-linus' of... · 5bfec46b
      Linus Torvalds authored
      Merge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        cs5535-clockevt: Free timer in IRQ setup error path
      5bfec46b
    • Linus Torvalds's avatar
      Merge branch 'timers-for-linus-hpet' of... · 6fa0fddd
      Linus Torvalds authored
      Merge branch 'timers-for-linus-hpet' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'timers-for-linus-hpet' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        x86, hpet: Add reference to chipset erratum documentation for disable-hpet-msi-quirk
        x86, hpet: Restrict read back to affected ATI chipsets
      6fa0fddd
    • Linus Torvalds's avatar
      Merge branch 'timers-for-linus-cleanups' of... · 7d02093e
      Linus Torvalds authored
      Merge branch 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'timers-for-linus-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        avr32: Fix typo in read_persistent_clock()
        sparc: Convert sparc to use read/update_persistent_clock
        cris: Convert cris to use read/update_persistent_clock
        m68k: Convert m68k to use read/update_persistent_clock
        m32r: Convert m32r to use read/update_peristent_clock
        blackfin: Convert blackfin to use read/update_persistent_clock
        ia64: Convert ia64 to use read/update_persistent_clock
        avr32: Convert avr32 to use read/update_persistent_clock
        h8300: Convert h8300 to use read/update_persistent_clock
        frv: Convert frv to use read/update_persistent_clock
        mn10300: Convert mn10300 to use read/update_persistent_clock
        alpha: Convert alpha to use read/update_persistent_clock
        xtensa: Fix unnecessary setting of xtime
        time: Clean up direct xtime usage in xen
      7d02093e
    • Linus Torvalds's avatar
      Merge branch 'irq-core-for-linus' of... · 6e0b7b2c
      Linus Torvalds authored
      Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        genirq: Clear CPU mask in affinity_hint when none is provided
        genirq: Add CPU mask affinity hint
        genirq: Remove IRQF_DISABLED from core code
        genirq: Run irq handlers with interrupts disabled
        genirq: Introduce request_any_context_irq()
        genirq: Expose irq_desc->node in proc/irq
      
      Fixed up trivial conflicts in Documentation/feature-removal-schedule.txt
      6e0b7b2c
  2. 19 May, 2010 23 commits
    • Linus Torvalds's avatar
      Merge branch 'msm-core' of git://codeaurora.org/quic/kernel/dwalker/linux-msm · e4e47eb1
      Linus Torvalds authored
      * 'msm-core' of git://codeaurora.org/quic/kernel/dwalker/linux-msm: (72 commits)
        msm: 7x30 Kconfig and makefile changes
        msm: clock support for the MSM7x30 CPU.
        msm: physical offset for MSM7X30
        msm: io: add io support for 7x30
        msm: Add extern for 7x30 clock list.
        msm: dma: add 7x30 security domain abstraction
        msm: update basic board layout for MSM7x30
        msm: add devices-msm7x30.c
        msm: add msm_iomap-7x30.h for MSM7x30 support
        msm: irqs: add irqs-7x30.h for MSM7x30 support
        msm: 8x50 Kconfig changes
        msm: physical offset for QSD8x50
        msm: io: add io support for 8x50
        msm: add extern for 8x50 clock list.
        msm: add devices-qsd8x50.c
        msm: update basic board layout for QSD8x50
        msm: add msm_iomap-8x50.h for QSD8x50 support
        msm: irqs: add irqs-8x50.h for QSD8x50 support
        msm: timer: allow MSM_DGT_BASE to be overriden
        msm: add Qualcomm 7x30 interrupt controller driver.
        ...
      e4e47eb1
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · 711f77f5
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
        sparc: Define ARCH_SLAB_MINALIGN
        drivers/sbus/char/flash.c: flash_read should update ppos instead of file->f_pos
        sparc64: Fix stack dumping and tracing when function graph is enabled.
        sparc64: Show stack backtrace from show_regs() just like other platforms.
      711f77f5
    • Linus Torvalds's avatar
      Merge branch 'davinci-for-linus' of... · 024a6b95
      Linus Torvalds authored
      Merge branch 'davinci-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci
      
      * 'davinci-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci: (48 commits)
        Revert "rtc: omap: let device wakeup capability be configured from chip init logic"
        DM365: Added more PINMUX configurations for AEMIF
        DM365: Make CLKOUTx available
        DM365: Added PINMUX definitions for GPIO30..32
        Davinci: iotable based ioremap() interception
        Davinci: pinmux - use ioremap()
        Davinci: aintc/cpintc - use ioremap()
        Davinci: psc - use ioremap()
        Davinci: timer - use ioremap()
        Davinci: jtag_id - use ioremap()
        Davinci: da8xx: rtc - use ioremap
        Davinci: gpio - use ioremap()
        davinci: edma: fix coding style issue related to breaking lines
        davinci: edma: use BIT() wherever possible
        davinci: edma: fix coding style issue related to usage of braces
        davinci: edma: use a more intuitive name for edma_info
        Davinci: serial - conditional reset via pwremu
        Davinci: serial - use ioremap()
        Davinci: serial - remove unnecessary define
        Davinci: watchdog reset separation across socs
        ...
      
      Fix up trivial conflict in arch/arm/Kconfig due to removal of "select
      GENERIC_TIME"
      024a6b95
    • Linus Torvalds's avatar
      Merge branch 'for-linus/samsung4' of git://git.fluff.org/bjdooks/linux · 349e1fba
      Linus Torvalds authored
      * 'for-linus/samsung4' of git://git.fluff.org/bjdooks/linux: (98 commits)
        Input: s3c24xx_ts - depend on SAMSUNG_DEV_TS and update menu entry
        Input: s3c24xx_ts - Add FEAT for Samsung touchscreen support
        Input: s3c24xx_ts - Implement generic GPIO configuration callback
        ARM: SAMSUNG: Move s3c64xx dev-ts.c to plat-samsung and rename configuration
        ARM: SAMSUNG: Implements cfg_gpio function for Samsung touchscreen
        ARM: S3C64XX: Add touchscreen platform device definition
        ARM: SAMSUNG: Move mach/ts.h to plat/ts.h
        ARM: S5PC100: Move i2c helpers from plat-s5pc1xx to mach-s5pc100
        ARM: S5PC100: Move frame buffer helpers from plat-s5pc1xx to mach-s5pc100
        ARM: S5PC100: gpio.h cleanup
        ARM: S5PC100: Move gpio support from plat-s5pc1xx to mach-s5pc100
        ARM: S5PC100: Use common functions for gpiolib implementation
        drivers: serial: S5PC100 serial driver cleanup
        ARM: S5PC100: Pre-requisite clock patch for plat-s5pc1xx to plat-s5p move
        ARM: SAMSUNG: Copy common I2C0 device helpers to machine directories
        ARM: SAMSUNG: move driver strength gpio configuration helper to common dir
        ARM: S5PV210: Add GPIOlib support
        ARM: SAMSUNGy: fix broken timer irq base
        ARM: SMDK6440: Add audio devices on board
        ARM: S5P6440: Add audio platform devices
        ...
      349e1fba
    • KOSAKI Motohiro's avatar
      cpumask: fix compat getaffinity · fa9dc265
      KOSAKI Motohiro authored
      Commit a45185d2 "cpumask: convert kernel/compat.c" broke libnuma, which
      abuses sched_getaffinity to find out NR_CPUS in order to parse
      /sys/devices/system/node/node*/cpumap.
      
      On NUMA systems with less than 32 possibly CPUs, the current
      compat_sys_sched_getaffinity now returns '4' instead of the actual
      NR_CPUS/8, which makes libnuma bail out when parsing the cpumap.
      
      The libnuma call sched_getaffinity(0, bitmap, 4096) at first.  It mean
      the libnuma expect the return value of sched_getaffinity() is either len
      argument or NR_CPUS.  But it doesn't expect to return nr_cpu_ids.
      
      Strictly speaking, userland requirement are
      
      1) Glibc assume the return value mean the lengh of initialized
         of mask argument. E.g. if sched_getaffinity(1024) return 128,
         glibc make zero fill rest 896 byte.
      2) Libnuma assume the return value can be used to guess NR_CPUS
         in kernel. It assume len-arg<NR_CPUS makes -EINVAL. But
         it try len=4096 at first and 4096 is always bigger than
         NR_CPUS. Then, if we remove strange min_length normalization,
         we never hit -EINVAL case.
      
      sched_getaffinity() already solved this issue.  This patch adapts
      compat_sys_sched_getaffinity() to match the non-compat case.
      Signed-off-by: default avatarKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reported-by: default avatarKen Werner <ken.werner@web.de>
      Cc: stable@kernel.org
      Cc: Andi Kleen <andi@firstfloor.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fa9dc265
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6 · cf77e988
      Linus Torvalds authored
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
        [IA64] Drop duplicated "config IOMMU_HELPER"
        [IA64] invoke oom-killer from page fault
        [IA64] use __ratelimit
        [IA64] Use set_cpus_allowed_ptr
        [IA64] Use set_cpus_allowed_ptr
        [IA64] arch/ia64/hp/common/sba_iommu.c: Rename dev_info to adi
        [IA64] removing redundant ifdef
      cf77e988
    • Linus Torvalds's avatar
      Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm · 1d3c6ff4
      Linus Torvalds authored
      * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (224 commits)
        ARM: remove 'select GENERIC_TIME'
        ARM: 6136/1: ARCH_REQUIRE_GPIOLIB selects GENERIC_GPIO
        ARM: 6074/1: oprofile: convert from sysdev to platform device
        ARM: 6073/1: oprofile: remove old files and update KConfig
        ARM: 6072/1: oprofile: use perf-events framework as backend
        ARM: 6071/1: perf-events: allow modules to query the number of hardware counters
        ARM: 6070/1: perf-events: add support for xscale PMUs
        ARM: 6069/1: perf-events: use numeric ID to identify PMU
        ARM: 6064/1: pmu: register IRQs at runtime
        ARM: Optionally allow ARMv6 to use 'normal, bufferable' memory for DMA
        ARM: 6134/1: Handle instruction cache maintenance fault properly
        ARM: nwfpe: allow debugging output to be configured at runtime
        ARM: rename mach_cpu_disable() to platform_cpu_disable()
        ARM: 6132/1: PL330: Add common core driver
        ARM: 6094/1: Extend cache-l2x0 to support the 16-way PL310
        ARM: Move memory mapping into mmu.c
        ARM: Ensure meminfo is sorted prior to sanity_check_meminfo
        ARM: Remove useless linux/bootmem.h includes
        ARM: convert /proc/cpu/aligment to seq_file
        arm: use asm-generic/scatterlist.h
        ...
      1d3c6ff4
    • Kevin Hilman's avatar
      Revert "rtc: omap: let device wakeup capability be configured from chip init logic" · 5e682ef8
      Kevin Hilman authored
      This reverts commit 9c0a342c because
      it was included without proper signoffs from RTC maintainers.
      5e682ef8
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 · 7c7cbaf5
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (127 commits)
        sh: update defconfigs.
        sh: Fix up the NUMA build for recent LMB changes.
        sh64: provide a stub per_cpu_trap_init() definition.
        sh: fix up CONFIG_KEXEC=n build.
        sh: fixup the docbook paths for clock framework shuffling.
        driver core: Early dev_name() depends on slab_is_available().
        sh: simplify WARN usage in SH clock driver
        sh: Check return value of clk_get on ms7724
        sh: Check return value of clk_get on ecovec24
        sh: move sh clock-cpg.c contents to drivers/sh/clk-cpg.c
        sh: move sh clock.c contents to drivers/sh/clk.
        sh: move sh asm/clock.h contents to linux/sh_clk.h V2
        sh: remove unused clock lookup
        sh: switch boards to clkdev
        sh: switch sh4-202 to clkdev
        sh: switch shx3 to clkdev
        sh: switch sh7757 to clkdev
        sh: switch sh7763 to clkdev
        sh: switch sh7780 to clkdev
        sh: switch sh7786 to clkdev
        ...
      7c7cbaf5
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 · ba0234ec
      Linus Torvalds authored
      * 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6: (24 commits)
        [S390] drivers/s390/char: Use kmemdup
        [S390] drivers/s390/char: Use kstrdup
        [S390] debug: enable exception-trace debug facility
        [S390] s390_hypfs: Add new attributes
        [S390] qdio: remove API wrappers
        [S390] qdio: set correct bit in dsci
        [S390] qdio: dont convert timestamps to microseconds
        [S390] qdio: remove memset hack
        [S390] qdio: prevent starvation on PCI devices
        [S390] qdio: count number of qdio interrupts
        [S390] user space fault: report fault before calling do_exit
        [S390] topology: expose core identifier
        [S390] dasd: remove uid from devmap
        [S390] dasd: add dynamic pav toleration
        [S390] vdso: add missing vdso_install target
        [S390] vdso: remove redundant check for CONFIG_64BIT
        [S390] avoid default_llseek in s390 drivers
        [S390] vmcp: disallow modular build
        [S390] add breaking event address for user space
        [S390] virtualization aware cpu measurement
        ...
      ba0234ec
    • Tejun Heo's avatar
      libata-sff: separate out BMDMA qc_issue · 360ff783
      Tejun Heo authored
      Separate out ata_bmdma_qc_issue() from ata_sff_qc_issue() such that
      ata_sff_qc_issue() only deals with non-BMDMA SFF protocols (PIO and
      nodata) while ata_bmdma_qc_issue() deals with the BMDMA protocols and
      uses ata_sff_qc_issue() for non-DMA commands.  All the users are
      updated accordingly.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      360ff783
    • Tejun Heo's avatar
      libata-sff: prd is BMDMA specific · f60d7011
      Tejun Heo authored
      struct ata_prd and ap->prd are BMDMA specific.  Add bmdma_ prefix to
      them and move them inside CONFIG_ATA_SFF.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      f60d7011
    • Tejun Heo's avatar
      libata-sff: ata_sff_[dumb_]qc_prep are BMDMA specific · f47451c4
      Tejun Heo authored
      Both qc_prep functions deal only with BMDMA PRD setup and PIO only SFF
      drivers don't need them.  Rename to ata_bmdma_[dumb_]qc_prep() and
      relocate.
      
      All usages are renamed except for pdc_adma and sata_qstor.  Those two
      drivers are not BMDMA drivers and don't need to call BMDMA qc_prep
      functions.  Calls to ata_sff_qc_prep() in the two drivers are removed.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      f47451c4
    • Tejun Heo's avatar
      libata-sff: separate out BMDMA EH · fe06e5f9
      Tejun Heo authored
      Some of error handling logic in ata_sff_error_handler() and all of
      ata_sff_post_internal_cmd() are for BMDMA.  Create
      ata_bmdma_error_handler() and ata_bmdma_post_internal_cmd() and move
      BMDMA part into those.
      
      While at it, change DMA protocol check to ata_is_dma(), fix
      post_internal_cmd to call ap->ops->bmdma_stop instead of directly
      calling ata_bmdma_stop() and open code hardreset selection so that
      ata_std_error_handler() doesn't have to know about sff hardreset.
      
      As these two functions are BMDMA specific, there's no reason to check
      for bmdma_addr before calling bmdma methods if the protocol of the
      failed command is DMA.  sata_mv and pata_mpc52xx now don't need to set
      .post_internal_cmd to ATA_OP_NULL and pata_icside and sata_qstor don't
      need to set it to their bmdma_stop routines.
      
      ata_sff_post_internal_cmd() becomes noop and is removed.
      
      This fixes p3 described in clean-up-BMDMA-initialization patch.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      fe06e5f9
    • Tejun Heo's avatar
      libata-sff: port_task is SFF specific · c429137a
      Tejun Heo authored
      port_task is tightly bound to the standard SFF PIO HSM implementation.
      Using it for any other purpose would be error-prone and there's no
      such user and if some drivers need such feature, it would be much
      better off using its own.  Move it inside CONFIG_ATA_SFF and rename it
      to sff_pio_task.
      
      The only function which is exposed to the core layer is
      ata_sff_flush_pio_task() which is renamed from ata_port_flush_task()
      and now also takes care of resetting hsm_task_state to HSM_ST_IDLE,
      which is possible as it's now specific to PIO HSM.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      c429137a
    • Tejun Heo's avatar
      libata-sff: ap->[last_]ctl are SFF specific · 5fe7454a
      Tejun Heo authored
      ap->[last_]ctl are specific to SFF controllers.  Put them inside
      CONFIG_ATA_SFF and move initialization into ata_sff_port_init().
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      5fe7454a
    • Tejun Heo's avatar
      libata-sff: rename ap->ops->drain_fifo() to sff_drain_fifo() · 8244cd05
      Tejun Heo authored
      ->drain_fifo() is SFF specific.  Rename and relocate it.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      8244cd05
    • Tejun Heo's avatar
      libata-sff: introduce ata_sff_init/exit() and ata_sff_port_init() · 270390e1
      Tejun Heo authored
      In preparation of proper SFF/BMDMA separation, introduce
      ata_sff_init/exit() and ata_sff_port_init().  These functions
      currently don't do anything.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      270390e1
    • Tejun Heo's avatar
      libata-sff: clean up BMDMA initialization · c7087652
      Tejun Heo authored
      When BMDMA initialization failed or BMDMA was not available for
      whatever reason, bmdma_addr was left at zero and used as an indication
      that BMDMA shouldn't be used.  This leads to the following problems.
      
      p1. For BMDMA drivers which don't use traditional BMDMA register,
          ata_bmdma_mode_filter() incorrectly inhibits DMA modes.  Those
          drivers either have to inherit from ata_sff_port_ops or clear
          ->mode_filter explicitly.
      
      p2. non-BMDMA drivers call into BMDMA PRD table allocation.  It
          doesn't actually allocate PRD table if bmdma_addr is not
          initialized but is still confusing.
      
      p3. For BMDMA drivers which don't use traditional BMDMA register, some
          methods might not be invoked as expected (e.g. bmdma_stop from
          ata_sff_post_internal_cmd()).
      
      p4. SFF drivers w/ custom DMA interface implement noop BMDMA ops
          worrying libata core might call into one of them.
      
      These problems are caused by the muddy line between SFF and BMDMA and
      the assumption that all BMDMA controllers initialize bmdma_addr.
      
      This patch fixes p1 and p2 by removing the bmdma_addr assumption and
      moving prd allocation to BMDMA port start.  Later patches will fix the
      remaining issues.
      
      This patch improves BMDMA initialization such that
      
      * When BMDMA register initialization fails, falls back to PIO instead
        of failing.  ata_pci_bmdma_init() never fails now.
      
      * When ata_pci_bmdma_init() falls back to PIO, it clears
        ap->mwdma_mask and udma_mask instead of depending on
        ata_bmdma_mode_filter().  This makes ata_bmdma_mode_filter()
        unnecessary thus resolving p1.
      
      * ata_port_start() which actually is BMDMA specific is moved to
        ata_bmdma_port_start().  ata_port_start() and ata_sff_port_start()
        are killed.
      
      * ata_sff_port_start32() is moved and renamed to
        ata_bmdma_port_start32().
      
      Drivers which no longer call into PRD table allocation are...
      
        pdc_adma, sata_inic162x, sata_qstor, sata_sx4, pata_cmd640 and all
        drivers which inherit from ata_sff_port_ops.
      
      pata_icside sets ->port_start to ATA_OP_NULL as it doesn't need PRD
      but is a BMDMA controller and doesn't have custom port_start like
      other such controllers.
      
      Note that with the previous patch which makes all and only BMDMA
      drivers inherit from ata_bmdma_port_ops, this change doesn't break
      drivers which need PRD table.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      c7087652
    • Tejun Heo's avatar
      libata-sff: clean up inheritance in several drivers · 8930ff25
      Tejun Heo authored
      1. pata_cmd640 is PIO only.  Inherit from sff.
      
      2. pata_macio is BMDMA.  Inherit from bmdma and drop explicit
         bmdma_mode_filter() setting.
      
      3. In sata_mv, unlike mv5, mv6 is BMDMA.  Inherit from bmdma and
         don't clear ->post_internal_cmd().
      
      4. bf54x and icside are quasi-BMDMA controllers which don't use the
         standard BMDMA registers so they don't initialize bmdma_addr and
         inherit from sff to avoid the default mode_filter which disables
         DMA modes if bmdma_addr is not initialized.
      
      For 2 and 3, this patch makes the drivers explicitly specify
      ->mode_filter to ATA_OP_NULL while inheriting from ata_bmdma_port_ops.
      These will be removed by the next patch.
      
      This patch makes all and only BMDMA drivers inherit from
      ata_bmdma_port_ops to ease further SFF/BMDMA separation.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      8930ff25
    • Mauro Carvalho Chehab's avatar
      V4L/DVB (13554a): v4l: Use the video_drvdata function in drivers · e8d04167
      Mauro Carvalho Chehab authored
      Fix all device drivers to use the video_drvdata function instead of
      maintaining a local list of minor to private data mappings. Call
      video_set_drvdata to register the driver private pointer when not
      already done.
      
      Where applicable, the local list of mappings is completely removed when
      it becomes unused.
      
      [mchehab.redhat.com: patch broke into two. This one changes just tm6000]
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      e8d04167
    • Randy Dunlap's avatar
      V4L/DVB: vivi and mem2mem_testdev need slab.h to build · 6b46c397
      Randy Dunlap authored
      Fix vivi and mem2mem_testdev build errors: need to #include <linux/slab.h>:
      
      drivers/media/video/vivi.c:1144: error: implicit declaration of function 'kfree'
      drivers/media/video/vivi.c:1156: error: implicit declaration of function 'kzalloc'
      drivers/media/video/vivi.c:1156: warning: assignment makes pointer from integer without a cast
      drivers/media/video/mem2mem_testdev.c:862: error: implicit declaration of function 'kzalloc'
      drivers/media/video/mem2mem_testdev.c:862: warning: assignment makes pointer from integer without a cast
      drivers/media/video/mem2mem_testdev.c:874: error: implicit declaration of function 'kfree'
      drivers/media/video/mem2mem_testdev.c:944: warning: assignment makes pointer from integer without a cast
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      6b46c397
    • Stefan Ringel's avatar
      V4L/DVB: tm6000: bugfix image position · 3c7c5e9e
      Stefan Ringel authored
      bugfix incorrect image and line position in videobuffer
      Signed-off-by: default avatarStefan Ringel <stefan.ringel@arcor.de>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      3c7c5e9e