1. 31 7月, 2012 4 次提交
    • L
      Merge tag 'boards2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · f50f118c
      Linus Torvalds 提交于
      Pull arm-soc board updates from Olof Johansson:
       "This branch contains board updates, mostly for shmobile, but also a
        couple for PXA.
      
        The shmobile platforms are still in the early stages of DT enablement,
        so there's a bit more updates here than we'd ideally want to see:
         - regulator updates to provide some fixed regulators on several
           boards
         - gpio support updates for multiple boards
         - misc updates for recently-introduced boards armadillo800eva and
           kzm9g
         - defconfig updates"
      
      * tag 'boards2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (37 commits)
        ARM: shmobile: kzm9g: defconfig enable INOTIFY_USER
        ARM: mach-shmobile: armadillo800eva: defconfig Allow use of armhf userspace
        ARM: shmobile: armadillo800eva: A3SP domain includes USB
        ARM: shmobile: armadillo800eva: A4LC domain includes LCDC
        ARM: shmobile: armadillo800eva: USB Func enables external IRQ mode
        ARM: mach-shmobile: kzm9d: Add defconfig
        ARM: mach-shmobile: select the fixed regulator driver on several boards
        ARM: mach-shmobile: add SDHI2 to the 2.8V fixed regulator consumers on kzm9g
        ARM: pxa: hx4700: Use DEFINE_RES_* macros consistently
        ARM: pxa: remove eseries.h
        ARM: mach-shmobile: add fixed voltage regulators to marzen
        ARM: mach-shmobile: add fixed voltage regulators to kzm9g
        ARM: mach-shmobile: add fixed voltage regulators to kzm9d
        ARM: mach-shmobile: add fixed voltage regulators to kota2
        ARM: mach-shmobile: add fixed voltage regulators to g4evm
        ARM: mach-shmobile: add fixed voltage regulators to bonito
        ARM: mach-shmobile: add fixed voltage regulators to armadillo800eva
        ARM: mach-shmobile: add fixed voltage regulators to ap4evb
        ARM: mach-shmobile: add fixed voltage regulators to ag5evm
        ARM: mach-shmobile: add 3.3V and 1.8V fixed regulators to mackerel
        ...
      f50f118c
    • L
      Merge tag 'soc2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · b7574a22
      Linus Torvalds 提交于
      Pull arm-soc soc updates from Olof Johansson:
       "This is the second batch of SoC updates for the 3.6 merge window,
        containing parts that arrived close to the merge window opening and
        thus needed to sit in linux-next for a while.
      
        Most contents is updates of Renesas shmobile, with a couple of Samsung
        Exynos patches in the mix."
      
      * tag 'soc2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (39 commits)
        ARM: S3C64XX: Add header file protection macros in pm-core.h
        [CPUFREQ] EXYNOS5250: Add support max 1.7GHz for EXYNOS5250
        ARM: EXYNOS: Add G2D related clock entries for SMDK4X12
        ARM: EXYNOS: Move G2D clock entries to clock-exynos4210.c file
        ARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config
        ARM: shmobile: Take cpuidle dependencies into account correctly
        ARM: mach-shmobile: sh7377 generic board support via DT
        ARM: mach-shmobile: r8a7740 generic board support via DT
        ARM: shmobile: sh7372: completely switch over to using pm-rmobile API
        ARM: shmobile: ap4evb: switch to using pm-rmobile API
        ARM: shmobile: mackerel: switch to using pm-rmobile API
        ARM: shmobile: sh7372: add pm-rmobile domain support
        ARM: shmobile: r8a7740: add A4LC pm domain support
        ARM: shmobile: r8a7740: add A3SP pm domain support
        ARM: shmobile: r8a7740: add A4S pm domain support
        ARM: shmobile: r8a7740: fixup: MSEL1CR 7bit control
        ARM: shmobile: soc-core: add R-mobile PM domain common APIs
        ARM: shmobile: sh7372 A3SM CPUIdle support
        ARM: shmobile: Use INTCA with sh7372 A3SM power domain
        ARM: mach-shmobile: Convert sh_clk_mstp32_register to sh_clk_mstp_register
        ...
      b7574a22
    • L
      Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394 · 148b729b
      Linus Torvalds 提交于
      Pull firewire updates from Stefan Richter:
      
       - Small fixes and optimizations.
      
       - A new sysfs attribute to tell local and remote nodes apart.
         Useful to set special permissions/ ownership of local nodes'
         /dev/fw*, to start daemons on them (for diagnostics, management,
         AV targets, VersaPHY initiator or targets...), to pick up their
         GUID to use it as GUID of an SBP2 target instance, and of course
         for informational purposes.
      
      * tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
        firewire: core: document is_local sysfs attribute
        firewire: core: add is_local sysfs device attribute
        firewire: ohci: initialize multiChanMode bits after reset
        firewire: core: fix multichannel IR with buffers larger than 2 GB
        firewire: ohci: sanity-check MMIO resource
        firewire: ohci: lazy bus time initialization
        firewire: core: allocate the low memory region
        firewire: core: make address handler length 64 bits
      148b729b
    • L
      Merge branch 'for-3.6' of git://gitorious.org/linux-pwm/linux-pwm · 9ec97169
      Linus Torvalds 提交于
      Pull PWM subsystem from Thierry Reding:
       "The new PWM subsystem aims at collecting all implementations of the
        legacy PWM API and to eventually replace it completely.
      
        The subsystem has been in development for over half a year now and
        many drivers have already been converted.  It has been in linux-next
        for a couple of weeks and there have been no major issues so I think
        it is ready for inclusion in your tree."
      
      Arnd Bergmann <arnd@arndb.de>:
       "Very much Ack on the new subsystem.  It uses the interface
        declarations as the previously separate pwm drivers, so nothing
        changes for now in the drivers using it, although it enables us to
        change those more easily in the future if we want to.
      
        This work is also one of the missing pieces that are required to
        eventually build ARM kernels for multiple platforms, which is
        currently prohibited (amongs other things) by the fact that you cannot
        have more than one driver exporting the pwm functions."
      Tested-and-acked-by: NAlexandre Courbot <acourbot@nvidia.com>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Acked-by: Philip, Avinash <avinashphilip@ti.com> # TI's AM33xx platforms
      Acked-By: Alexandre Pereira da Silva <aletes.xgr@gmail.com> # LPC32XX
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NSachin Kamat <sachin.kamat@linaro.org>
      
      Fix up trivial conflicts with other cleanups and DT updates.
      
      * 'for-3.6' of git://gitorious.org/linux-pwm/linux-pwm: (36 commits)
        pwm: pwm-tiehrpwm: PWM driver support for EHRPWM
        pwm: pwm-tiecap: PWM driver support for ECAP APWM
        pwm: fix used-uninitialized warning in pwm_get()
        pwm: add lpc32xx PWM support
        pwm_backlight: pass correct brightness to callback
        pwm: Use pr_* functions in pwm-samsung.c file
        pwm: Convert pwm-samsung to use devm_* APIs
        pwm: Convert pwm-tegra to use devm_clk_get()
        pwm: pwm-mxs: Return proper error if pwmchip_remove() fails
        pwm: pwm-bfin: Return proper error if pwmchip_remove() fails
        pwm: pxa: Propagate pwmchip_remove() error
        pwm: Convert pwm-pxa to use devm_* APIs
        pwm: Convert pwm-vt8500 to use devm_* APIs
        pwm: Convert pwm-imx to use devm_* APIs
        pwm: Conflict with legacy PWM API
        pwm: pwm-mxs: add pinctrl support
        pwm: pwm-mxs: use devm_* managed functions
        pwm: pwm-mxs: use global reset function stmp_reset_block
        pwm: pwm-mxs: encode soc name in compatible string
        pwm: Take over maintainership of the PWM subsystem
        ...
      9ec97169
  2. 29 7月, 2012 1 次提交
    • L
      Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux · a410963b
      Linus Torvalds 提交于
      Pull embedded i2c changes from Wolfram Sang:
       "Changes for the "embedded" part of the I2C subsystem:
      
         - lots of devicetree conversions of drivers (and preparations for
           that)
         - big cleanups for drivers for OMAP, Tegra, Nomadik, Blackfin
         - Rafael's struct dev_pm_ops conversion patches for I2C
         - usual driver cleanups and fixes
      
        All patches have been in linux-next for an apropriate time and all
        patches touching files outside of i2c-folders should have proper acks
        from the maintainers."
      
      * 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux: (60 commits)
        Revert "i2c: tegra: convert normal suspend/resume to *_noirq"
        I2C: MV64XYZ: Add Device Tree support
        i2c: stu300: use devm managed resources
        i2c: i2c-ocores: support for 16bit and 32bit IO
        V4L/DVB: mfd: use reg_shift instead of regstep
        i2c: i2c-ocores: Use reg-shift property
        i2c: i2c-ocores: DT bindings and minor fixes.
        i2c: mv64xxxx: remove EXPERIMENTAL tag
        i2c-s3c2410: Use plain pm_runtime_put()
        i2c: s3c2410: Fix pointer type passed to of_match_node()
        i2c: mxs: Set I2C timing registers for mxs-i2c
        i2c: i2c-bfin-twi: Move blackfin TWI register access Macro to head file.
        i2c: i2c-bfin-twi: Move TWI peripheral pin request array to platform data.
        i2c:i2c-bfin-twi: include twi head file
        i2c:i2c-bfin-twi: TWI fails to restart next transfer in high system load.
        i2c: i2c-bfin-twi: Tighten condition when failing I2C transfer if MEN bit is reset unexpectedly.
        i2c: i2c-bfin-twi: Break dead waiting loop if i2c device misbehaves.
        i2c: i2c-bfin-twi: Improve the patch for bug "Illegal i2c bus lock upon certain transfer scenarios".
        i2c: i2c-bfin-twi: Illegal i2c bus lock upon certain transfer scenarios.
        i2c-mv64xxxx: allow more than one driver instance
        ...
      
      Conflicts:
      	drivers/i2c/busses/i2c-nomadik.c
      a410963b
  3. 28 7月, 2012 13 次提交
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · f7da9cdf
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
       "Several bug fixes, some to new features appearing in this merge
        window, some that have been around for a while.
      
        I have a short list of known problems that need to be sorted out, but
        all of them can be solved easily during the run up to 3.6-final.
      
        I'll be offline until Sunday afternoon, but nothing need hold up
        3.6-rc1 and the close of the merge window, networking wise, at this
        point.
      
        1) Fix interface check in ipv4 TCP early demux, from Eric Dumazet.
      
        2) Fix a long standing bug in TCP DMA to userspace offload that can
           hang applications using MSG_TRUNC, from Jiri Kosina.
      
        3) Don't allow TCP_USER_TIMEOUT to be negative, from Hangbin Liu.
      
        4) Don't use GFP_KERNEL under spinlock in kaweth driver, from Dan
           Carpenter"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
        tcp: perform DMA to userspace only if there is a task waiting for it
        Revert "openvswitch: potential NULL deref in sample()"
        ipv4: fix TCP early demux
        net: fix rtnetlink IFF_PROMISC and IFF_ALLMULTI handling
        USB: kaweth.c: use GFP_ATOMIC under spin_lock
        tcp: Add TCP_USER_TIMEOUT negative value check
        bcma: add missing iounmap on error path
        bcma: fix regression in interrupt assignment on mips
        mac80211_hwsim: fix possible race condition in usage of info->control.sta & control.vif
      f7da9cdf
    • L
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 173f8654
      Linus Torvalds 提交于
      Pull ext4 updates from Ted Ts'o:
       "The usual collection of bug fixes and optimizations.  Perhaps of
        greatest note is a speed up for parallel, non-allocating DIO writes,
        since we no longer take the i_mutex lock in that case.
      
        For bug fixes, we fix an incorrect overhead calculation which caused
        slightly incorrect results for df(1) and statfs(2).  We also fixed
        bugs in the metadata checksum feature."
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (23 commits)
        ext4: undo ext4_calc_metadata_amount if we fail to claim space
        ext4: don't let i_reserved_meta_blocks go negative
        ext4: fix hole punch failure when depth is greater than 0
        ext4: remove unnecessary argument from __ext4_handle_dirty_metadata()
        ext4: weed out ext4_write_super
        ext4: remove unnecessary superblock dirtying
        ext4: convert last user of ext4_mark_super_dirty() to ext4_handle_dirty_super()
        ext4: remove useless marking of superblock dirty
        ext4: fix ext4 mismerge back in January
        ext4: remove dynamic array size in ext4_chksum()
        ext4: remove unused variable in ext4_update_super()
        ext4: make quota as first class supported feature
        ext4: don't take the i_mutex lock when doing DIO overwrites
        ext4: add a new nolock flag in ext4_map_blocks
        ext4: split ext4_file_write into buffered IO and direct IO
        ext4: remove an unused statement in ext4_mb_get_buddy_page_lock()
        ext4: fix out-of-date comments in extents.c
        ext4: use s_csum_seed instead of i_csum_seed for xattr block
        ext4: use proper csum calculation in ext4_rename
        ext4: fix overhead calculation used by ext4_statfs()
        ...
      173f8654
    • L
      Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm · cea8f46c
      Linus Torvalds 提交于
      Pull ARM updates from Russell King:
       "First ARM push of this merge window, post me coming back from holiday.
        This is what has been in linux-next for the last few weeks.  Not much
        to say which isn't described by the commit summaries."
      
      * 'for-linus' of git://git.linaro.org/people/rmk/linux-arm: (32 commits)
        ARM: 7463/1: topology: Update cpu_power according to DT information
        ARM: 7462/1: topology: factorize the update of sibling masks
        ARM: 7461/1: topology: Add arch_scale_freq_power function
        ARM: 7456/1: ptrace: provide separate functions for tracing syscall {entry,exit}
        ARM: 7455/1: audit: move syscall auditing until after ptrace SIGTRAP handling
        ARM: 7454/1: entry: don't bother with syscall tracing on ret_from_fork path
        ARM: 7453/1: audit: only allow syscall auditing for pure EABI userspace
        ARM: 7452/1: delay: allow timer-based delay implementation to be selected
        ARM: 7451/1: arch timer: implement read_current_timer and get_cycles
        ARM: 7450/1: dcache: select DCACHE_WORD_ACCESS for little-endian ARMv6+ CPUs
        ARM: 7449/1: use generic strnlen_user and strncpy_from_user functions
        ARM: 7448/1: perf: remove arm_perf_pmu_ids global enumeration
        ARM: 7447/1: rwlocks: remove unused branch labels from trylock routines
        ARM: 7446/1: spinlock: use ticket algorithm for ARMv6+ locking implementation
        ARM: 7445/1: mm: update CONTEXTIDR register to contain PID of current process
        ARM: 7444/1: kernel: add arch-timer C3STOP feature
        ARM: 7460/1: remove asm/locks.h
        ARM: 7439/1: head.S: simplify initial page table mapping
        ARM: 7437/1: zImage: Allow DTB command line concatenation with ATAG_CMDLINE
        ARM: 7436/1: Do not map the vectors page as write-through on UP systems
        ...
      cea8f46c
    • R
    • D
      Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless · 7b9b04fb
      David S. Miller 提交于
      John W. Linville says:
      
      ====================
      These fixes are intended for the 3.6 stream.
      
      Hauke Mehrtens provides a pair of bcma fixes, one to fix a build
      regression on mips and another to correct a pair of missing iounmap
      calls.
      
      Thomas Huehn offers a mac80211_hwsim fix to avoid a possible
      use-after-free bug.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7b9b04fb
    • J
      tcp: perform DMA to userspace only if there is a task waiting for it · 59ea33a6
      Jiri Kosina 提交于
      Back in 2006, commit 1a2449a8 ("[I/OAT]: TCP recv offload to I/OAT")
      added support for receive offloading to IOAT dma engine if available.
      
      The code in tcp_rcv_established() tries to perform early DMA copy if
      applicable. It however does so without checking whether the userspace
      task is actually expecting the data in the buffer.
      
      This is not a problem under normal circumstances, but there is a corner
      case where this doesn't work -- and that's when MSG_TRUNC flag to
      recvmsg() is used.
      
      If the IOAT dma engine is not used, the code properly checks whether
      there is a valid ucopy.task and the socket is owned by userspace, but
      misses the check in the dmaengine case.
      
      This problem can be observed in real trivially -- for example 'tbench' is a
      good reproducer, as it makes a heavy use of MSG_TRUNC. On systems utilizing
      IOAT, you will soon find tbench waiting indefinitely in sk_wait_data(), as they
      have been already early-copied in tcp_rcv_established() using dma engine.
      
      This patch introduces the same check we are performing in the simple
      iovec copy case to the IOAT case as well. It fixes the indefinite
      recvmsg(MSG_TRUNC) hangs.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      59ea33a6
    • J
      Revert "openvswitch: potential NULL deref in sample()" · 60810307
      Jesse Gross 提交于
      This reverts commit 5b3e7e6c.
      
      The problem that the original commit was attempting to fix can
      never happen in practice because validation is done one a per-flow
      basis rather than a per-packet basis.  Adding additional checks at
      runtime is unnecessary and inconsistent with the rest of the code.
      
      CC: Dan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NJesse Gross <jesse@nicira.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      60810307
    • E
      ipv4: fix TCP early demux · 505fbcf0
      Eric Dumazet 提交于
      commit 92101b3b (ipv4: Prepare for change of rt->rt_iif encoding.)
      invalidated TCP early demux, because rx_dst_ifindex is not properly
      initialized and checked.
      
      Also remove the use of inet_iif(skb) in favor or skb->skb_iif
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      505fbcf0
    • J
      net: fix rtnetlink IFF_PROMISC and IFF_ALLMULTI handling · b1beb681
      Jiri Benc 提交于
      When device flags are set using rtnetlink, IFF_PROMISC and IFF_ALLMULTI
      flags are handled specially. Function dev_change_flags sets IFF_PROMISC and
      IFF_ALLMULTI bits in dev->gflags according to the passed value but
      do_setlink passes a result of rtnl_dev_combine_flags which takes those bits
      from dev->flags.
      
      This can be easily trigerred by doing:
      
      tcpdump -i eth0 &
      ip l s up eth0
      
      ip sets IFF_UP flag in ifi_flags and ifi_change, which is combined with
      IFF_PROMISC by rtnl_dev_combine_flags, causing __dev_change_flags to set
      IFF_PROMISC in gflags.
      Reported-by: NMax Matveev <makc@redhat.com>
      Signed-off-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b1beb681
    • D
      USB: kaweth.c: use GFP_ATOMIC under spin_lock · e4c7f259
      Dan Carpenter 提交于
      The problem is that we call this with a spin lock held.  The call tree
      is:
      	kaweth_start_xmit() holds kaweth->device_lock.
      	-> kaweth_async_set_rx_mode()
      	   -> kaweth_control()
      	      -> kaweth_internal_control_msg()
      
      The kaweth_internal_control_msg() function is only called from
      kaweth_control() which used GFP_ATOMIC for its allocations.
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e4c7f259
    • H
      tcp: Add TCP_USER_TIMEOUT negative value check · 42493570
      Hangbin Liu 提交于
      TCP_USER_TIMEOUT is a TCP level socket option that takes an unsigned int. But
      patch "tcp: Add TCP_USER_TIMEOUT socket option"(dca43c75) didn't check the negative
      values. If a user assign -1 to it, the socket will set successfully and wait
      for 4294967295 miliseconds. This patch add a negative value check to avoid
      this issue.
      Signed-off-by: NHangbin Liu <liuhangbin@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      42493570
    • L
      Merge tag 'tty-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · c1e7179a
      Linus Torvalds 提交于
      Pull TTY/Serial patches from Greg Kroah-Hartman:
       "Here's the "tiny" set of patches for 3.6-rc1 for the tty layer and
        serial drivers.  They were cherry-picked from the tty-next branch of
        the tty git tree, as they are small and "obvious" fixes.  The larger
        changes, as mentioned before, will be saved for the 3.7-rc1 merge
        window.
      
        All of these changes have been in the linux-next releases for quite a
        while.
      
        Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>"
      
      * tag 'tty-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        pch_uart: Fix parity setting issue
        pch_uart: Fix rx error interrupt setting issue
        pch_uart: Fix missing break for 16 byte fifo
        tty ldisc: Close/Reopen race prevention should check the proper flag
        pch_uart: Add eg20t_port lock field, avoid recursive spinlocks
        vt: fix race in vt_waitactive()
        serial/of-serial: Add LPC3220 standard UART compatible string
        serial/8250: Add LPC3220 standard UART type
        serial_core: Update buffer overrun statistics.
        serial: samsung: Fixed wrong comparison for baudclk_rate
      c1e7179a
    • L
      Merge branch 'kmap_atomic' of git://github.com/congwang/linux · 84eda280
      Linus Torvalds 提交于
      Pull final kmap_atomic cleanups from Cong Wang:
       "This should be the final round of cleanup, as the definitions of enum
        km_type finally get removed from the whole tree.  The patches have
        been in linux-next for a long time."
      
      * 'kmap_atomic' of git://github.com/congwang/linux:
        pipe: remove KM_USER0 from comments
        vmalloc: remove KM_USER0 from comments
        feature-removal-schedule.txt: remove kmap_atomic(page, km_type)
        tile: remove km_type definitions
        um: remove km_type definitions
        asm-generic: remove km_type definitions
        avr32: remove km_type definitions
        frv: remove km_type definitions
        powerpc: remove km_type definitions
        arm: remove km_type definitions
        highmem: remove the deprecated form of kmap_atomic
        tile: remove usage of enum km_type
        frv: remove the second parameter of kmap_atomic_primary()
        jbd2: remove the second argument of kmap_atomic
      84eda280
  4. 27 7月, 2012 22 次提交