Skip to content
  1. Dec 13, 2014
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide · 55437989
      Linus Torvalds authored
      Pull IDE update from David Miller:
       "Two small IDE layer adjustments"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide:
        drivers: ide: Fix mostly harmless off-by-one hardcoded value
        IDE: Deletion of an unnecessary check before the function call "module_put"
      55437989
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · a7e8ddd8
      Linus Torvalds authored
      Pull sparc update from David Miller:
       "Not a lot of stuff this time around, mostly bug fixing:
      
         - Fix alignment of 32-bit crosscall datastructure on Leon, from
           Andreas Larsson.
      
         - Several fixes to the virtual disk driver on sparc64 by Dwight
           Engen, including handling resets of the service domain properly"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sunvdc: reconnect ldc after vds service domain restarts
        sparc/ldc: create separate ldc_unbind from ldc_free
        vio: create routines for inc,dec vio dring indexes
        sunvdc: fix module unload/reload
        sparc32, leon: Align ccall_info to prevent unaligned traps on crosscall
      a7e8ddd8
    • Jaedon Shin's avatar
      MIPS: Use phys_addr_t instead of phys_t · ad8f723a
      Jaedon Shin authored
      Ralf Baechle says:
       "This should have been part of the merge commit c0222ac0
      
       (Merge
        branch 'upstream' of git://git.linux-mips.org/pub/scm/-
        ralf/upstream-linus) but I forgot to mention the need for this in my
        pull request"
      
      Signed-off-by: default avatarJaedon Shin <jaedon.shin@gmail.com>
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ad8f723a
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm · 26ceb127
      Linus Torvalds authored
      Pull ARM updates from Russell King:
       "The major updates included in this update are:
      
         - Clang compatible stack pointer accesses by Behan Webster.
         - SA11x0 updates from Dmitry Eremin-Solenikov.
         - kgdb handling of breakpoints with read-only text/modules
         - Support for Privileged-no-execute feature on ARMv7 to prevent
           userspace code execution by the kernel.
         - AMBA primecell bus handling of irq-safe runtime PM
         - Unwinding support for memset/memzero/memmove/memcpy functions
         - VFP fixes for Krait CPUs and improvements in detecting the VFP
           architecture
         - A number of code cleanups (using pr_*, removing or reducing the
           severity of a couple of kernel messages, splitting ftrace asm code
           out to a separate file, etc.)
         - Add machine name to stack dump output"
      
      * 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm: (62 commits)
        ARM: 8247/2: pcmcia: sa1100: make use of device clock
        ARM: 8246/2: pcmcia: sa1111: provide device clock
        ARM: 8245/1: pcmcia: soc-common: enable/disable socket clocks
        ARM: 8244/1: fbdev: sa1100fb: make use of device clock
        ARM: 8243/1: sa1100: add a clock alias for sa1111 pcmcia device
        ARM: 8242/1: sa1100: add cpu clock
        ARM: 8221/1: PJ4: allow building in Thumb-2 mode
        ARM: 8234/1: sa1100: reorder IRQ handling code
        ARM: 8233/1: sa1100: switch to hwirq usage
        ARM: 8232/1: sa1100: merge GPIO multiplexer IRQ to "normal" irq domain
        ARM: 8231/1: sa1100: introduce irqdomains support
        ARM: 8230/1: sa1100: shift IRQs by one
        ARM: 8229/1: sa1100: replace irq numbers with names in irq driver
        ARM: 8228/1: sa1100: drop entry-macro.S
        ARM: 8227/1: sa1100: switch to MULTI_IRQ_HANDLER
        ARM: 8241/1: Update processor_modes for hyp and monitor mode
        ARM: 8240/1: MCPM: document mcpm_sync_init()
        ARM: 8239/1: Introduce {set,clear}_pte_bit
        ARM: 8238/1: mm: Refine set_memory_* functions
        ARM: 8237/1: fix flush_pfn_alias
        ...
      26ceb127
    • Linus Torvalds's avatar
      Merge tag 'iommu-updates-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 8d140667
      Linus Torvalds authored
      Pull IOMMU updates from Joerg Roedel:
       "This time with:
      
         - A new IOMMU-API call: iommu_map_sg() to map multiple non-contiguous
           pages into an IO address space with only one API call.  This allows
           certain optimizations in the IOMMU driver.
      
         - DMAR device hotplug in the Intel VT-d driver.  It is now possible
           to hotplug the IOMMU itself.
      
         - A new IOMMU driver for the Rockchip ARM platform.
      
         - Couple of cleanups and improvements in the OMAP IOMMU driver.
      
         - Nesting support for the ARM-SMMU driver.
      
         - Various other small cleanups and improvements.
      
        Please note that this time some branches were also pulled into other
        trees, like the DRI and the Tegra tree.  The VT-d branch was also
        pulled into tip/x86/apic.
      
        Some patches for the AMD IOMMUv2 driver are not in the IOMMU tree but
        were merged by Andrew (or finally ended up in the DRI tree)"
      
      * tag 'iommu-updates-v3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: (42 commits)
        iommu: Decouple iommu_map_sg from CPU page size
        iommu/vt-d: Fix an off-by-one bug in __domain_mapping()
        pci, ACPI, iommu: Enhance pci_root to support DMAR device hotplug
        iommu/vt-d: Enhance intel-iommu driver to support DMAR unit hotplug
        iommu/vt-d: Enhance error recovery in function intel_enable_irq_remapping()
        iommu/vt-d: Enhance intel_irq_remapping driver to support DMAR unit hotplug
        iommu/vt-d: Search for ACPI _DSM method for DMAR hotplug
        iommu/vt-d: Implement DMAR unit hotplug framework
        iommu/vt-d: Dynamically allocate and free seq_id for DMAR units
        iommu/vt-d: Introduce helper function dmar_walk_resources()
        iommu/arm-smmu: add support for DOMAIN_ATTR_NESTING attribute
        iommu/arm-smmu: Play nice on non-ARM/SMMU systems
        iommu/amd: remove compiler warning due to IOMMU_CAP_NOEXEC
        iommu/arm-smmu: add IOMMU_CAP_NOEXEC to the ARM SMMU driver
        iommu: add capability IOMMU_CAP_NOEXEC
        iommu/arm-smmu: change IOMMU_EXEC to IOMMU_NOEXEC
        iommu/amd: Fix accounting of device_state
        x86/vt-d: Fix incorrect bit operations in setting values
        iommu/rockchip: Allow to compile with COMPILE_TEST
        iommu/ipmmu-vmsa: Return proper error if devm_request_irq fails
        ...
      8d140667
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma · 87c779ba
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "Main features this time are:
      
         - BAM v1.3.0 support form qcom bam dma
         - support for Allwinner sun8i dma
         - atmels eXtended DMA Controller driver
         - chancnt cleanup by Maxime
         - fixes spread over drivers"
      
      * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (56 commits)
        dmaenegine: Delete a check before free_percpu()
        dmaengine: ioatdma: fix dma mapping errors
        dma: cppi41: add a delay while setting the TD bit
        dma: cppi41: wait longer for the HW to return the descriptor
        dmaengine: fsl-edma: fixup reg offset and hw S/G support in big-endian model
        dmaengine: fsl-edma: fix calculation of remaining bytes
        drivers/dma/pch_dma: declare pch_dma_id_table as static
        dmaengine: ste_dma40: fix error return code
        dma: imx-sdma: clarify about firmware not found error
        Documentation: devicetree: Fix Xilinx VDMA specification
        dmaengine: pl330: update author info
        dmaengine: clarify the issue_pending expectations
        dmaengine: at_xdmac: Add DMA_PRIVATE
        ARM: dts: at_xdmac: fix bad value of dma-cells in documentation
        dmaengine: at_xdmac: fix missing spin_unlock
        dmaengine: at_xdmac: fix a bug in transfer residue computation
        dmaengine: at_xdmac: fix software lockup at_xdmac_tx_status()
        dmaengine: at_xdmac: remove chancnt affectation
        dmaengine: at_xdmac: prefer usage of readl/writel_relaxed
        dmaengine: xdmac: fix print warning on dma_addr_t variable
        ...
      87c779ba
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.code.sf.net/p/openipmi/linux-ipmi · eea0cf3f
      Linus Torvalds authored
      Pull IPMI driver updates from Corey Minyard:
        - Quite a few bug fixes
        - A new driver for the powernv
        - A new driver for the SMBus interface from the IPMI 2.0 specification
      
      * tag 'for-linus' of git://git.code.sf.net/p/openipmi/linux-ipmi:
        ipmi: Check the BT interrupt enable periodically
        ipmi: Fix attention handling for system interfaces
        ipmi: Periodically check to see if irqs and messages are set right
        drivers/char/ipmi: Add powernv IPMI driver
        ipmi: Add SMBus interface driver (SSIF)
        ipmi: Remove the now unused priority from SMI sender
        ipmi: Remove the now unnecessary message queue
        ipmi: Make the message handler easier to use for SMI interfaces
        ipmi: Move message sending into its own function
        ipmi: rename waiting_msgs to waiting_rcv_msgs
        ipmi: Fix handling of BMC flags
        ipmi: Initialize BMC device attributes
        ipmi: Unregister previously registered driver in error case
        ipmi: Use the proper type for acpi_handle
        ipmi: Fix a bug in hot add/remove
        ipmi: Remove useless sysfs_name parameters
        ipmi: clean up the device handling for the bmc device
        ipmi: Move the address source to string to ipmi-generic code
        ipmi: Ignore SSIF in the PNP handling
      eea0cf3f
    • Linus Torvalds's avatar
      Merge tag 'docs-for-linus' of git://git.lwn.net/linux-2.6 · 823e334e
      Linus Torvalds authored
      Pull documentation update from Jonathan Corbet:
       "Here's my set of accumulated documentation changes for 3.19.
      
        It includes a couple of additions to the coding style document, some
        fixes for minor build problems within the documentation tree, the
        relocation of the kselftest docs, and various tweaks and additions.
      
        A couple of changes reach outside of Documentation/; they only make
        trivial comment changes and I did my best to get the required acks.
      
        Complete with a shiny signed tag this time around"
      
      * tag 'docs-for-linus' of git://git.lwn.net/linux-2.6:
        kobject: grammar fix
        Input: xpad - update docs to reflect current state
        Documentation: Build mic/mpssd only for x86_64
        cgroups: Documentation: fix wrong cgroupfs paths
        Documentation/email-clients.txt: add info about Claws Mail
        CodingStyle: add some more error handling guidelines
        kselftest: Move the docs to the Documentation dir
        Documentation: fix formatting to make 's' happy
        Documentation: power: Fix typo in Documentation/power
        Documentation: vm: Add 1GB large page support information
        ipv4: add kernel parameter tcpmhash_entries
        Documentation: Fix a typo in mailbox.txt
        treewide: Fix typo in Documentation/DocBook/device-drivers
        CodingStyle: Add a chapter on conditional compilation
      823e334e
    • Rasmus Villemoes's avatar
      drivers: ide: Fix mostly harmless off-by-one hardcoded value · ca957b6a
      Rasmus Villemoes authored
      
      
      The string "IOMEGA Clik!" has length 12, not 11. Using strstarts
      avoids the error-prone hardcoding of the prefix length. For
      consistency, also change the occurence just above.
      
      Signed-off-by: default avatarRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      ca957b6a
    • Markus Elfring's avatar
      IDE: Deletion of an unnecessary check before the function call "module_put" · 1746fbe5
      Markus Elfring authored
      
      
      The module_put() function tests whether its argument is NULL and then
      returns immediately. Thus the test around the call is not needed.
      
      This issue was detected by using the Coccinelle software.
      
      Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1746fbe5
    • Linus Torvalds's avatar
      Merge tag 'please-pull-morepstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux · 6ce4436c
      Linus Torvalds authored
      Pull pstore update #2 from Tony Luck:
       "Couple of pstore-ram enhancements to allow use of different memory
        attributes"
      
      * tag 'please-pull-morepstore' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux:
        pstore-ram: Allow optional mapping with pgprot_noncached
        pstore-ram: Fix hangs by using write-combine mappings
      6ce4436c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs · bdeb03ca
      Linus Torvalds authored
      Pull btrfs update from Chris Mason:
       "From a feature point of view, most of the code here comes from Miao
        Xie and others at Fujitsu to implement scrubbing and replacing devices
        on raid56.  This has been in development for a while, and it's a big
        improvement.
      
        Filipe and Josef have a great assortment of fixes, many of which solve
        problems corruptions either after a crash or in error conditions.  I
        still have a round two from Filipe for next week that solves
        corruptions with discard and block group removal"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs: (62 commits)
        Btrfs: make get_caching_control unconditionally return the ctl
        Btrfs: fix unprotected deletion from pending_chunks list
        Btrfs: fix fs mapping extent map leak
        Btrfs: fix memory leak after block remove + trimming
        Btrfs: make btrfs_abort_transaction consider existence of new block groups
        Btrfs: fix race between writing free space cache and trimming
        Btrfs: fix race between fs trimming and block group remove/allocation
        Btrfs, replace: enable dev-replace for raid56
        Btrfs: fix freeing used extents after removing empty block group
        Btrfs: fix crash caused by block group removal
        Btrfs: fix invalid block group rbtree access after bg is removed
        Btrfs, raid56: fix use-after-free problem in the final device replace procedure on raid56
        Btrfs, replace: write raid56 parity into the replace target device
        Btrfs, replace: write dirty pages into the replace target device
        Btrfs, raid56: support parity scrub on raid56
        Btrfs, raid56: use a variant to record the operation type
        Btrfs, scrub: repair the common data on RAID5/6 if it is corrupted
        Btrfs, raid56: don't change bbio and raid_map
        Btrfs: remove unnecessary code of stripe_index assignment in __btrfs_map_block
        Btrfs: remove noused bbio_ret in __btrfs_map_block in condition
        ...
      bdeb03ca
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid · 0349678c
      Linus Torvalds authored
      Pull HID updates from Jiri Kosina:
       - i2c-hid race condition fix from Jean-Baptiste Maneyrol
       - Logitech driver now supports vendor-specific HID++ protocol, allowing
         us to deliver a full multitouch support on wider range of Logitech
         touchpads.  Written by Benjamin Tissoires
       - MS Surface Pro 3 Type Cover support added by Alan Wu
       - RMI touchpad support improvements from Andrew Duggan
       - a lot of updates to Wacom driver from Jason Gerecke and Ping Cheng
       - various small fixes all over the place
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: (56 commits)
        HID: rmi: The address of query8 must be calculated based on which query registers are present
        HID: rmi: Check for additional ACM registers appended to F11 data report
        HID: i2c-hid: prevent buffer overflow in early IRQ
        HID: logitech-hidpp: disable io in probe error path
        HID: logitech-hidpp: add boundary check for name retrieval
        HID: logitech-hidpp: check name retrieval return code
        HID: logitech-hidpp: do not return the name length
        HID: wacom: Report input events for each finger on generic devices
        HID: wacom: Initialize MT slots for generic devices at post_parse_hid
        HID: wacom: Update maximum X/Y accounding to outbound offset
        HID: wacom: Add support for DTU-1031X
        HID: wacom: add defines for new Cintiq and DTU outbound tracking
        HID: wacom: fix freeze on open when autosuspend is on
        HID: wacom: re-add accidentally dropped Lenovo PID
        HID: make hid_report_len as a static inline function in hid.h
        HID: wacom: Consult the application usage when determining field type
        HID: wacom: PAD is independent with pen/touch
        HID: multitouch: Add quirk for VTL touch panels
        HID: i2c-hid: fix race condition reading reports
        HID: wacom: Add angular resolution data to some ABS axes
        ...
      0349678c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial · a7cb7bb6
      Linus Torvalds authored
      Pull trivial tree update from Jiri Kosina:
       "Usual stuff: documentation updates, printk() fixes, etc"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (24 commits)
        intel_ips: fix a type in error message
        cpufreq: cpufreq-dt: Move newline to end of error message
        ps3rom: fix error return code
        treewide: fix typo in printk and Kconfig
        ARM: dts: bcm63138: change "interupts" to "interrupts"
        Replace mentions of "list_struct" to "list_head"
        kernel: trace: fix printk message
        scsi: mpt2sas: fix ioctl in comment
        zbud, zswap: change module author email
        clocksource: Fix 'clcoksource' typo in comment
        arm: fix wording of "Crotex" in CONFIG_ARCH_EXYNOS3 help
        gpio: msm-v1: make boolean argument more obvious
        usb: Fix typo in usb-serial-simple.c
        PCI: Fix comment typo 'COMFIG_PM_OPS'
        powerpc: Fix comment typo 'CONIFG_8xx'
        powerpc: Fix comment typos 'CONFiG_ALTIVEC'
        clk: st: Spelling s/stucture/structure/
        isci: Spelling s/stucture/structure/
        usb: gadget: zero: Spelling s/infrastucture/infrastructure/
        treewide: Fix company name in module descriptions
        ...
      a7cb7bb6
    • Linus Torvalds's avatar
      Merge tag 'upstream-3.19-rc1' of git://git.infradead.org/linux-ubifs · ccb5a491
      Linus Torvalds authored
      Pull UBI/UBIFS updates from Artem Bityutskiy:
       "This includes the following UBI/UBIFS changes:
         - UBI debug messages now include the UBI device number.  This change
           is responsible for the big diffstat since it touched every
           debugging print statement.
         - An Xattr bug-fix which fixes SELinux support
         - Several error path fixes in UBI/UBIFS"
      
      * tag 'upstream-3.19-rc1' of git://git.infradead.org/linux-ubifs:
        UBI: Fix invalid vfree()
        UBI: Fix double free after do_sync_erase()
        UBIFS: fix a couple bugs in UBIFS xattr length calculation
        UBI: vtbl: Use ubi_eba_atomic_leb_change()
        UBI: Extend UBI layer debug/messaging capabilities
        UBIFS: fix budget leak in error path
      ccb5a491
    • Linus Torvalds's avatar
      Merge tag 'xfs-for-linus-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs · c05e14f7
      Linus Torvalds authored
      Pull xfs update from Dave Chinner:
       "There's relatively little change in this update; it is mainly bug
        fixes, cleanups and more of the on-going libxfs restructuring and
        on-disk format header consolidation work.
      
        Details:
         - more on-disk format header consolidation
         - move some structures shared with userspace to libxfs
         - new per-mount workqueue to fix for deadlocks between nested loop
           mounted filesystems
         - various bug fixes for ENOSPC, stats, quota off and preallocation
         - a bunch of compiler warning fixes for set-but-unused variables
         - various code cleanups"
      
      * tag 'xfs-for-linus-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs: (24 commits)
        xfs: split metadata and log buffer completion to separate workqueues
        xfs: fix set-but-unused warnings
        xfs: move type conversion functions to xfs_dir.h
        xfs: move ftype conversion functions to libxfs
        xfs: lobotomise xfs_trans_read_buf_map()
        xfs: active inodes stat is broken
        xfs: cleanup xfs_bmse_merge returns
        xfs: cleanup xfs_bmse_shift_one goto mess
        xfs: fix premature enospc on inode allocation
        xfs: overflow in xfs_iomap_eof_align_last_fsb
        xfs: fix simple_return.cocci warning in xfs_bmse_shift_one
        xfs: fix simple_return.cocci warning in xfs_file_readdir
        libxfs: fix simple_return.cocci warnings
        xfs: remove unnecessary null checks
        xfs: merge xfs_inum.h into xfs_format.h
        xfs: move most of xfs_sb.h to xfs_format.h
        xfs: merge xfs_ag.h into xfs_format.h
        xfs: move acl structures to xfs_format.h
        xfs: merge xfs_dinode.h into xfs_format.h
        xfs: catch invalid negative blknos in _xfs_buf_find()
        ...
      c05e14f7
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 9bfccec2
      Linus Torvalds authored
      Pull ext4 updates from Ted Ts'o:
       "Lots of bugs fixes, including Zheng and Jan's extent status shrinker
        fixes, which should improve CPU utilization and potential soft lockups
        under heavy memory pressure, and Eric Whitney's bigalloc fixes"
      
      * tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4: (26 commits)
        ext4: ext4_da_convert_inline_data_to_extent drop locked page after error
        ext4: fix suboptimal seek_{data,hole} extents traversial
        ext4: ext4_inline_data_fiemap should respect callers argument
        ext4: prevent fsreentrance deadlock for inline_data
        ext4: forbid journal_async_commit in data=ordered mode
        jbd2: remove unnecessary NULL check before iput()
        ext4: Remove an unnecessary check for NULL before iput()
        ext4: remove unneeded code in ext4_unlink
        ext4: don't count external journal blocks as overhead
        ext4: remove never taken branch from ext4_ext_shift_path_extents()
        ext4: create nojournal_checksum mount option
        ext4: update comments regarding ext4_delete_inode()
        ext4: cleanup GFP flags inside resize path
        ext4: introduce aging to extent status tree
        ext4: cleanup flag definitions for extent status tree
        ext4: limit number of scanned extents in status tree shrinker
        ext4: move handling of list of shrinkable inodes into extent status code
        ext4: change LRU to round-robin in extent status tree shrinker
        ext4: cache extent hole in extent status tree for ext4_da_map_blocks()
        ext4: fix block reservation for bigalloc filesystems
        ...
      9bfccec2
  2. Dec 12, 2014
    • Jiri Kosina's avatar
      Merge branches 'for-3.19/hid-report-len', 'for-3.19/i2c-hid',... · 019e129f
      Jiri Kosina authored
      Merge branches 'for-3.19/hid-report-len', 'for-3.19/i2c-hid', 'for-3.19/lenovo', 'for-3.19/logitech', 'for-3.19/microsoft', 'for-3.19/plantronics', 'for-3.19/rmi', 'for-3.19/sony' and 'for-3.19/wacom' into for-linus
      019e129f
    • Andrew Duggan's avatar
      HID: rmi: The address of query8 must be calculated based on which query registers are present · cabd9b5f
      Andrew Duggan authored
      
      
      If a touchpad does not report relative data then query 6 will not be present and the address
      of query 8 will be one less. This patches calculates the location of query 8 instead of
      hardcoding the offset.
      
      Signed-off-by: default avatarAndrew Duggan <aduggan@synaptics.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      cabd9b5f
    • Andrew Duggan's avatar
      HID: rmi: Check for additional ACM registers appended to F11 data report · 8414947a
      Andrew Duggan authored
      
      
      If a touchpad reports the F11 data40 register then this indicates that the touchpad reports
      additional ACM (Accidental Contact Mitigation) data after the F11 data in the HID attention
      report. These additional bytes shift the position of the F30 button data causing the driver
      to incorrectly report button state when this functionality is present. This patch accounts
      for the additional data in the report.
      
      Fixes:
      https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398533
      
      Signed-off-by: default avatarAndrew Duggan <aduggan@synaptics.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      8414947a
    • Jiri Kosina's avatar
      Merge branches 'for-3.18/upstream-fixes' and 'for-3.19/upstream' into for-linus · 3ee420ba
      Jiri Kosina authored
      Conflicts:
      	drivers/hid/hid-input.c
      3ee420ba
    • Gwendal Grignou's avatar
      HID: i2c-hid: prevent buffer overflow in early IRQ · d1c7e29e
      Gwendal Grignou authored
      
      
      Before ->start() is called, bufsize size is set to HID_MIN_BUFFER_SIZE,
      64 bytes. While processing the IRQ, we were asking to receive up to
      wMaxInputLength bytes, which can be bigger than 64 bytes.
      
      Later, when ->start is run, a proper bufsize will be calculated.
      
      Given wMaxInputLength is said to be unreliable in other part of the
      code, set to receive only what we can even if it results in truncated
      reports.
      
      Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
      Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      d1c7e29e
    • Linus Torvalds's avatar
      Merge branch 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 2756d373
      Linus Torvalds authored
      Pull cgroup update from Tejun Heo:
       "cpuset got simplified a bit.  cgroup core got a fix on unified
        hierarchy and grew some effective css related interfaces which will be
        used for blkio support for writeback IO traffic which is currently
        being worked on"
      
      * 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup: implement cgroup_get_e_css()
        cgroup: add cgroup_subsys->css_e_css_changed()
        cgroup: add cgroup_subsys->css_released()
        cgroup: fix the async css offline wait logic in cgroup_subtree_control_write()
        cgroup: restructure child_subsys_mask handling in cgroup_subtree_control_write()
        cgroup: separate out cgroup_calc_child_subsys_mask() from cgroup_refresh_child_subsys_mask()
        cpuset: lock vs unlock typo
        cpuset: simplify cpuset_node_allowed API
        cpuset: convert callback_mutex to a spinlock
      2756d373
    • Dwight Engen's avatar
      sunvdc: reconnect ldc after vds service domain restarts · 76e74bbe
      Dwight Engen authored
      
      
      This change enables the sunvdc driver to reconnect and recover if a vds
      service domain is disconnected or bounced.
      
      By default, it will wait indefinitely for the service domain to become
      available again, but will honor a non-zero vdc-timout md property if one
      is set. If a timeout is reached, any in-progress I/O's are completed
      with -EIO.
      
      Signed-off-by: default avatarDwight Engen <dwight.engen@oracle.com>
      Reviewed-by: default avatarChris Hyser <chris.hyser@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      76e74bbe
    • Dwight Engen's avatar
    • Dwight Engen's avatar
      vio: create routines for inc,dec vio dring indexes · fe47c3c2
      Dwight Engen authored
      
      
      Both sunvdc and sunvnet implemented distinct functionality for incrementing
      and decrementing dring indexes. Create common functions for use by both
      from the sunvnet versions, which were chosen since they will still work
      correctly in case a non power of two ring size is used.
      
      Signed-off-by: default avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      fe47c3c2
    • Linus Torvalds's avatar
      Merge branch 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata · 4e8790f7
      Linus Torvalds authored
      Pull libata changes from Tejun Heo:
       "The only interesting piece is the support for shingled drives.  The
        changes in libata layer are minimal.  All it does is identifying the
        new class of device and report upwards accordingly"
      
      * 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata:
        libata: Remove FIXME comment in atapi_request_sense()
        sata_rcar: Document deprecated "renesas,rcar-sata"
        sata_rcar: Add clocks to sata_rcar bindings
        ahci_sunxi: Make AHCI_HFLAG_NO_PMP flag configurable with a module option
        libata-scsi: Update SATL for ZAC drives
        libata: Implement ATA_DEV_ZAC
        libsas: use ata_dev_classify()
      4e8790f7
    • Dwight Engen's avatar
      sunvdc: fix module unload/reload · 31f4888f
      Dwight Engen authored
      
      
      Free resources allocated during port/disk probing so that the module may be
      successfully reloaded after unloading.
      
      Signed-off-by: default avatarDwight Engen <dwight.engen@oracle.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      31f4888f
    • Andreas Larsson's avatar
      sparc32, leon: Align ccall_info to prevent unaligned traps on crosscall · 92f268ee
      Andreas Larsson authored
      
      
      It is being filled in using std in leon_cross_call.
      
      Signed-off-by: default avatarAndreas Larsson <andreas@gaisler.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      92f268ee
    • Linus Torvalds's avatar
      Merge branch 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 0a27044c
      Linus Torvalds authored
      Pull workqueue update from Tejun Heo:
       "Work items which may be involved in memory reclaim path may be
        executed by the rescuer under memory pressure.  When a rescuer gets
        activated, it processes whatever are on the pending list and then goes
        back to sleep until the manager kicks it again which involves 100ms
        delay.
      
        This is problematic for self-requeueing work items or the ones running
        on ordered workqueues as there always is only one work item on the
        pending list when the rescuer kicks in.  The execution of that work
        item produces more to execute but the rescuer won't see them until
        after the said 100ms has passed, so such workqueues would only execute
        one work item every 100ms under prolonged memory pressure, which BTW
        may be being prolonged due to the slow execution.
      
        Neil wrote up a patch which fixes this issue by keeping the rescuer
        working as long as the target workqueue is busy but doesn't have
        enough workers"
      
      * 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: allow rescuer thread to do more work.
        workqueue: invert the order between pool->lock and wq_mayday_lock
        workqueue: cosmetic update in rescuer_thread()
      0a27044c
    • Linus Torvalds's avatar
      Merge branch 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · eedb3d33
      Linus Torvalds authored
      Pull percpu updates from Tejun Heo:
       "Nothing interesting.  A patch to convert the remaining __get_cpu_var()
        users, another to fix non-critical off-by-one in an assertion and a
        cosmetic conversion to lockless_dereference() in percpu-ref.
      
        The back-merge from mainline is to receive lockless_dereference()"
      
      * 'for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        percpu: Replace smp_read_barrier_depends() with lockless_dereference()
        percpu: Convert remaining __get_cpu_var uses in 3.18-rcX
        percpu: off by one in BUG_ON()
      eedb3d33
    • Linus Torvalds's avatar
      Merge tag 'stable/for-linus-3.19-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 9d050966
      Linus Torvalds authored
      Pull xen features and fixes from David Vrabel:
      
       - Fully support non-coherent devices on ARM by introducing the
         mechanisms to request the hypervisor to perform the required cache
         maintainance operations.
      
       - A number of pciback bug fixes and cleanups.  Notably a deadlock fix
         if a PCI device was manually uunbound and a fix for incorrectly
         restoring state after a function reset.
      
       - In x86 PVHVM guests, use the APIC for interrupts if this has been
         virtualized by the hardware.  This reduces the number of interrupt-
         related VM exits on such hardware.
      
      * tag 'stable/for-linus-3.19-rc0-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip: (26 commits)
        Revert "swiotlb-xen: pass dev_addr to swiotlb_tbl_unmap_single"
        xen/pci: Use APIC directly when APIC virtualization hardware is available
        xen/pci: Defer initialization of MSI ops on HVM guests
        xen-pciback: drop SR-IOV VFs when PF driver unloads
        xen/pciback: Restore configuration space when detaching from a guest.
        PCI: Expose pci_load_saved_state for public consumption.
        xen/pciback: Remove tons of dereferences
        xen/pciback: Print out the domain owning the device.
        xen/pciback: Include the domain id if removing the device whilst still in use
        driver core: Provide an wrapper around the mutex to do lockdep warnings
        xen/pciback: Don't deadlock when unbinding.
        swiotlb-xen: pass dev_addr to swiotlb_tbl_unmap_single
        swiotlb-xen: call xen_dma_sync_single_for_device when appropriate
        swiotlb-xen: remove BUG_ON in xen_bus_to_phys
        swiotlb-xen: pass dev_addr to xen_dma_unmap_page and xen_dma_sync_single_for_cpu
        xen/arm: introduce GNTTABOP_cache_flush
        xen/arm/arm64: introduce xen_arch_need_swiotlb
        xen/arm/arm64: merge xen/mm32.c into xen/mm.c
        xen/arm: use hypercall to flush caches in map_page
        xen: add a dma_addr_t dev_addr argument to xen_dma_map_page
        ...
      9d050966
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · c0222ac0
      Linus Torvalds authored
      Pull MIPS updates from Ralf Baechle:
       "This is an unusually large pull request for MIPS - in parts because
        lots of patches missed the 3.18 deadline but primarily because some
        folks opened the flood gates.
      
         - Retire the MIPS-specific phys_t with the generic phys_addr_t.
         - Improvments for the backtrace code used by oprofile.
         - Better backtraces on SMP systems.
         - Cleanups for the Octeon platform code.
         - Cleanups and fixes for the Loongson platform code.
         - Cleanups and fixes to the firmware library.
         - Switch ATH79 platform to use the firmware library.
         - Grand overhault to the SEAD3 and Malta interrupt code.
         - Move the GIC interrupt code to drivers/irqchip
         - Lots of GIC cleanups and updates to the GIC code to use modern IRQ
           infrastructures and features of the kernel.
         - OF documentation updates for the GIC bindings
         - Move GIC clocksource driver to drivers/clocksource
         - Merge GIC clocks...
      c0222ac0
    • Linus Torvalds's avatar
      Merge tag 'powerpc-3.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux · 140cd7fb
      Linus Torvalds authored
      Pull powerpc updates from Michael Ellerman:
       "Some nice cleanups like removing bootmem, and removal of
        __get_cpu_var().
      
        There is one patch to mm/gup.c.  This is the generic GUP
        implementation, but is only used by us and arm(64).  We have an ack
        from Steve Capper, and although we didn't get an ack from Andrew he
        told us to take the patch through the powerpc tree.
      
        There's one cxl patch.  This is in drivers/misc, but Greg said he was
        happy for us to manage fixes for it.
      
        There is an infrastructure patch to support an IPMI driver for OPAL.
      
        There is also an RTC driver for OPAL.  We weren't able to get any
        response from the RTC maintainer, Alessandro Zummo, so in the end we
        just merged the driver.
      
        The usual batch of Freescale updates from Scott"
      
      * tag 'powerpc-3.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux: (101 commits)
        powerpc/powernv: Return to cpu offline loop when finished in KVM guest
        powerpc/book3s: Fix partial invalidation of TLBs in MCE code.
        powerpc/mm: don't do tlbie for updatepp request with NO HPTE fault
        powerpc/xmon: Cleanup the breakpoint flags
        powerpc/xmon: Enable HW instruction breakpoint on POWER8
        powerpc/mm/thp: Use tlbiel if possible
        powerpc/mm/thp: Remove code duplication
        powerpc/mm/hugetlb: Sanity check gigantic hugepage count
        powerpc/oprofile: Disable pagefaults during user stack read
        powerpc/mm: Check for matching hpte without taking hpte lock
        powerpc: Drop useless warning in eeh_init()
        powerpc/powernv: Cleanup unused MCE definitions/declarations.
        powerpc/eeh: Dump PHB diag-data early
        powerpc/eeh: Recover EEH error on ownership change for BCM5719
        powerpc/eeh: Set EEH_PE_RESET on PE reset
        powerpc/eeh: Refactor eeh_reset_pe()
        powerpc: Remove more traces of bootmem
        powerpc/pseries: Initialise nvram_pstore_info's buf_lock
        cxl: Name interrupts in /proc/interrupt
        cxl: Return error to PSL if IRQ demultiplexing fails & print clearer warning
        ...
      140cd7fb
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 27afc5db
      Linus Torvalds authored
      Pull s390 updates from Martin Schwidefsky:
       "The most notable change for this pull request is the ftrace rework
        from Heiko.  It brings a small performance improvement and the ground
        work to support a new gcc option to replace the mcount blocks with a
        single nop.
      
        Two new s390 specific system calls are added to emulate user space
        mmio for PCI, an artifact of the how PCI memory is accessed.
      
        Two patches for the memory management with changes to common code.
        For KVM mm_forbids_zeropage is added which disables the empty zero
        page for an mm that is used by a KVM process.  And an optimization,
        pmdp_get_and_clear_full is added analog to ptep_get_and_clear_full.
      
        Some micro optimization for the cmpxchg and the spinlock code.
      
        And as usual bug fixes and cleanups"
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (46 commits)
        s390/cputime: fix 31-bit compile
        s390/scm_block: make the number of reqs per HW req configurable
        s390/scm_block: handle multiple requests in one HW request
        s390/scm_block: allocate aidaw pages only when necessary
        s390/scm_block: use mempool to manage aidaw requests
        s390/eadm: change timeout value
        s390/mm: fix memory leak of ptlock in pmd_free_tlb
        s390: use local symbol names in entry[64].S
        s390/ptrace: always include vector registers in core files
        s390/simd: clear vector register pointer on fork/clone
        s390: translate cputime magic constants to macros
        s390/idle: convert open coded idle time seqcount
        s390/idle: add missing irq off lockdep annotation
        s390/debug: avoid function call for debug_sprintf_*
        s390/kprobes: fix instruction copy for out of line execution
        s390: remove diag 44 calls from cpu_relax()
        s390/dasd: retry partition detection
        s390/dasd: fix list corruption for sleep_on requests
        s390/dasd: fix infinite term I/O loop
        s390/dasd: remove unused code
        ...
      27afc5db
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next · 70e71ca0
      Linus Torvalds authored
      Pull networking updates from David Miller:
      
       1) New offloading infrastructure and example 'rocker' driver for
          offloading of switching and routing to hardware.
      
          This work was done by a large group of dedicated individuals, not
          limited to: Scott Feldman, Jiri Pirko, Thomas Graf, John Fastabend,
          Jamal Hadi Salim, Andy Gospodarek, Florian Fainelli, Roopa Prabhu
      
       2) Start making the networking operate on IOV iterators instead of
          modifying iov objects in-situ during transfers.  Thanks to Al Viro
          and Herbert Xu.
      
       3) A set of new netlink interfaces for the TIPC stack, from Richard
          Alpe.
      
       4) Remove unnecessary looping during ipv6 routing lookups, from Martin
          KaFai Lau.
      
       5) Add PAUSE frame generation support to gianfar driver, from Matei
          Pavaluca.
      
       6) Allow for larger reordering levels in TCP, which are easily
          achievable in the real world right now, from Eric Dumazet.
      
       7) Add a variable of napi_schedule that doesn't need to disable cpu
          interrupts, from Eric Dumazet.
      
       8) Use a doubly linked list to optimize neigh_parms_release(), from
          Nicolas Dichtel.
      
       9) Various enhancements to the kernel BPF verifier, and allow eBPF
          programs to actually be attached to sockets.  From Alexei
          Starovoitov.
      
      10) Support TSO/LSO in sunvnet driver, from David L Stevens.
      
      11) Allow controlling ECN usage via routing metrics, from Florian
          Westphal.
      
      12) Remote checksum offload, from Tom Herbert.
      
      13) Add split-header receive, BQL, and xmit_more support to amd-xgbe
          driver, from Thomas Lendacky.
      
      14) Add MPLS support to openvswitch, from Simon Horman.
      
      15) Support wildcard tunnel endpoints in ipv6 tunnels, from Steffen
          Klassert.
      
      16) Do gro flushes on a per-device basis using a timer, from Eric
          Dumazet.  This tries to resolve the conflicting goals between the
          desired handling of bulk vs.  RPC-like traffic.
      
      17) Allow userspace to ask for the CPU upon what a packet was
          received/steered, via SO_INCOMING_CPU.  From Eric Dumazet.
      
      18) Limit GSO packets to half the current congestion window, from Eric
          Dumazet.
      
      19) Add a generic helper so that all drivers set their RSS keys in a
          consistent way, from Eric Dumazet.
      
      20) Add xmit_more support to enic driver, from Govindarajulu
          Varadarajan.
      
      21) Add VLAN packet scheduler action, from Jiri Pirko.
      
      22) Support configurable RSS hash functions via ethtool, from Eyal
          Perry.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1820 commits)
        Fix race condition between vxlan_sock_add and vxlan_sock_release
        net/macb: fix compilation warning for print_hex_dump() called with skb->mac_header
        net/mlx4: Add support for A0 steering
        net/mlx4: Refactor QUERY_PORT
        net/mlx4_core: Add explicit error message when rule doesn't meet configuration
        net/mlx4: Add A0 hybrid steering
        net/mlx4: Add mlx4_bitmap zone allocator
        net/mlx4: Add a check if there are too many reserved QPs
        net/mlx4: Change QP allocation scheme
        net/mlx4_core: Use tasklet for user-space CQ completion events
        net/mlx4_core: Mask out host side virtualization features for guests
        net/mlx4_en: Set csum level for encapsulated packets
        be2net: Export tunnel offloads only when a VxLAN tunnel is created
        gianfar: Fix dma check map error when DMA_API_DEBUG is enabled
        cxgb4/csiostor: Don't use MASTER_MUST for fw_hello call
        net: fec: only enable mdio interrupt before phy device link up
        net: fec: clear all interrupt events to support i.MX6SX
        net: fec: reset fep link status in suspend function
        net: sock: fix access via invalid file descriptor
        net: introduce helper macro for_each_cmsghdr
        ...
      70e71ca0
    • Peter Wu's avatar
      HID: logitech-hidpp: disable io in probe error path · f486d9db
      Peter Wu authored
      
      
      Balance a hid_device_io_start() call with hid_device_io_stop() in the
      error path. This avoids processing of HID reports when the probe fails
      which possibly leads to invalid memory access in hid_device_probe() as
      report_enum->report_id_hash might already be freed via
      hid_close_report().
      
      hid_set_drvdata() is called before wtp_allocate, be consistent and clear
      drvdata too on the error path of wtp_allocate.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      f486d9db
    • Peter Wu's avatar
      HID: logitech-hidpp: add boundary check for name retrieval · 3a034a7a
      Peter Wu authored
      
      
      The HID response has a limited size. Do not trust the value returned by
      hardware, check that it really fits in the message.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      3a034a7a
    • Peter Wu's avatar
      HID: logitech-hidpp: check name retrieval return code · 1430ee73
      Peter Wu authored
      
      
      hidpp_devicenametype_get_device_name() may return a negative value on
      protocol errors (for example, when the device is powered off).
      Explicitly check this condition to avoid a long-running loop.
      
      (0 cannot be returned as __name_length - index > 0, but check for it
      anyway as it would otherwise result in an infinite loop.)
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      Reviewed-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      1430ee73
    • Peter Wu's avatar
      HID: logitech-hidpp: do not return the name length · 02cc097e
      Peter Wu authored
      
      
      We do not make any use of the actual name length get through
      hidpp_get_device_name(). Original patch by Benjamin Tissoires, this
      patch also replaces a (now) unnecessary goto by return NULL.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      Signed-off-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      02cc097e