1. 23 May, 2013 6 commits
    • Linus Torvalds's avatar
      Merge tag 'char-misc-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 5cc0c038
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg Kroah-Hartman:
       "Here are some small char/misc driver fixes for 3.10-rc2.
      
        Nothing major here, just a number of fixes for things that people have
        reported, and a MAINTAINERS update for the recent changes for the
        hyperv files that went into 3.10-rc1."
      
      * tag 'char-misc-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        ttyprintk: Fix NULL pointer deref by setting tty_port ops after initializing port
        uio: UIO_DMEM_GENIRQ should depend on HAS_DMA
        MAINTAINERS: update Hyper-V file list
        mei: bus: Reset event_cb when disabling a device
        Drivers: hv: Fix a bug in get_vp_index()
        mei: fix out of array access to me clients array
        Char: lp, protect LPGETSTATUS with port_mutex
        dummy-irq: require the user to specify an IRQ number
      5cc0c038
    • Linus Torvalds's avatar
      Merge tag 'usb-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · b6419406
      Linus Torvalds authored
      Pull USB fixes from Greg Kroah-Hartman:
       "Here are a number of tiny USB bugfixes / new device ids for 3.10-rc2
      
        The majority of these are USB gadget fixes, but they are all small.
        Other than that, some USB host controller fixes, and USB serial driver
        fixes for problems reported with them.
      
        Also hopefully a fixed up USB_OTG Kconfig dependancy, that one seems
        to be almost impossible to get right for all of the different
        platforms these days."
      
      * tag 'usb-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (56 commits)
        USB: cxacru: potential underflow in cxacru_cm_get_array()
        USB: ftdi_sio: Add support for Newport CONEX motor drivers
        USB: option: add device IDs for Dell 5804 (Novatel E371) WWAN card
        usb: ohci: fix goto wrong tag in err case
        usb: isp1760-if: fix memleak when platform_get_resource fail
        usb: ehci-s5p: fix memleak when fallback to pdata
        USB: serial: clean up chars_in_buffer
        USB: ti_usb_3410_5052: fix chars_in_buffer overhead
        USB: io_ti: fix chars_in_buffer overhead
        USB: ftdi_sio: fix chars_in_buffer overhead
        USB: ftdi_sio: clean up get_modem_status
        USB: serial: add generic wait_until_sent implementation
        USB: serial: add wait_until_sent operation
        USB: set device dma_mask without reference to global data
        USB: Blacklisted Cinterion's PLxx WWAN Interface
        usb: option: Add Telewell TW-LTE 4G
        USB: EHCI: remove bogus #error
        USB: reset resume quirk needed by a hub
        USB: usb-stor: realtek_cr: Fix compile error
        usb, chipidea: fix link error when USB_EHCI_HCD is a module
        ...
      b6419406
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/virt/kvm/kvm · 72dd4e79
      Linus Torvalds authored
      Pull kvm bugfixes from Gleb Natapov.
      
      * git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM/MIPS32: Wrap calls to gfn_to_pfn() with srcu_read_lock/unlock()
        KVM/MIPS32: Move include/asm/kvm.h => include/uapi/asm/kvm.h since it is a user visible API.
        KVM: take over co-maintainership from Marcelo, fix MAINTAINERS entry
      72dd4e79
    • Randy Dunlap's avatar
      lib: make iovec obj instead of lib · b4d3ba33
      Randy Dunlap authored
      Fix build error io vmw_vmci.ko when CONFIG_VMWARE_VMCI=m by chaning
      iovec.o from lib-y to obj-y.
      
        ERROR: "memcpy_toiovec" [drivers/misc/vmw_vmci/vmw_vmci.ko] undefined!
        ERROR: "memcpy_fromiovec" [drivers/misc/vmw_vmci/vmw_vmci.ko] undefined!
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b4d3ba33
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32 · 101b82f5
      Linus Torvalds authored
      Pull AVR32 update from Hans-Christian Egtvedt:
       "wow, it has gone 10 releases since my last request :("
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/egtvedt/linux-avr32:
        avr32: fix building warnings caused by redefinitions of HZ
        avr32: fix relocation check for signed 18-bit offset
        avr32: move NODES_SHIFT into Kconfig and delete numnodes.h
      101b82f5
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus · 3cb7a59f
      Linus Torvalds authored
      Pull MIPS update from Ralf Baechle:
       - Fix a build error if <linux/printk.h> is included without
         <linux/linkage.h> having been included before.
       - Cleanup and fix the damage done by the generic idle loop patch.
       - A kprobes fix that brings the MIPS code in line with what other
         architectures are for quite a while already.
       - Wire up the native getdents64(2) syscall for 64 bit - for some reason
         it was only for the compat ABIs.  This has been reported to cause an
         application issue.  This turned out bigger than I meant but the wait
         instruction support code was driving me nuts.
      
      * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus:
        MIPS: N64: Wire getdents64(2)
        kprobes/mips: Fix to check double free of insn slot
        MIPS: Idle: Break r4k_wait into two functions and fix it.
        MIPS: Idle: Do address fiddlery in helper functions.
        MIPS: Idle: Consolidate all declarations in <asm/idle.h>.
        MIPS: Idle: Don't call local_irq_disable() in cpu_wait() implementations.
        MIPS: Idle: Re-enable irqs at the end of r3081, au1k and loongson2 cpu_wait.
        MIPS: Idle: Make call of function pointer readable.
        MIPS: Idle: Consistently reformat inline assembler.
        MIPS: Idle: cleaup SMTC idle hook as per Linux coding style.
        MIPS: Consolidate idle loop / WAIT instruction support in a single file.
        MIPS: clock.h: Remove declaration of cpu_wait.
        Add include dependencies to <linux/printk.h>.
        MIPS: Rewrite pfn_valid to work in modules, too.
      3cb7a59f
  2. 22 May, 2013 8 commits
    • Jiang Liu's avatar
      avr32: fix building warnings caused by redefinitions of HZ · 0c9b5a31
      Jiang Liu authored
      As suggested by David Howells <dhowells@redhat.com>, use
      asm-generic/param.h and uapi/asm-generic/param.h for AVR32.
      
      It also fixes building warnings caused by redefinitions of HZ:
      In file included from /ws/linux/kernel/linux.git/include/uapi/linux/param.h:4,
                       from include/linux/timex.h:63,
                       from include/linux/jiffies.h:8,
                       from include/linux/ktime.h:25,
                       from include/linux/timer.h:5,
                       from include/linux/workqueue.h:8,
                       from include/linux/srcu.h:34,
                       from include/linux/notifier.h:15,
                       from include/linux/memory_hotplug.h:6,
                       from include/linux/mmzone.h:777,
                       from include/linux/gfp.h:4,
                       from arch/avr32/mm/init.c:10:
      /ws/linux/kernel/linux.git/arch/avr32/include/asm/param.h:6:1: warning: "HZ" redefined
      In file included from /ws/linux/kernel/linux.git/arch/avr32/include/asm/param.h:4,
                       from /ws/linux/kernel/linux.git/include/uapi/linux/param.h:4,
                       from include/linux/timex.h:63,
                       from include/linux/jiffies.h:8,
                       from include/linux/ktime.h:25,
                       from include/linux/timer.h:5,
                       from include/linux/workqueue.h:8,
                       from include/linux/srcu.h:34,
                       from include/linux/notifier.h:15,
                       from include/linux/memory_hotplug.h:6,
                       from include/linux/mmzone.h:777,
                       from include/linux/gfp.h:4,
                       from arch/avr32/mm/init.c:10:
      /ws/linux/kernel/linux.git/arch/avr32/include/uapi/asm/param.h:6:1: warning: this is the location of the previous definition
      Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
      Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarHans-Christian Egtvedt <egtvedt@samfundet.no>
      0c9b5a31
    • Ralf Baechle's avatar
      mm: Fix virt_to_page() warning · bb3ec6b0
      Ralf Baechle authored
      virt_to_page() is typically implemented as a macro containing a cast so
      that it will accept both pointers and unsigned long without causing a
      warning.
      
      But MIPS virt_to_page() uses virt_to_phys which is a function so passing
      an unsigned long will cause a warning:
      
          CC      mm/page_alloc.o
        mm/page_alloc.c: In function ‘free_reserved_area’:
        mm/page_alloc.c:5161:3: warning: passing argument 1 of ‘virt_to_phys’ makes pointer from integer without a cast [enabled by default]
        arch/mips/include/asm/io.h:119:100: note: expected ‘const volatile void *’ but argument is of type ‘long unsigned int’
      
      All others users of virt_to_page() in mm/ are passing a void *.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Reported-by: default avatarEunbong Song <eunb.song@samsung.com>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-mm@kvack.org
      Cc: linux-mips@linux-mips.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bb3ec6b0
    • Linus Torvalds's avatar
      Merge tag 'mfd-fixes-3.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-fixes · cbfd2cd7
      Linus Torvalds authored
      Pull mfd fixes from Samuel Ortiz:
       "This is the first batch of MFD fixes for 3.10.
      
        It's bigger than I would like, most of it is due to the big ab/db8500
        merge that went through during the 3.10 merge window.
      
        So we have:
      
         - Some build fixes for the tps65912 and ab8500 drivers.
         - A couple of build fixes for the the si476x driver with pre 4.3 gcc
           compilers.
         - A few runtime breakage fixes (probe failures or oopses) for the
           ab8500 and db8500 drivers.
         - Some sparse or regular gcc warning fixes for the si476x, ab8500 and
           cros_ec drivers."
      
      * tag 'mfd-fixes-3.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-fixes:
        mfd: ab8500-sysctrl: Let sysctrl driver work without pdata
        mfd: db8500-prcmu: Update stored DSI PLL divider value
        mfd: ab8500-sysctrl: Always enable pm_power_off handler
        mfd: ab8500-core: Pass GPADC compatible string to MFD core
        mfd: db8500-prcmu: Supply the pdata_size attribute for db8500-thermal
        mfd: ab8500-core: Use the correct driver name when enabling gpio/pinctrl
        mfd: ab8500: Pass AB8500 IRQ to debugfs code by resource
        mfd: ab8500-gpadc: Suppress 'ignoring regulator_enable() return value' warning
        mfd: ab8500-sysctrl: Set sysctrl_dev during probe
        mfd: ab8500-sysctrl: Fix sparse warning
        mfd: abx500-core: Fix sparse warning
        mfd: ab8500: Debugfs code depends on gpadc
        mfd: si476x: Use get_unaligned_be16() for unaligned be16 loads
        mfd: cros_ec_spi: Use %z to format pointer differences
        mfd: si476x: Do not use binary constants
        mfd: tps65912: Select MFD_CORE
      cbfd2cd7
    • Linus Torvalds's avatar
      Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux · 94f1be97
      Linus Torvalds authored
      Pull virtio fixes from Rusty Russell:
       "A build fix and a uapi exposure fix.  The build fix is later than I
        liked, but my first version broke linux-next due to overzealous header
        clean."
      
      * tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux:
        virtio_console: fix uapi header
        Hoist memcpy_fromiovec/memcpy_toiovec into lib/
      94f1be97
    • Aron Xu's avatar
      MIPS: N64: Wire getdents64(2) · dec33aba
      Aron Xu authored
      As a relatively new ABI, N64 only had getdents syscall while other modern
      architectures have getdents64.
      
      This was noticed when Python 3.3 shifted to the latter one for aarch64.
      
      [ralf@linux-mips.org: The history of getdents64 is a little complicated.
      Commit 1a1d77dd589de5a567fa95e36aa6999c704ceca4 [Merge with 2.4.0-test7.]
      added N64 getdents(2) to arch/mips64/kernel/scall_64.S as syscall 5213,
      then dropped again in 578720675c44e54e8aa7c68f6dce59ed37ce3d3b [Overhaul
      of the 64-bit syscall interface.  Now heritage free.] for 2.5.18 in 2002.]
      Signed-off-by: default avatarAron Xu <aron@debian.org>
      Acked-by: default avatarDavid Daney <david.daney@cavium.com>
      Cc: linux-mips@linux-mips.org
      Patchwork: https://patchwork.linux-mips.org/patch/5285/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      dec33aba
    • Masami Hiramatsu's avatar
      kprobes/mips: Fix to check double free of insn slot · 22047b85
      Masami Hiramatsu authored
      Fix to check double free of insn_slot at arch_remove_kprobe
      as other arches do.
      Signed-off-by: default avatarMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
      Cc: David Daney <ddaney@caviumnetworks.com>
      Cc: Maneesh Soni <manesoni@cisco.com>
      Cc: Victor Kamensky <kamensky@cisco.com>
      Cc: linux-mips@linux-mips.org
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-mips@linux-mips.org
      Cc: yrl.pp-manager.tt@hitachi.com
      Cc: systemtap@sourceware.org
      Patchwork: https://patchwork.linux-mips.org/patch/5293/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      22047b85
    • Sanjay Lal's avatar
      KVM/MIPS32: Wrap calls to gfn_to_pfn() with srcu_read_lock/unlock() · 6d17c0d1
      Sanjay Lal authored
      - As suggested by Gleb, wrap calls to gfn_to_pfn() with srcu_read_lock/unlock().
        Memory slots should be acccessed from a SRCU read section.
      - kvm_mips_map_page() now returns an error code to it's callers, instead of
        calling panic() if it cannot find a mapping for a particular gfn.
      Signed-off-by: default avatarSanjay Lal <sanjayl@kymasys.com>
      Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
      6d17c0d1
    • Sanjay Lal's avatar
  3. 21 May, 2013 25 commits
  4. 20 May, 2013 1 commit
    • Dave Airlie's avatar
      Merge branch 'drm-fixes-3.10-sun' of git://people.freedesktop.org/~agd5f/linux into drm-next · cc3e06a5
      Dave Airlie authored
      This is the pull request for AMD Sun/Hainan support.  I've
      split it out separately from my regular fixes stream.  Hainan
      is a new SI asic with no UVD or DCE hardware.  The patches are
      minimally invasive; basically just pci ids and skipping UVD and
      DCE init for this family.  Most of the changes to si.c are just
      the golden register tables for the family.
      
      * 'drm-fixes-3.10-sun' of git://people.freedesktop.org/~agd5f/linux:
        drm/radeon: add Hainan pci ids
        drm/radeon: add golden register settings for Hainan (v2)
        drm/radeon: sun/hainan chips do not have UVD (v2)
        drm/radeon: track which asics have UVD
        drm/radeon: radeon-asic updates for Hainan
        drm/radeon: fill in ucode loading support for Hainan
        drm/radeon: don't touch DCE or VGA regs on Hainan (v3)
        drm/radeon: fill in GPU init for Hainan (v2)
        drm/radeon: add chip family for Hainan
      cc3e06a5