1. 26 Jul, 2011 40 commits
    • Linus Torvalds's avatar
      Merge branch 'x86-olpc-for-linus' of... · fa8f53ac
      Linus Torvalds authored
      Merge branch 'x86-olpc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'x86-olpc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        x86, olpc-xo15-sci: Enable EC wakeup capability
        x86, olpc: Fix dependency on POWER_SUPPLY
        x86, olpc: Add XO-1.5 SCI driver
        x86, olpc: Add XO-1 RTC driver
        x86, olpc-xo1-sci: Propagate power supply/battery events
        x86, olpc-xo1-sci: Add lid switch functionality
        x86, olpc-xo1-sci: Add GPE handler and ebook switch functionality
        x86, olpc: EC SCI wakeup mask functionality
        x86, olpc: Add XO-1 SCI driver and power button control
        x86, olpc: Add XO-1 suspend/resume support
        x86, olpc: Rename olpc-xo1 to olpc-xo1-pm
        x86, olpc: Move CS5536-related constants to cs5535.h
        x86, olpc: Add missing elements to device tree
      fa8f53ac
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 · 1d87c28e
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
        cifs: Cleanup: check return codes of crypto api calls
        CIFS: Fix oops while mounting with prefixpath
        [CIFS] Redundant null check after dereference
        cifs: use cifs_dirent in cifs_save_resume_key
        cifs: use cifs_dirent to replace cifs_get_name_from_search_buf
        cifs: introduce cifs_dirent
        cifs: cleanup cifs_filldir
      1d87c28e
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest · aebdd82e
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-ktest:
        ktest: Fix bug when ADD_CONFIG is set but MIN_CONFIG is not
        ktest: Keep fonud configs separate from default configs
        ktest: Add prompt to use OUTPUT_MIN_CONFIG
        ktest: Use Kconfig dependencies to shorten time to make min_config
        ktest: Add test type make_min_config
        ktest: Require one TEST_START in config file
        ktest: Add helper function to avoid duplicate code
        ktest: Add IGNORE_WARNINGS to ignore warnings in some patches
        ktest: Fix tar extracting of modules to target
        ktest: Have the testing tmp dir include machine name
        ktest: Add POST/PRE_BUILD options
        ktest: Allow initrd processing without modules defined
        ktest: Have LOG_FILE evaluate options as well
        ktest: Have wait on stdio honor bug timeout
        ktest: Implement our own force min config
        ktest: Add TEST_NAME option
        ktest: Add CONFIG_BISECT_GOOD option
        ktest: Add detection of triple faults
        ktest: Notify reason to break out of monitoring boot
      aebdd82e
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/writeback · f01ef569
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/wfg/writeback: (27 commits)
        mm: properly reflect task dirty limits in dirty_exceeded logic
        writeback: don't busy retry writeback on new/freeing inodes
        writeback: scale IO chunk size up to half device bandwidth
        writeback: trace global_dirty_state
        writeback: introduce max-pause and pass-good dirty limits
        writeback: introduce smoothed global dirty limit
        writeback: consolidate variable names in balance_dirty_pages()
        writeback: show bdi write bandwidth in debugfs
        writeback: bdi write bandwidth estimation
        writeback: account per-bdi accumulated written pages
        writeback: make writeback_control.nr_to_write straight
        writeback: skip tmpfs early in balance_dirty_pages_ratelimited_nr()
        writeback: trace event writeback_queue_io
        writeback: trace event writeback_single_inode
        writeback: remove .nonblocking and .encountered_congestion
        writeback: remove writeback_control.more_io
        writeback: skip balance_dirty_pages() for in-memory fs
        writeback: add bdi_dirty_limit() kernel-doc
        writeback: avoid extra sync work at enqueue time
        writeback: elevate queue_io() into wb_writeback()
        ...
      
      Fix up trivial conflicts in fs/fs-writeback.c and mm/filemap.c
      f01ef569
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · a93a1329
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-block:
        block: fix warning with calling smp_processor_id() in preemptible section
      a93a1329
    • Linus Torvalds's avatar
      Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · 757c26b8
      Linus Torvalds authored
      * 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (135 commits)
        drm/radeon/kms: fix DP training for DPEncoderService revision bigger than 1.1
        drm/radeon/kms: add missing vddci setting on NI+
        drm/radeon: Add a rmb() in IH processing
        drm/radeon: ATOM Endian fix for atombios_crtc_program_pll()
        drm/radeon: Fix the definition of RADEON_BUF_SWAP_32BIT
        drm/radeon: Do an MMIO read on interrupts when not uisng MSIs
        drm/radeon: Writeback endian fixes
        drm/radeon: Remove a bunch of useless _iomem casts
        drm/gem: add support for private objects
        DRM: clean up and document parsing of video= parameter
        DRM: Radeon: Fix section mismatch.
        drm: really make debug levels match in edid failure code
        drm/radeon/kms: fix i2c map for rv250/280
        drm/nouveau/gr: disable fifo access and idle before suspend ctx unload
        drm/nouveau: pass flag to engine fini() method on suspend
        drm/nouveau: replace nv04_graph_fifo_access() use with direct reg bashing
        drm/nv40/gr: rewrite/split context takedown functions
        drm/nouveau: detect disabled device in irq handler and return IRQ_NONE
        drm/nouveau: ignore connector type when deciding digital/analog on DVI-I
        drm/nouveau: Add a quirk for Gigabyte NX86T
        ...
      757c26b8
    • Jens Axboe's avatar
      block: fix warning with calling smp_processor_id() in preemptible section · 11ccf116
      Jens Axboe authored
      After commit 5757a6d7 introduced an unsafe calling of
      smp_processor_id(), with preempt debuggin turned on we spew a lot of:
      
      BUG: using smp_processor_id() in preemptible [00000000] code: kjournald/514
      caller is __make_request+0x1b8/0x308
      [<c0019f44>] (unwind_backtrace+0x0/0xe8) from [<c024b4cc>] (debug_smp_processor_id+0xbc/0xf0)
      [<c024b4cc>] (debug_smp_processor_id+0xbc/0xf0) from [<c0223d14>] (__make_request+0x1b8/0x308)
      [<c0223d14>] (__make_request+0x1b8/0x308) from [<c02215ac>] (generic_make_request+0x4dc/0x558)
      [<c02215ac>] (generic_make_request+0x4dc/0x558) from [<c022173c>] (submit_bio+0x114/0x138)
      [<c022173c>] (submit_bio+0x114/0x138) from [<c011f504>] (submit_bh+0x148/0x16c)
      [<c011f504>] (submit_bh+0x148/0x16c) from [<c0121ed8>] (__sync_dirty_buffer+0x88/0xd8)
      [<c0121ed8>] (__sync_dirty_buffer+0x88/0xd8) from [<c01aff78>] (journal_commit_transaction+0x1198/0x1688)
      [<c01aff78>] (journal_commit_transaction+0x1198/0x1688) from [<c01b4034>] (kjournald+0xb4/0x224)
      [<c01b4034>] (kjournald+0xb4/0x224) from [<c0069ea0>] (kthread+0x8c/0x94)
      [<c0069ea0>] (kthread+0x8c/0x94) from [<c00137f8>] (kernel_thread_exit+0x0/0x8)
      
      Fix this by just using raw_smp_processor_id(), it's just a hint
      after all. There's no pinning of the CPU or accessing per-cpu
      structures involved.
      Reported-by: default avatarMing Lei <tom.leiming@gmail.com>
      Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
      11ccf116
    • Jerome Glisse's avatar
      drm/radeon/kms: fix DP training for DPEncoderService revision bigger than 1.1 · 5a96a899
      Jerome Glisse authored
      DPEncoderService newer than 1.1 can't properly program the DP (display port)
      link training. When facing such version use the DIGxEncoderControl method
      instead. Fix DP link training on some R7XX.
      Signed-off-by: default avatarJerome Glisse <jglisse@redhat.com>
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      5a96a899
    • Alex Deucher's avatar
      drm/radeon/kms: add missing vddci setting on NI+ · 4639dd21
      Alex Deucher authored
      Need to add vddci setting to pm init as well as
      resume.  Fixes hangs on load on some boards.
      
      Fixes:
      https://bugs.freedesktop.org/show_bug.cgi?id=38754Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      4639dd21
    • Linus Torvalds's avatar
      p9: avoid unused variable warning · e08dc132
      Linus Torvalds authored
      Commit 4e34e719 ("fs: take the ACL checks to common code") removed
      the use of the 'acl' variable in v9fs_iop_get_acl(), but left the
      variable definition around.  Remove it to get rid of the warning:
      
        fs/9p/acl.c: In function ‘v9fs_iop_get_acl’:
        fs/9p/acl.c:101:20: warning: unused variable ‘acl’
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e08dc132
    • Linus Torvalds's avatar
      Merge branch 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6 · 13805165
      Linus Torvalds authored
      * 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (741 commits)
        staging:iio:meter:ade7753 should be 16 bit read not 8 bit for mode register.
        staging:iio:kfifo_buf fix double initialization of the ring device structure.
        staging:iio:accel:lis3l02dq: fix incorrect pointer passed to spi_set_drvdata.
        staging:iio:imu fix missing register table index for some channels
        spectra: enable device before poking it
        staging: rts_pstor: Fix a miswriting
        staging/lirc_bt829: Return -ENODEV when no hardware is found.
        staging/lirc_parallel: remove pointless prototypes.
        staging/lirc_parallel: fix panic on rmmod
        staging:iio:adc:ad7476: Incorrect pointer into spi_set_drvdata.
        Staging: zram: Fix kunmapping order
        Revert "gma500: Fix dependencies"
        gma500: Add medfield header
        gma500: wire up the mrst i2c bus from chip_info
        gma500: Fix DPU build
        gma500: Clean up the DPU config and make it runtime
        gma500: resync with Medfield progress
        gma500: Use the mrst helpers and power control for mode commit
        gma500@ Fix backlight range error
        gma500: More Moorestown muddle meddling means MM maybe might modeset
        ...
      
      Fix up fairly trivial conflicts all over, mostly due to header file
      cleanup conflicts, but some deleted files and some just context changes:
       - Documentation/feature-removal-schedule.txt
       - drivers/staging/bcm/headers.h
       - drivers/staging/brcm80211/brcmfmac/dhd_linux.c
       - drivers/staging/brcm80211/brcmfmac/dhd_sdio.c
       - drivers/staging/brcm80211/brcmfmac/wl_cfg80211.h
       - drivers/staging/brcm80211/brcmfmac/wl_iw.c
       - drivers/staging/et131x/et131x_netdev.c
       - drivers/staging/rtl8187se/ieee80211/ieee80211_softmac.c
       - drivers/staging/rtl8192e/r8192E.h
       - drivers/staging/usbip/userspace/src/utils.h
      13805165
    • Linus Torvalds's avatar
      Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6 · d5ef6423
      Linus Torvalds authored
      * 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (26 commits)
        amba pl011: workaround for uart registers lockup
        n_gsm: fix the wrong FCS handling
        pch_uart: add missing comment about OKI ML7223
        pch_uart: Add MSI support
        tty: fix "IRQ45: nobody cared"
        PTI feature to allow user to name and mark masterchannel request.
        0 for o PTI Makefile bug.
        tty: serial: samsung.c remove legacy PM code.
        SERIAL: SC26xx: Fix link error.
        serial: mrst_max3110: initialize waitqueue earlier
        mrst_max3110: Change max missing message priority.
        tty: s5pv210: Add delay loop on fifo reset function for UART
        tty/serial: Fix XSCALE serial ports, e.g. ce4100
        serial: bfin_5xx: fix off-by-one with resource size
        drivers/tty: use printk_ratelimited() instead of printk_ratelimit()
        tty: n_gsm: Added refcount usage to gsm_mux and gsm_dlci structs
        tty: n_gsm: Add raw-ip support
        tty: n_gsm: expose gsmtty device nodes at ldisc open time
        pch_phub: Fix register miss-setting issue
        serial: 8250, increase PASS_LIMIT
        ...
      d5ef6423
    • Linus Torvalds's avatar
      Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 · f549953c
      Linus Torvalds authored
      * 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (115 commits)
        EHCI: fix direction handling for interrupt data toggles
        USB: serial: add IDs for WinChipHead USB->RS232 adapter
        USB: OHCI: fix another regression for NVIDIA controllers
        usb: gadget: m66592-udc: add pullup function
        usb: gadget: m66592-udc: add function for external controller
        usb: gadget: r8a66597-udc: add pullup function
        usb: renesas_usbhs: support multi driver
        usb: renesas_usbhs: inaccessible pipe is not an error
        usb: renesas_usbhs: care buff alignment when dma handler
        USB: PL2303: correctly handle baudrates above 115200
        usb: r8a66597-hcd: fixup USB_PORT_STAT_C_SUSPEND shift
        usb: renesas_usbhs: compile/config are rescued
        usb: renesas_usbhs: fixup comment-out
        usb: update email address in ohci-sh and r8a66597-hcd
        usb: r8a66597-hcd: add function for external controller
        EHCI: only power off port if over-current is active
        USB: mon: Allow to use usbmon without debugfs
        USB: EHCI: go back to using the system clock for QH unlinks
        ehci: add pci quirk for Ordissimo and RM Slate 100 too
        ehci: refactor pci quirk to use standard dmi_check_system method
        ...
      
      Fix up trivial conflicts in Documentation/feature-removal-schedule.txt
      f549953c
    • Linus Torvalds's avatar
      Merge branch 'driver-core-next' of... · f0deb97a
      Linus Torvalds authored
      Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
      
      * 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6:
        updated Documentation/ja_JP/SubmittingPatches
        debugfs: add documentation for debugfs_create_x64
        uio: uio_pdrv_genirq: Add OF support
        firmware: gsmi: remove sysfs entries when unload the module
        Documentation/zh_CN: Fix messy code file email-clients.txt
        driver core: add more help description for "path to uevent helper"
        driver-core: modify FIRMWARE_IN_KERNEL help message
        driver-core: Kconfig grammar corrections in firmware configuration
        DOCUMENTATION: Replace create_device() with device_create().
        DOCUMENTATION: Update overview.txt in Doc/driver-model.
        pti: pti_tty_install documentation mispelling.
      f0deb97a
    • Linus Torvalds's avatar
      Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 18447502
      Linus Torvalds authored
      * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (99 commits)
        drivers/virt: add missing linux/interrupt.h to fsl_hypervisor.c
        powerpc/85xx: fix mpic configuration in CAMP mode
        powerpc: Copy back TIF flags on return from softirq stack
        powerpc/64: Make server perfmon only built on ppc64 server devices
        powerpc/pseries: Fix hvc_vio.c build due to recent changes
        powerpc: Exporting boot_cpuid_phys
        powerpc: Add CFAR to oops output
        hvc_console: Add kdb support
        powerpc/pseries: Fix hvterm_raw_get_chars to accept < 16 chars, fixing xmon
        powerpc/irq: Quieten irq mapping printks
        powerpc: Enable lockup and hung task detectors in pseries and ppc64 defeconfigs
        powerpc: Add mpt2sas driver to pseries and ppc64 defconfig
        powerpc: Disable IRQs off tracer in ppc64 defconfig
        powerpc: Sync pseries and ppc64 defconfigs
        powerpc/pseries/hvconsole: Fix dropped console output
        hvc_console: Improve tty/console put_chars handling
        powerpc/kdump: Fix timeout in crash_kexec_wait_realmode
        powerpc/mm: Fix output of total_ram.
        powerpc/cpufreq: Add cpufreq driver for Momentum Maple boards
        powerpc: Correct annotations of pmu registration functions
        ...
      
      Fix up trivial Kconfig/Makefile conflicts in arch/powerpc, drivers, and
      drivers/cpufreq
      18447502
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 3b76eefe
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: Revive reporting of spurious interrupts
        m68knommu: Move forward declaration of do_IRQ() from machdep.h to irq.h
        m68k: fix some atomic operation asm address modes for ColdFire
        m68k: use CPU_HAS_NO_BITFIELDS for signal functions
        m68k: merge and clean up delay.h files
        m68knommu: correctly use trap_init
        m68knommu: merge ColdFire 5206 and 5206e platform code
        m68k: merge mmu and non-mmu bitops.h
        m68k: merge MMU and non MMU versions of system.h
        m68k: merge MMU and non-MMU versions of asm/hardirq.h
        m68k: merge the non-mmu and mmu versions of module.c
        m68knommu: Fix printk() format in free_initrd_mem()
        m68knommu: Make empty_zero_page "void *", like on m68k
      3b76eefe
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus · 91d44d99
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-linus:
        Squashfs: Make ZLIB compression support optional
        Squashfs: Update documentation for XZ and add squashfs-tools devel tree
      91d44d99
    • Linus Torvalds's avatar
      Merge branch 'for-3.1' of git://linux-nfs.org/~bfields/linux · 2dad3206
      Linus Torvalds authored
      * 'for-3.1' of git://linux-nfs.org/~bfields/linux:
        nfsd: don't break lease on CLAIM_DELEGATE_CUR
        locks: rename lock-manager ops
        nfsd4: update nfsv4.1 implementation notes
        nfsd: turn on reply cache for NFSv4
        nfsd4: call nfsd4_release_compoundargs from pc_release
        nfsd41: Deny new lock before RECLAIM_COMPLETE done
        fs: locks: remove init_once
        nfsd41: check the size of request
        nfsd41: error out when client sets maxreq_sz or maxresp_sz too small
        nfsd4: fix file leak on open_downgrade
        nfsd4: remember to put RW access on stateid destruction
        NFSD: Added TEST_STATEID operation
        NFSD: added FREE_STATEID operation
        svcrpc: fix list-corrupting race on nfsd shutdown
        rpc: allow autoloading of gss mechanisms
        svcauth_unix.c: quiet sparse noise
        svcsock.c: include sunrpc.h to quiet sparse noise
        nfsd: Remove deprecated nfsctl system call and related code.
        NFSD: allow OP_DESTROY_CLIENTID to be only op in COMPOUND
      
      Fix up trivial conflicts in Documentation/feature-removal-schedule.txt
      2dad3206
    • Linus Torvalds's avatar
      vfs: fix check_acl compile error when CONFIG_FS_POSIX_ACL is not set · 84635d68
      Linus Torvalds authored
      Commit e77819e5 ("vfs: move ACL cache lookup into generic code")
      didn't take the FS_POSIX_ACL config variable into account - when that is
      not set, ACL's go away, and the cache helper functions do not exist,
      causing compile errors like
      
        fs/namei.c: In function 'check_acl':
        fs/namei.c:191:10: error: implicit declaration of function 'negative_cached_acl'
        fs/namei.c:196:2: error: implicit declaration of function 'get_cached_acl'
        fs/namei.c:196:6: warning: assignment makes pointer from integer without a cast
        fs/namei.c:212:11: error: implicit declaration of function 'set_cached_acl'
      Reported-by: default avatarMarkus Trippelsdorf <markus@trippelsdorf.de>
      Acked-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      84635d68
    • Linus Torvalds's avatar
      Merge 'akpm' patch series · 45b583b1
      Linus Torvalds authored
      * Merge akpm patch series: (122 commits)
        drivers/connector/cn_proc.c: remove unused local
        Documentation/SubmitChecklist: add RCU debug config options
        reiserfs: use hweight_long()
        reiserfs: use proper little-endian bitops
        pnpacpi: register disabled resources
        drivers/rtc/rtc-tegra.c: properly initialize spinlock
        drivers/rtc/rtc-twl.c: check return value of twl_rtc_write_u8() in twl_rtc_set_time()
        drivers/rtc: add support for Qualcomm PMIC8xxx RTC
        drivers/rtc/rtc-s3c.c: support clock gating
        drivers/rtc/rtc-mpc5121.c: add support for RTC on MPC5200
        init: skip calibration delay if previously done
        misc/eeprom: add eeprom access driver for digsy_mtc board
        misc/eeprom: add driver for microwire 93xx46 EEPROMs
        checkpatch.pl: update $logFunctions
        checkpatch: make utf-8 test --strict
        checkpatch.pl: add ability to ignore various messages
        checkpatch: add a "prefer __aligned" check
        checkpatch: validate signature styles and To: and Cc: lines
        checkpatch: add __rcu as a sparse modifier
        checkpatch: suggest using min_t or max_t
        ...
      
      Did this as a merge because of (trivial) conflicts in
       - Documentation/feature-removal-schedule.txt
       - arch/xtensa/include/asm/uaccess.h
      that were just easier to fix up in the merge than in the patch series.
      45b583b1
    • Andrew Morton's avatar
      drivers/connector/cn_proc.c: remove unused local · f19da2ce
      Andrew Morton authored
      Fix the warning
      
        drivers/connector/cn_proc.c: In function 'proc_ptrace_connector':
        drivers/connector/cn_proc.c:176: warning: unused variable 'tracer'
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f19da2ce
    • Paul E. McKenney's avatar
      Documentation/SubmitChecklist: add RCU debug config options · df2694d8
      Paul E. McKenney authored
      There have been persistent lockdep RCU splats, indicating that submitters
      are not testing with CONFIG_PROVE_RCU.  Add this config option to the list
      in Documentation/SubmitChecklist.  Also add CONFIG_DEBUG_OBJECTS_RCU_HEAD
      for good measure.
      Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      df2694d8
    • Akinobu Mita's avatar
      reiserfs: use hweight_long() · 9d6bf5aa
      Akinobu Mita authored
      Use hweight_long() to count free bits in the bitmap.
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9d6bf5aa
    • Akinobu Mita's avatar
      reiserfs: use proper little-endian bitops · 0c2fd1bf
      Akinobu Mita authored
      Using __test_and_{set,clear}_bit_le() with ignoring its return value can
      be replaced with __{set,clear}_bit_le().
      
      This introduces reiserfs_{set,clear}_le_bit for __{set,clear}_bit_le and
      does the above change with them.
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0c2fd1bf
    • Witold Szczeponik's avatar
      pnpacpi: register disabled resources · 29df8d8f
      Witold Szczeponik authored
      When parsing PnP ACPI resource structures, it may happen that some of
      the resources are disabled (in which case "the size" of the resource
      equals zero).
      
      The current solution is to skip these resources completely - with the
      unfortunate side effect that they are not registered despite the fact
      that they exist, after all.  (The downside of this approach is that
      these resources cannot be used as templates for setting the actual
      device's resources because they are missing from the template.) The
      kernel's APM implementation does not suffer from this problem and
      registers all resources regardless of "their size".
      
      This patch fixes a problem with (at least) the vintage IBM ThinkPad 600E
      (and most likely also with the 600, 600X, and 770X which have a very
      similar layout) where some of its PnP devices support options where
      either an IRQ, a DMA, or an IO port is disabled.  Without this patch,
      the devices can not be configured using the
      "/sys/bus/pnp/devices/*/resources" interface.
      
      The manipulation of these resources is important because the 600E has
      very demanding requirements.  For instance, the number of IRQs is not
      sufficient to support all devices of the 600E.  Fortunately, some of the
      devices, like the sound card's MPU-401 UART, can be configured to not
      use any IRQ, hence freeing an IRQ for a device that requires one.
      (Still, the device's "ResourceTemplate" requires an IRQ resource
      descriptor which cannot be created if the resource has not been
      registered in the first place.)
      
      As an example, the dependent sets of the 600E's CSC0103 device (the
      MPU-401 UART) are listed, with the patch applied, as:
      
        Dependent: 00 - Priority preferred
          port 0x300-0x330, align 0xf, size 0x4, 16-bit address decoding
          irq <none> High-Edge
        Dependent: 01 - Priority acceptable
          port 0x300-0x330, align 0xf, size 0x4, 16-bit address decoding
          irq 5,7,2/9,10,11,15 High-Edge
      
      (The same result is obtained when PNPBIOS is used instead of PnP ACPI.)
      Without the patch, the IRQ resource in the preferred option is not
      listed at all:
      
        Dependent: 00 - Priority preferred
          port 0x300-0x330, align 0xf, size 0x4, 16-bit address decoding
        Dependent: 01 - Priority acceptable
          port 0x300-0x330, align 0xf, size 0x4, 16-bit address decoding
          irq 5,7,2/9,10,11,15 High-Edge
      
      And in fact, the 600E's DSDT lists the disabled IRQ as an option, as can
      be seen from the following excerpt from the DSDT:
      
      	Name (_PRS, ResourceTemplate ()
      	{
              StartDependentFn (0x00, 0x00)
              {
                  IO (Decode16, 0x0300, 0x0330, 0x10, 0x04)
                  IRQNoFlags () {}
              }
              StartDependentFn (0x01, 0x00)
              {
                  IO (Decode16, 0x0300, 0x0330, 0x10, 0x04)
                  IRQNoFlags () {5,7,9,10,11,15}
              }
              EndDependentFn ()
      	})
      
      With this patch applied, a user space program - or maybe even the kernel
      - can allocate all devices' resources optimally.  For the 600E, this
      means to find optimal resources for (at least) the serial port, the
      parallel port, the infrared port, the MWAVE modem, the sound card, and
      the MPU-401 UART.
      
      The patch applies the idea to register disabled resources to all types
      of resources, not just to IRQs, DMAs, and IO ports.  At the same time,
      it mimics the behavior of the "pnp_assign_xxx" functions from
      "drivers/pnp/manager.c" where resources with "no size" are considered
      disabled.
      
      No regressions were observed on hardware that does not require this
      patch.
      
      The patch is applied against 2.6.39.
      
      NB: The kernel's current PnP interface does not allow for disabling individual
      resources using the "/sys/bus/pnp/devices/$device/resources" file.  Assuming
      this could be done, a device could be configured to use a disabled resource
      using a simple series of calls:
      
        echo disable > /sys/bus/pnp/devices/$device/resources
        echo clear > /sys/bus/pnp/devices/$device/resources
        echo set irq disabled > /sys/bus/pnp/devices/$device/resources
        echo fill > /sys/bus/pnp/devices/$device/resources
        echo activate > /sys/bus/pnp/devices/$device/resources
      
      This patch addresses only the parsing of PnP ACPI devices.
      
      ChangeLog (v1 -> v2):
       - extend patch description
       - fix typo in patch itself
      Signed-off-by: default avatarWitold Szczeponik <Witold.Szczeponik@gmx.net>
      Cc: Len Brown <lenb@kernel.org>
      Cc: Adam Belay <abelay@mit.edu>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: Bjorn Helgaas <bhelgaas@google.com>
      Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Matthew Garrett <mjg@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      29df8d8f
    • Uwe Kleine-König's avatar
      drivers/rtc/rtc-tegra.c: properly initialize spinlock · e57ee017
      Uwe Kleine-König authored
      Using __SPIN_LOCK_UNLOCKED for a dynamically allocated lock is wrong and
      breaks the build with PREEMPT_RT_FULL.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Andrew Chew <achew@nvidia.com>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e57ee017
    • Jesper Juhl's avatar
      drivers/rtc/rtc-twl.c: check return value of twl_rtc_write_u8() in twl_rtc_set_time() · 8f6b0dd3
      Jesper Juhl authored
      We forget to save the return value of the call to
      twl_rtc_write_u8(save_control, REG_RTC_CTRL_REG); in 'ret', making the
      test of 'ret < 0' dead code since 'ret' then couldn't possibly have
      changed since the last test just a few lines above.  It also makes us not
      detect failures from that specific twl_rtc_write_u8() call.
      Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Alexandre Rusev <source@mvista.com>
      Cc: "George G. Davis" <gdavis@mvista.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      8f6b0dd3
    • Anirudh Ghayal's avatar
      drivers/rtc: add support for Qualcomm PMIC8xxx RTC · 9a9a54ad
      Anirudh Ghayal authored
      Add support for PMIC8xxx based RTC.  PMIC8xxx is Qualcomm's power
      management IC that internally houses an RTC module.  This driver
      communicates with the PMIC module over SSBI bus.
      
      [akpm@linux-foundation.org: cosmetic tweaks]
      Acked-by: default avatarWan ZongShun <mcuos.com@gmail.com>
      Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
      Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
      Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
      Cc: Samuel Ortiz <sameo@linux.intel.com>
      Cc: Wan ZongShun <mcuos.com@gmail.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9a9a54ad
    • Donggeun Kim's avatar
      drivers/rtc/rtc-s3c.c: support clock gating · cefe4fbb
      Donggeun Kim authored
      Add support for clock gating.  Power consumption can be reduced by setting
      rtc_clk disabled state except for when RTC related registers are accessed.
      Signed-off-by: default avatarDonggeun Kim <dg77.kim@samsung.com>
      Signed-off-by: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
      Signed-off-by: default avatarKyungMin Park <kyungmin.park@samsung.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Ben Dooks <ben@fluff.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cefe4fbb
    • Dmitry Eremin-Solenikov's avatar
      drivers/rtc/rtc-mpc5121.c: add support for RTC on MPC5200 · 955dbea3
      Dmitry Eremin-Solenikov authored
      MPC5200B contains a limited version of RTC from MPC5121.  Add support for
      the RTC on that CPU.
      Signed-off-by: default avatarDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      955dbea3
    • Sameer Nanda's avatar
      init: skip calibration delay if previously done · 7afe1845
      Sameer Nanda authored
      For each CPU, do the calibration delay only once.  For subsequent calls,
      use the cached per-CPU value of loops_per_jiffy.
      
      This saves about 200ms of resume time on dual core Intel Atom N5xx based
      systems.  This helps bring down the kernel resume time on such systems
      from about 500ms to about 300ms.
      
      [akpm@linux-foundation.org: make cpu_loops_per_jiffy static]
      [akpm@linux-foundation.org: clean up message text]
      [akpm@linux-foundation.org: fix things up after upstream rmk changes]
      Signed-off-by: default avatarSameer Nanda <snanda@chromium.org>
      Cc: Phil Carmody <ext-phil.2.carmody@nokia.com>
      Cc: Andrew Worsley <amworsley@gmail.com>
      Cc: David Daney <ddaney@caviumnetworks.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7afe1845
    • Anatolij Gustschin's avatar
      misc/eeprom: add eeprom access driver for digsy_mtc board · 469dded1
      Anatolij Gustschin authored
      Both displays on digsy_mtc board obtain their configuration from microwire
      EEPROMs which are connected to the SoC over GPIO lines.  We need an easy
      way to access the EEPROMs to write the needed display configuration or to
      read out the currently programmed configuration.  The generic
      eeprom_93xx46 SPI driver added by previous patch allows EEPROM access over
      sysfs.  Using the simple driver added by this patch we provide used GPIO
      interface and access control description on the board for generic
      eeprom_93xx46 driver and spi_gpio driver.
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      469dded1
    • Anatolij Gustschin's avatar
      misc/eeprom: add driver for microwire 93xx46 EEPROMs · 06b4501e
      Anatolij Gustschin authored
      Add EEPROM driver for 93xx46 chips.  It can also be used with spi_gpio
      driver to access 93xx46 EEPROMs connected over GPIO lines.  This driver
      supports read/write/erase access to the EEPROM chips over sysfs files.
      
      [rdunlap@xenotime.net: fix printk format]
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      Cc: Jonathan Cameron <jic23@cam.ac.uk>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      06b4501e
    • Joe Perches's avatar
      checkpatch.pl: update $logFunctions · 6e60c02e
      Joe Perches authored
      Previous behavior allowed only alphabetic prefixes like pr_info to exceed
      the 80 column line length limit.
      
      ath6kl wants to add a digit into the prefix, so allow numbers as well as
      digits in the <prefix>_<level> printks.
      
      <prefix>_<level>_ratelimited and <prefix>_<level>_once and WARN_RATELIMIT
      and WARN_ONCE may now exceed 80 cols.
      
      Add missing <prefix>_printk type for completeness.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Cc: Andy Whitcroft <apw@canonical.com>
      Cc: Kalle Valo <kvalo@qca.qualcomm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6e60c02e
    • Joe Perches's avatar
      checkpatch: make utf-8 test --strict · 34d99219
      Joe Perches authored
      Some patches are sent in using ISO-8859 or even Windows codepage 1252.
      
      Make checkpatch accept these by default and only emit the "Invalid UTF-8"
      message when using --strict.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      34d99219
    • Joe Perches's avatar
      checkpatch.pl: add ability to ignore various messages · 000d1cc1
      Joe Perches authored
      Some users would like the ability to not emit some of the messages that
      checkpatch produces.  This can make it easier to use checkpatch in other
      projects and integrate into scm hook scripts.
      
      Add command line option to "--ignore" various message types.  Add option
      --show-types to emit the "type" of each message.  Categorize all ERROR,
      WARN and CHK messages with types.
      
      Add optional .checkpatch.conf file to store default options.
      3 paths are searched for .checkpatch.conf
          .             customized per-tree configurations
          $HOME         user global configuration when per-tree configs don't exist
          ./scripts     lk defaults to override script
      The .conf file can contain any valid command-line argument and
      the contents are prepended to any additional command line arguments.
      Multiple lines may be used, blank lines are ignored, # is a comment.
      
      Update "false positive" output for readability.
      
      Update version to 0.32
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      Cc: Andy Whitcroft <apw@canonical.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      000d1cc1
    • Joe Perches's avatar
      checkpatch: add a "prefer __aligned" check · 39b7e287
      Joe Perches authored
      Prefer the use of __aligned(size) over __attribute__((__aligned___(size)))
      
      Link: http://lkml.kernel.org/r/20110609094526.1571774c.akpm@linux-foundation.orgSuggested-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      39b7e287
    • Joe Perches's avatar
      checkpatch: validate signature styles and To: and Cc: lines · 20112475
      Joe Perches authored
      Signatures have many forms and can sometimes cause problems if not in the
      correct format when using git send-email or quilt.
      
      Try to verify the signature tags and email addresses to use the generally
      accepted "Signed-off-by: Full Name <email@domain.tld>" form.
      
      Original idea by Anish Kumar <anish198519851985@gmail.com>
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Cc: Anish Kumar <anish198519851985@gmail.com>
      Cc: Nick Bowler <nbowler@elliptictech.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      20112475
    • Sven Eckelmann's avatar
      checkpatch: add __rcu as a sparse modifier · 165e72a6
      Sven Eckelmann authored
      Fix "need consistent spacing around '*'" error after a __rcu sparse
      annotation which was caused by the missing __rcu entry in the
      checkpatch.pl internal list of sparse keywords.
      Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
      Cc: Andy Whitcroft <apw@canonical.com>
      Cc: Joe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      165e72a6
    • Joe Perches's avatar
      checkpatch: suggest using min_t or max_t · 7d2367af
      Joe Perches authored
      A common issue with min() or max() is using a cast on one or both of the
      arguments when using min_t/max_t could be better.
      
      Add cast detection to uses of min/max and suggest an appropriate use of
      min_t or max_t instead.
      
      Caveat:  This only works for min() or max() on a single line.
               It does not find min() or max() split across multiple lines.
      
      This does find:
      	min((u32)foo, bar);
      But it does not find:
      	max((unsigned long)foo,
      	    bar);
      Suggested-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7d2367af