1. 31 7月, 2012 20 次提交
    • L
      Merge tag 'mfd-3.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 · 3e701cdf
      Linus Torvalds 提交于
      Pull MFD bits from Samuel Ortiz:
       "We have support for a few new drivers:
         - Samsung s2mps11
         - Wolfson Microelectronics wm5102 and wm5110
         - Marvell 88PM800 and 88PM805
         - TI twl6041
      
        We also have our regular driver improvements:
         - Device tree and IRQ domain support for STE AB8500
         - Regmap and devm_* API conversion for TI tps6586x
         - Device tree support for Samsung max77686
         - devm_* API conversion for STE AB3100
      
        Besides that, quite a lot of fixing and cleanup for mc13xxx, tps65910,
        tps65090, da9052 and twl-core."
      
      Fix up mostly trivial conflicts, with the exception of
      drivers/usb/host/ehci-omap.c in particular, which had some
      re-organization of the reset sequence (commit 1a49e2ac: "EHCI:
      centralize controller initialization") that clashed with commit
      2761a639 ("mfd: USB: Fix the omap-usb EHCI ULPI PHY reset fix
      issues").
      
      In particular, commit 2761a639 moved the usb_add_hcd() to the
      *middle* of the reset sequence, which clashes fairly badly with the
      reset sequence re-organization (although it could have been done inside
      the new omap_ehci_init() function).
      
      I left that part of commit 2761a639 just undone.
      
      * tag 'mfd-3.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (110 commits)
        mfd: Ensure AB8500 platform data is passed through db8500-prcmu to MFD Core
        mfd: Arizone core should select MFD_CORE
        mfd: Fix arizona-irq.c build by selecting REGMAP_IRQ
        mfd: Add debug trace on entering and leaving arizone runtime suspend
        mfd: Correct tps65090 cell names
        mfd: Remove gpio support from tps6586x core driver
        ARM: tegra: defconfig: Enable tps6586x gpio
        gpio: tps6586x: Add gpio support through platform driver
        mfd: Cache tps6586x register through regmap
        mfd: Use regmap for tps6586x register access.
        mfd: Use devm managed resources for tps6586x
        input: Add onkey support for 88PM80X PMIC
        mfd: Add support for twl6041
        mfd: Fix twl6040 revision information
        mfd: Matches should be NULL when populate anatop child devices
        input: ab8500-ponkey: Create AB8500 domain IRQ mapping
        mfd: Add missing out of memory check for pcf50633
        Documentation: Describe the AB8500 Device Tree bindings
        mfd: Add tps65910 32-kHz-crystal-input init
        mfd: Drop modifying mc13xxx driver's id_table in probe
        ...
      3e701cdf
    • L
      Merge branch 'linux-next' of git://cavan.codon.org.uk/platform-drivers-x86 · 7d3d09b0
      Linus Torvalds 提交于
      Pull x86 platform driver updates from Matthew Garrett:
       "Nothing overly dramatic here - improved support for the Classmate,
        some random small fixes and a rework of backlight management to deal
        with some of the more awkward cases."
      
      * 'linux-next' of git://cavan.codon.org.uk/platform-drivers-x86:
        thinkpad_acpi: Free hotkey_keycode_map after unregistering tpacpi_inputdev
        thinkpad_acpi: Fix a memory leak during module exit
        thinkpad_acpi: Flush the workqueue before freeing tpacpi_leds
        dell-laptop: Add 6 machines to touchpad led quirk
        ACER: Fix Smatch double-free issue
        ACER: Fix up sparse warning
        asus-nb-wmi: add some video toggle keys
        asus-nb-wmi: add wapf quirk for ASUS machines
        classmate-laptop: Fix extra keys hardware id.
        classmate-laptop: Add support for Classmate V4 accelerometer.
        asus-wmi: enable resume on lid open
        asus-wmi: control backlight power through WMI, not ACPI
        samsung-laptop: support R40/R41
        acpi/video_detect: blacklist samsung x360
        samsung-laptop: X360 ACPI backlight device is broken
        drivers-platform-x86: use acpi_video_dmi_promote_vendor()
        acpi: add a way to promote/demote vendor backlight drivers
        ACER: Add support for accelerometer sensor
        asus-wmi: use ASUS_WMI_METHODID_DSTS2 as default DSTS ID.
      7d3d09b0
    • L
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 287dc4b7
      Linus Torvalds 提交于
      Pull MIPS updates from Ralf Baechle:
       "More hardware support across the field including a bunch of device
        drivers.  The highlight however really are further steps towards
        device tree.
      
        This has been sitting in -next for ages.  All MIPS _defconfigs have
        been tested to boot or where I don't have hardware available, to at
        least build fine."
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (77 commits)
        MIPS: Loongson 1B: Add defconfig
        MIPS: Loongson 1B: Add board support
        MIPS: Netlogic: early console fix
        MIPS: Netlogic: Fix indentation of smpboot.S
        MIPS: Netlogic: remove cpu_has_dc_aliases define for XLP
        MIPS: Netlogic: Remove unused pcibios_fixups
        MIPS: Netlogic: Add XLP SoC devices in FDT
        MIPS: Netlogic: Add IRQ mappings for more devices
        MIPS: Netlogic: USB support for XLP
        MIPS: Netlogic: XLP PCIe controller support.
        MIPS: Netlogic: Platform changes for XLR/XLS I2C
        MIPS: Netlogic: Platform NAND/NOR flash support
        MIPS: Netlogic: Platform changes for XLS USB
        MIPS: Netlogic: Remove NETLOGIC_ prefix
        MIPS: Netlogic: SMP wakeup code update
        MIPS: Netlogic: Update comments in smpboot.S
        MIPS: BCM63XX: Add 96328avng reference board
        MIPS: Expose PCIe drivers for MIPS
        MIPS: BCM63XX: Add PCIe Support for BCM6328
        MIPS: BCM63XX: Move the PCI initialization into its own function
        ...
      287dc4b7
    • L
      Merge branch 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux · 720d8507
      Linus Torvalds 提交于
      Pull SLAB changes from Pekka Enberg:
       "Most of the changes included are from Christoph Lameter's "common
        slab" patch series that unifies common parts of SLUB, SLAB, and SLOB
        allocators.  The unification is needed for Glauber Costa's "kmem
        memcg" work that will hopefully appear for v3.7.
      
        The rest of the changes are fixes and speedups by various people."
      
      * 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux: (32 commits)
        mm: Fix build warning in kmem_cache_create()
        slob: Fix early boot kernel crash
        mm, slub: ensure irqs are enabled for kmemcheck
        mm, sl[aou]b: Move kmem_cache_create mutex handling to common code
        mm, sl[aou]b: Use a common mutex definition
        mm, sl[aou]b: Common definition for boot state of the slab allocators
        mm, sl[aou]b: Extract common code for kmem_cache_create()
        slub: remove invalid reference to list iterator variable
        mm: Fix signal SIGFPE in slabinfo.c.
        slab: move FULL state transition to an initcall
        slab: Fix a typo in commit 8c138b "slab: Get rid of obj_size macro"
        mm, slab: Build fix for recent kmem_cache changes
        slab: rename gfpflags to allocflags
        slub: refactoring unfreeze_partials()
        slub: use __cmpxchg_double_slab() at interrupt disabled place
        slab/mempolicy: always use local policy from interrupt context
        slab: Get rid of obj_size macro
        mm, sl[aou]b: Extract common fields from struct kmem_cache
        slab: Remove some accessors
        slab: Use page struct fields instead of casting
        ...
      720d8507
    • L
      Merge branch 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 637e49ae
      Linus Torvalds 提交于
      Pull treewide kbuild cleanup from Michal Marek:
       "Paul Bolle did a cleanup of <asm/*.h> headers in various
        architectures.  Because the patch touch several architectures at
        once, it was easiest for me to apply them to the kbuild tree."
      
      * 'trivial' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        Remove useless wrappers of asm-generic/rmap.h
        Remove useless wrappers of asm-generic/ipc.h
        Remove useless wrappers of asm-generic/cpumask.h
      637e49ae
    • L
      Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · f6774cbc
      Linus Torvalds 提交于
      Pull misc kbuild changes from Michal Marek:
       "This is the non-critical part of kbuild for v3.6-rc1:
      
         - Two new coccinelle semantic patches
         - New scripts/tags.sh regexp
         - scripts/config improvements that I mistakenly applied here instead
           of in the kconfig branch (but there are no conflicts)
         - Debian packaging fixes"
      
      * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        scripts/tags.sh: Teach [ce]tags about libtraceeevent error codes
        scripts/coccinelle: list iterator variable semantic patch
        scripts/coccinelle: Find threaded IRQs requests which are missing IRQF_ONESHOT
        deb-pkg: Add all Makefiles to header package
        deb-pkg: Install linux-firmware-image in versioned dir
        scripts/config: add option to undef a symbol
        scripts/config: allow alternate prefix to config option symbol
        scripts/config: add option to not upper-case symbols
      f6774cbc
    • L
      Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · b4e2ed32
      Linus Torvalds 提交于
      Pull kconfig changes from Michal Marek:
       - kconfig Makefile portability fixes
       - menuconfig/nconfig help pager usability fix
       - .gitignore cleanup
       - quoting fix in scripts/config
       - Makefile prints errors to stderr
       - support for arbitrarily log lines in .config
       - fix oldnoconfig description in 'make help'
      
      * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        kconfig: Document oldnoconfig to what it really does
        nconf: add u, d command keys in scroll windows
        menuconfig: add u, d, q command keys in text boxes
        scripts/config: fix double-quotes un-escaping
        kconfig: Print errors to stderr in the Makefile
        kconfig: allow long lines in config file
        kconfig: remove lkc_defs.h from .gitignore and dontdiff
        xconfig: add quiet rule for moc
        xconfig: use pkgconfig to find moc
        kconfig: fix check-lxdialog for DLL platforms
        kconfig: check ncursesw headers first in check-lxdialog
        kconfig/nconf: fix compile with ncurses reentrant API
      b4e2ed32
    • L
      Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · c66d7077
      Linus Torvalds 提交于
      Pull kbuild fix from Michal Marek:
       "The main kbuild branch ended up with a single commit this time, a fix
        to send errors to stderr"
      
      * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        kbuild: Print errors to stderr
      c66d7077
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security · 172f993a
      Linus Torvalds 提交于
      Pull security subsystem bugfixes from James Morris.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
        selinux: fix selinux_inode_setxattr oops
        KEYS: linux/key-type.h needs linux/errno.h
        smack: off by one error
      172f993a
    • L
      Merge tag 'dm-3.6-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm · 7272c30b
      Linus Torvalds 提交于
      Pull device-mapper updates from Alasdair G Kergon:
      - Flip the thin target into new read-only or failed modes if errors
        are detected;
      - Handle chunk sizes that are not powers of two in the snapshot and
        thin targets;
      - Provide a way for userspace to avoid replacing an already-loaded
        multipath hardware handler while booting;
      - Reduce dm_thin_endio_hook slab size to avoid allocation failures;
      - Numerous small changes and cleanups to the code.
      
      * tag 'dm-3.6-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-dm: (63 commits)
        dm thin: commit before gathering status
        dm thin: add read only and fail io modes
        dm thin metadata: introduce dm_pool_abort_metadata
        dm thin metadata: introduce dm_pool_metadata_set_read_only
        dm persistent data: introduce dm_bm_set_read_only
        dm thin: reduce number of metadata commits
        dm thin metadata: add dm_thin_changed_this_transaction
        dm thin metadata: add format option to dm_pool_metadata_open
        dm thin metadata: tidy up open and format error paths
        dm thin metadata: only check incompat features on open
        dm thin metadata: remove duplicate pmd initialisation
        dm thin metadata: remove create parameter from __create_persistent_data_objects
        dm thin metadata: move __superblock_all_zeroes to __open_or_format_metadata
        dm thin metadata: remove nr_blocks arg from __create_persistent_data_objects
        dm thin metadata: split __open or format metadata
        dm thin metadata: use struct dm_pool_metadata members in __open_or_format_metadata
        dm thin metadata: zero unused superblock uuid
        dm thin metadata: lift __begin_transaction out of __write_initial_superblock
        dm thin metadata: move dm_commit_pool_metadata into __write_initial_superblock
        dm thin metadata: factor out __write_initial_superblock
        ...
      7272c30b
    • L
      Merge branch 'for-linus-for-3.6-rc1' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping · 6f51f515
      Linus Torvalds 提交于
      Pull DMA-mapping updates from Marek Szyprowski:
       "Those patches are continuation of my earlier work.
      
        They contains extensions to DMA-mapping framework to remove limitation
        of the current ARM implementation (like limited total size of DMA
        coherent/write combine buffers), improve performance of buffer sharing
        between devices (attributes to skip cpu cache operations or creation
        of additional kernel mapping for some specific use cases) as well as
        some unification of the common code for dma_mmap_attrs() and
        dma_mmap_coherent() functions.  All extensions have been implemented
        and tested for ARM architecture."
      
      * 'for-linus-for-3.6-rc1' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping:
        ARM: dma-mapping: add support for DMA_ATTR_SKIP_CPU_SYNC attribute
        common: DMA-mapping: add DMA_ATTR_SKIP_CPU_SYNC attribute
        ARM: dma-mapping: add support for dma_get_sgtable()
        common: dma-mapping: introduce dma_get_sgtable() function
        ARM: dma-mapping: add support for DMA_ATTR_NO_KERNEL_MAPPING attribute
        common: DMA-mapping: add DMA_ATTR_NO_KERNEL_MAPPING attribute
        common: dma-mapping: add support for generic dma_mmap_* calls
        ARM: dma-mapping: fix error path for memory allocation failure
        ARM: dma-mapping: add more sanity checks in arm_dma_mmap()
        ARM: dma-mapping: remove custom consistent dma region
        mm: vmalloc: use const void * for caller argument
        scatterlist: add sg_alloc_table_from_pages function
      6f51f515
    • L
      Merge branch 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging · 76159c20
      Linus Torvalds 提交于
      Pull a howmon update from Jean Delvare.
      
      * 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jdelvare/staging:
        hwmon: struct x86_cpu_id arrays can be __initconst
      76159c20
    • L
      Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux · 219c6734
      Linus Torvalds 提交于
      Pull Exynos DRM changes from Dave Airlie:
       "So I totally missed Inki's pull request for -next, its fully exynos
        self contained."
      
      (I took just the actual commits, not Dave's two extraneous merges)
      
      * 'drm-next' of git://people.freedesktop.org/~airlied/linux: (30 commits)
        drm/exynos: fixed exception to page allocation failure
        drm/exynos: use __free_page() to deallocate memory
        drm/exynos: fixed a comment to gem size.
        drm/exynos: removed unnecessary variable
        drm/exynos: do not release memory region from exporter.
        drm/exynos: set buffer type from exporter.
        drm/exynos: use alloc_page() to allocate pages.
        drm/exynos: fixed build warning.
        drm/exynos: fixed edid data setting at vidi connection request
        drm/exynos: check if raw edid data is fake or not for test
        drm/exynos: set edid fake data only for test.
        drm/exynos: removed unnecessary declaration.
        drm/exynos: fix buffer pitch calculation
        drm/exynos: check for null in return value of dma_buf_map_attachment()
        drm/exynos: return NULL if exynos_pages_to_sg fails
        drm/exynos: Use devm_* functions in exynos_mixer.c
        drm/exynos: Use devm_* functions in exynos_hdmi.c
        drm/exynos: Use devm_* functions in exynos_drm_fimd.c
        drm/exynos: Add missing static storage class specifier
        drm/exynos: add property for crtc mode
        ...
      219c6734
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · f1115bb6
      Linus Torvalds 提交于
      Pull input updates from Dmitry Torokhov:
       "A new driver for FT5x06 based EDT displays and a couple of other
        driver changes"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: synaptics - handle out of bounds values from the hardware
        Input: wacom - add support to Cintiq 22HD
        Input: add driver for FT5x06 based EDT displays
      f1115bb6
    • L
      Merge tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging · 76c97e6c
      Linus Torvalds 提交于
      Pull hwmon fixes from Guenter Roeck:
      
       - Fix timing problems in applesmc driver
      
       - Improve device removal in jc42 driver
      
       - Fix build warning in acp_power_meter driver
      
      * tag 'hwmon-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (applesmc) Decode and act on read/write status codes
        hwmon: (jc42) Don't reset hysteresis on device removal
        hwmon: (jc42) Simplify hysteresis mask
        hwmon: (acpi_power_meter) Fix build warning
      76c97e6c
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac · 8da8533d
      Linus Torvalds 提交于
      Pull EDAC patches from Mauro Carvalho Chehab:
      
       - the second part of the EDAC rework:
          - Add the sysfs nodes that exports the real memory layout, instead
            of the fake one (needed to properly represent Intel memory
            controllers since 2002)
          - convert EDAC MC to use "struct device" instead of creating the
            sysfs nodes via the kobj API
          - adds a tracepoint to represent memory errors
      
       - some cleanup patches
      
       - some fixes at i5000, i5400 and EDAC core
      
       - a new EDAC driver for Caldera.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac: (33 commits)
        edac i5000, i5400: fix pointer math in i5000_get_mc_regs()
        edac: allow specifying the error count with fake_inject
        edac: add support for Calxeda highbank L2 cache ecc
        edac: add support for Calxeda highbank memory controller
        edac: create top-level debugfs directory
        sb_edac: properly handle error count
        i7core_edac: properly handle error count
        edac: edac_mc_handle_error(): add an error_count parameter
        edac: remove arch-specific parameter for the error handler
        amd64_edac: Don't pass driver name as an error parameter
        edac_mc: check for allocation failure in edac_mc_alloc()
        edac: Increase version to 3.0.0
        edac_mc: Cleanup per-dimm_info debug messages
        edac: Convert debugfX to edac_dbg(X,
        edac: Use more normal debugging macro style
        edac: Don't add __func__ or __FILE__ for debugf[0-9] msgs
        Edac: Add ABI Documentation for the new device nodes
        edac: move documentation ABI to ABI/testing/sysfs-devices-edac
        i7core_edac: change the mem allocation scheme to make Documentation/kobject.txt happy
        edac: change the mem allocation scheme to make Documentation/kobject.txt happy
        ...
      8da8533d
    • 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. 30 7月, 2012 20 次提交
    • M
      ARM: dma-mapping: add support for DMA_ATTR_SKIP_CPU_SYNC attribute · 97ef952a
      Marek Szyprowski 提交于
      This patch adds support for DMA_ATTR_SKIP_CPU_SYNC attribute for
      dma_(un)map_(single,page,sg) functions family. It lets dma mapping clients
      to create a mapping for the buffer for the given device without performing
      a CPU cache synchronization. CPU cache synchronization can be skipped for
      the buffers which it is known that they are already in 'device' domain (CPU
      caches have been already synchronized or there are only coherent mappings
      for the buffer). For advanced users only, please use it with care.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      97ef952a
    • M
      common: DMA-mapping: add DMA_ATTR_SKIP_CPU_SYNC attribute · bdf5e487
      Marek Szyprowski 提交于
      This patch adds DMA_ATTR_SKIP_CPU_SYNC attribute to the DMA-mapping
      subsystem.
      
      By default dma_map_{single,page,sg} functions family transfer a given
      buffer from CPU domain to device domain. Some advanced use cases might
      require sharing a buffer between more than one device. This requires
      having a mapping created separately for each device and is usually
      performed by calling dma_map_{single,page,sg} function more than once
      for the given buffer with device pointer to each device taking part in
      the buffer sharing. The first call transfers a buffer from 'CPU' domain
      to 'device' domain, what synchronizes CPU caches for the given region
      (usually it means that the cache has been flushed or invalidated
      depending on the dma direction). However, next calls to
      dma_map_{single,page,sg}() for other devices will perform exactly the
      same sychronization operation on the CPU cache. CPU cache sychronization
      might be a time consuming operation, especially if the buffers are
      large, so it is highly recommended to avoid it if possible.
      DMA_ATTR_SKIP_CPU_SYNC allows platform code to skip synchronization of
      the CPU cache for the given buffer assuming that it has been already
      transferred to 'device' domain. This attribute can be also used for
      dma_unmap_{single,page,sg} functions family to force buffer to stay in
      device domain after releasing a mapping for it. Use this attribute with
      care!
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      bdf5e487
    • M
      ARM: dma-mapping: add support for dma_get_sgtable() · dc2832e1
      Marek Szyprowski 提交于
      This patch adds support for dma_get_sgtable() function which is required
      to let drivers to share the buffers allocated by DMA-mapping subsystem.
      
      Generic implementation based on virt_to_page() is not suitable for ARM
      dma-mapping subsystem.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      dc2832e1
    • M
      common: dma-mapping: introduce dma_get_sgtable() function · d2b7428e
      Marek Szyprowski 提交于
      This patch adds dma_get_sgtable() function which is required to let
      drivers to share the buffers allocated by DMA-mapping subsystem. Right
      now the driver gets a dma address of the allocated buffer and the kernel
      virtual mapping for it. If it wants to share it with other device (= map
      into its dma address space) it usually hacks around kernel virtual
      addresses to get pointers to pages or assumes that both devices share
      the DMA address space. Both solutions are just hacks for the special
      cases, which should be avoided in the final version of buffer sharing.
      
      To solve this issue in a generic way, a new call to DMA mapping has been
      introduced - dma_get_sgtable(). It allocates a scatter-list which
      describes the allocated buffer and lets the driver(s) to use it with
      other device(s) by calling dma_map_sg() on it.
      
      This patch provides a generic implementation based on virt_to_page()
      call. Architectures which require more sophisticated translation might
      provide their own get_sgtable() methods.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      d2b7428e
    • M
      ARM: dma-mapping: add support for DMA_ATTR_NO_KERNEL_MAPPING attribute · 955c757e
      Marek Szyprowski 提交于
      This patch adds support for DMA_ATTR_NO_KERNEL_MAPPING attribute for
      IOMMU allocations, what let drivers to save precious kernel virtual
      address space for large buffers that are intended to be accessed only
      from userspace.
      
      This patch is heavily based on initial work kindly provided by Abhinav
      Kochhar <abhinav.k@samsung.com>.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      955c757e
    • M
      common: DMA-mapping: add DMA_ATTR_NO_KERNEL_MAPPING attribute · d5724f17
      Marek Szyprowski 提交于
      This patch adds DMA_ATTR_NO_KERNEL_MAPPING attribute which lets the
      platform to avoid creating a kernel virtual mapping for the allocated
      buffer. On some architectures creating such mapping is non-trivial task
      and consumes very limited resources (like kernel virtual address space
      or dma consistent address space). Buffers allocated with this attribute
      can be only passed to user space by calling dma_mmap_attrs().
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      d5724f17
    • M
      common: dma-mapping: add support for generic dma_mmap_* calls · 64ccc9c0
      Marek Szyprowski 提交于
      Commit 9adc5374 ('common: dma-mapping: introduce mmap method') added a
      generic method for implementing mmap user call to dma_map_ops structure.
      
      This patch converts ARM and PowerPC architectures (the only providers of
      dma_mmap_coherent/dma_mmap_writecombine calls) to use this generic
      dma_map_ops based call and adds a generic cross architecture
      definition for dma_mmap_attrs, dma_mmap_coherent, dma_mmap_writecombine
      functions.
      
      The generic mmap virt_to_page-based fallback implementation is provided for
      architectures which don't provide their own implementation for mmap method.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      64ccc9c0
    • M
      ARM: dma-mapping: fix error path for memory allocation failure · 9fa8af91
      Marek Szyprowski 提交于
      This patch fixes incorrect check in error path. When the allocation of
      first page fails, the kernel ops appears due to accessing -1 element of
      the pages array.
      Reported-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      9fa8af91
    • M
      ARM: dma-mapping: add more sanity checks in arm_dma_mmap() · 50262a4b
      Marek Szyprowski 提交于
      Add some sanity checks and forbid mmaping of buffers into vma areas larger
      than allocated dma buffer.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      50262a4b
    • M
      ARM: dma-mapping: remove custom consistent dma region · e9da6e99
      Marek Szyprowski 提交于
      This patch changes dma-mapping subsystem to use generic vmalloc areas
      for all consistent dma allocations. This increases the total size limit
      of the consistent allocations and removes platform hacks and a lot of
      duplicated code.
      
      Atomic allocations are served from special pool preallocated on boot,
      because vmalloc areas cannot be reliably created in atomic context.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NMinchan Kim <minchan@kernel.org>
      e9da6e99
    • M
      mm: vmalloc: use const void * for caller argument · 5e6cafc8
      Marek Szyprowski 提交于
      'const void *' is a safer type for caller function type. This patch
      updates all references to caller function type.
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Reviewed-by: NKyungmin Park <kyungmin.park@samsung.com>
      Reviewed-by: NMinchan Kim <minchan@kernel.org>
      5e6cafc8
    • T
      scatterlist: add sg_alloc_table_from_pages function · efc42bc9
      Tomasz Stanislawski 提交于
      This patch adds a new constructor for an sg table. The table is constructed
      from an array of struct pages. All contiguous chunks of the pages are merged
      into a single sg nodes. A user may provide an offset and a size of a buffer if
      the buffer is not page-aligned.
      
      The function is dedicated for DMABUF exporters which often perform conversion
      from an page array to a scatterlist. Moreover the scatterlist should be
      squashed in order to save memory and to speed-up the process of DMA mapping
      using dma_map_sg.
      
      The code is based on the patch 'v4l: vb2-dma-contig: add support for
      scatterlist in userptr mode' and hints from Laurent Pinchart.
      Signed-off-by: NTomasz Stanislawski <t.stanislaws@samsung.com>
      Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      CC: Andrew Morton <akpm@linux-foundation.org>
      efc42bc9
    • S
      mm: Fix build warning in kmem_cache_create() · 73a1180e
      Shuah Khan 提交于
      The label oops is used in CONFIG_DEBUG_VM ifdef block and is defined
      outside ifdef CONFIG_DEBUG_VM block. This results in the following
      build warning when built with CONFIG_DEBUG_VM disabled. Fix to move
      label oops definition to inside a CONFIG_DEBUG_VM block.
      
      mm/slab_common.c: In function ‘kmem_cache_create’:
      mm/slab_common.c:101:1: warning: label ‘oops’ defined but not used
      [-Wunused-label]
      Signed-off-by: NShuah Khan <shuah.khan@hp.com>
      Signed-off-by: NPekka Enberg <penberg@kernel.org>
      73a1180e
    • J
      hwmon: struct x86_cpu_id arrays can be __initconst · e273bd98
      Jan Beulich 提交于
      ... as being referenced from __init code only.
      Signed-off-by: NJan Beulich <jbeulich@suse.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      e273bd98
    • A
      selinux: fix selinux_inode_setxattr oops · e3fea3f7
      Al Viro 提交于
      OK, what we have so far is e.g.
      	setxattr(path, name, whatever, 0, XATTR_REPLACE)
      with name being good enough to get through xattr_permission().
      Then we reach security_inode_setxattr() with the desired value and size.
      Aha.  name should begin with "security.selinux", or we won't get that
      far in selinux_inode_setxattr().  Suppose we got there and have enough
      permissions to relabel that sucker.  We call security_context_to_sid()
      with value == NULL, size == 0.  OK, we want ss_initialized to be non-zero.
      I.e. after everything had been set up and running.  No problem...
      
      We do 1-byte kmalloc(), zero-length memcpy() (which doesn't oops, even
      thought the source is NULL) and put a NUL there.  I.e. form an empty
      string.  string_to_context_struct() is called and looks for the first
      ':' in there.  Not found, -EINVAL we get.  OK, security_context_to_sid_core()
      has rc == -EINVAL, force == 0, so it silently returns -EINVAL.
      All it takes now is not having CAP_MAC_ADMIN and we are fucked.
      
      All right, it might be a different bug (modulo strange code quoted in the
      report), but it's real.  Easily fixed, AFAICS:
      
      Deal with size == 0, value == NULL case in selinux_inode_setxattr()
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Tested-by: NDave Jones <davej@redhat.com>
      Reported-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NJames Morris <james.l.morris@oracle.com>
      e3fea3f7
    • D
      Merge branch 'next' into for-linus · cf45b5a2
      Dmitry Torokhov 提交于
      Prepare second set of changes for 3.6 merge window.
      cf45b5a2
    • D
      KEYS: linux/key-type.h needs linux/errno.h · 5935e6dc
      David Howells 提交于
      linux/key-type.h needs to #include linux/errno.h as it refers to ENOKEY.
      Without this, with sparc's allmodconfig in one of my test trees, the following
      error occurs:
      
      include/linux/key-type.h: In function 'key_negate_and_link':
      include/linux/key-type.h:122:43: error: 'ENOKEY' undeclared (first use in this function)
      include/linux/key-type.h:122:43: note: each undeclared identifier is reported only once for each fun
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NJames Morris <james.l.morris@oracle.com>
      5935e6dc
    • A
      smack: off by one error · 3b9fc372
      Alan Cox 提交于
      Consider the input case of a rule that consists entirely of non space
      symbols followed by a \0. Say 64 + \0
      
      In this case strlen(data) = 64
      kzalloc of subject and object are 64 byte objects
      sscanfdata, "%s %s %s", subject, ...)
      
      will put 65 bytes into subject.
      Signed-off-by: NAlan Cox <alan@linux.intel.com>
      Acked-by: NCasey Schaufler <casey@schaufler-ca.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NJames Morris <james.l.morris@oracle.com>
      3b9fc372
    • M
      Merge branch 'devel' · c2078e4c
      Mauro Carvalho Chehab 提交于
      * devel: (33 commits)
        edac i5000, i5400: fix pointer math in i5000_get_mc_regs()
        edac: allow specifying the error count with fake_inject
        edac: add support for Calxeda highbank L2 cache ecc
        edac: add support for Calxeda highbank memory controller
        edac: create top-level debugfs directory
        sb_edac: properly handle error count
        i7core_edac: properly handle error count
        edac: edac_mc_handle_error(): add an error_count parameter
        edac: remove arch-specific parameter for the error handler
        amd64_edac: Don't pass driver name as an error parameter
        edac_mc: check for allocation failure in edac_mc_alloc()
        edac: Increase version to 3.0.0
        edac_mc: Cleanup per-dimm_info debug messages
        edac: Convert debugfX to edac_dbg(X,
        edac: Use more normal debugging macro style
        edac: Don't add __func__ or __FILE__ for debugf[0-9] msgs
        Edac: Add ABI Documentation for the new device nodes
        edac: move documentation ABI to ABI/testing/sysfs-devices-edac
        i7core_edac: change the mem allocation scheme to make Documentation/kobject.txt happy
        edac: change the mem allocation scheme to make Documentation/kobject.txt happy
        ...
      c2078e4c
    • M
      Merge tag 'v3.5' · 73bcc499
      Mauro Carvalho Chehab 提交于
      Linux 3.5
      
      * tag 'v3.5': (1242 commits)
        Linux 3.5
        Remove SYSTEM_SUSPEND_DISK system state
        kdb: Switch to nolock variants of kmsg_dump functions
        printk: Implement some unlocked kmsg_dump functions
        printk: Remove kdb_syslog_data
        kdb: Revive dmesg command
        dm raid1: set discard_zeroes_data_unsupported
        dm thin: do not send discards to shared blocks
        dm raid1: fix crash with mirror recovery and discard
        pnfs-obj: Fix __r4w_get_page when offset is beyond i_size
        pnfs-obj: don't leak objio_state if ore_write/read fails
        ore: Unlock r4w pages in exact reverse order of locking
        ore: Remove support of partial IO request (NFS crash)
        ore: Fix NFS crash by supporting any unaligned RAID IO
        UBIFS: fix a bug in empty space fix-up
        cx25821: Remove bad strcpy to read-only char*
        HID: hid-multitouch: add support for Zytronic panels
        MIPS: PCI: Move fixups from __init to __devinit.
        MIPS: Fix bug.h MIPS build regression
        MIPS: sync-r4k: remove redundant irq operation
        ...
      73bcc499