1. 15 Sep, 2011 2 commits
  2. 24 Aug, 2011 1 commit
  3. 23 Aug, 2011 1 commit
  4. 10 Aug, 2011 1 commit
  5. 08 Aug, 2011 1 commit
  6. 05 Aug, 2011 1 commit
  7. 04 Aug, 2011 1 commit
  8. 26 Jul, 2011 32 commits
    • Paul Bolle's avatar
      eventpoll: fix comment typo 'evenpoll' · 10bd2473
      Paul Bolle authored
      Signed-off-by: default avatarPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      10bd2473
    • 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