1. 23 May, 2013 8 commits
    • Linus Torvalds's avatar
      Merge tag 'staging-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 388c2896
      Linus Torvalds authored
      Pull staging driver fixes from Greg Kroah-Hartman:
       "Here are some staging tree driver fixes for 3.10-rc2
      
        The drivers/iio/ changes are here as they are still tied into
        drivers/staging/iio/.
      
        Nothing major, just a number of small bugfixes, and a larger
        documentation update for the ramster code."
      
      * tag 'staging-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (28 commits)
        staging: dwc2: remove compile warning for USB_DWC2_TRACK_MISSED_SOFS
        iio: exynos_adc: fix wrong structure extration in suspend and resume
        iio:common:st: added disable function after read info raw data
        iio: dac: Fix build error when CONFIG_SPI_MASTER=y && CONFIG_I2C=m
        staging:iio:light:tsl2x7x: fix the error handling in tsl2x7x_probe()
        staging/iio/mxs-lradc: fix preenable for multiple buffers
        staging: imx-drm: imx-tve: Check the return value of 'regulator_enable()'
        staging: video: imx: Select VIDEOMODE_HELPERS for parallel display
        staging: ramster: add how-to document
        staging: dwc2: Fix dma-enabled platform devices using a default dma_mask
        staging: vt6656: [bug] Fix missing spin lock in iwctl_siwpower.
        staging: Swap zram and zsmalloc in Kconfig
        staging: android: logger: use kuid_t instead of uid_t
        staging: zcache: Fix incorrect module_param_array types
        staging/solo6x10: depend on CONFIG_FONTS
        staging/drm: imx: add missing dependencies
        staging: ste_rmi4: Suppress 'ignoring return value of ‘regulator_enable()' warning
        staging: sep: fix driver build and kconfig
        staging: nvec: cleanup childs on remove
        staging: nvec: implement unregistering of notifiers
        ...
      388c2896
    • Linus Torvalds's avatar
      Merge tag 'driver-core-3.10-rc2' of... · c7153d06
      Linus Torvalds authored
      Merge tag 'driver-core-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core fixes from Greg Kroah-Hartman:
       "Here are 3 tiny driver core fixes for 3.10-rc2.
      
        A needed symbol export, a change to make it easier to track down
        offending sysfs files with incorrect attributes, and a klist bugfix.
      
        All have been in linux-next for a while"
      
      * tag 'driver-core-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        klist: del waiter from klist_remove_waiters before wakeup waitting process
        driver core: print sysfs attribute name when warning about bogus permissions
        driver core: export subsys_virtual_register
      c7153d06
    • 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 15 commits
  3. 21 May, 2013 17 commits
    • Ralf Baechle's avatar
      MIPS: Idle: Break r4k_wait into two functions and fix it. · 087d990b
      Ralf Baechle authored
      local_irq_enable() may expand into very different code, so it rather should
      stay in C.  Also this keeps the assembler code size constant which keeps
      the rollback code simple.  So it's best to split r4k_wait into two parts,
      one C and one assembler.
      
      Finally add the local_irq_enable() to r4k_wait to ensure the WAIT
      instruction in __r4k_wait() will work properly.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      087d990b
    • Ralf Baechle's avatar
      f94d9a8e
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
      MIPS: Idle: Don't call local_irq_disable() in cpu_wait() implementations. · d882f07a
      Ralf Baechle authored
      The generic idle loop has already disabled interrupts so this is redundant.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      d882f07a
    • Ralf Baechle's avatar
      MIPS: Idle: Re-enable irqs at the end of r3081, au1k and loongson2 cpu_wait. · fb40bc3e
      Ralf Baechle authored
      Without this, the
      
          WARN_ON_ONCE(irqs_disabled());
      
      in the idle loop will be triggered.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      fb40bc3e
    • Ralf Baechle's avatar
      c9b6869d
    • Ralf Baechle's avatar
      f91a148a
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
    • Ralf Baechle's avatar
      MIPS: clock.h: Remove declaration of cpu_wait. · 1a461c5b
      Ralf Baechle authored
      Duplicate and has no business in this header file.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      1a461c5b
    • Ralf Baechle's avatar
      Add include dependencies to <linux/printk.h>. · 154c2670
      Ralf Baechle authored
      If <linux/linkage.h> has not been included before <linux/printk.h>,
      a build error like the below one will result:
      
        CC      arch/mips/kernel/idle.o
      In file included from arch/mips/kernel/idle.c:17:0:
      include/linux/printk.h:109:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:109:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:110:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:110:1: error: expected ‘,’ or ‘;’ before ‘int’
      include/linux/printk.h:114:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:114:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:115:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:115:1: error: expected ‘,’ or ‘;’ before ‘int’
      include/linux/printk.h:117:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:117:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:118:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:118:1: error: ‘__cold__’ attribute ignored [-Werror=attributes]
      include/linux/printk.h:118:1: error: expected ‘,’ or ‘;’ before ‘asmlinkage’
      include/linux/printk.h:122:1: error: data definition has no type or storage class [-Werror]
      include/linux/printk.h:122:1: error: type defaults to ‘int’ in declaration of ‘asmlinkage’ [-Werror=implicit-int]
      include/linux/printk.h:123:1: error: ‘format’ attribute only applies to function types [-Werror=attributes]
      include/linux/printk.h:123:1: error: ‘__cold__’ attribute ignored [-Werror=attributes]
      include/linux/printk.h:123:1: error: expected ‘,’ or ‘;’ before ‘int’
      In file included from include/linux/kernel.h:14:0,
                       from include/linux/sched.h:15,
                       from arch/mips/kernel/idle.c:18:
      include/linux/dynamic_debug.h: In function ‘ddebug_dyndbg_module_param_cb’:
      include/linux/dynamic_debug.h:124:3: error: implicit declaration of function ‘printk’ [-Werror=implicit-function-declaration]
      
      Fixed by including <linux/linkage.h>.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      154c2670
    • Fabio Baltieri's avatar
      mfd: ab8500-sysctrl: Let sysctrl driver work without pdata · 5649d8f9
      Fabio Baltieri authored
      A check for a valid plat->sysctrl was introduced in:
      
      2377e52f mfd: ab8500-sysctrl: Error check clean up
      
      but the driver works just fine even without that initialization data,
      and enforcing it breaks existing platforms for no reason.
      
      This patch removes the check and let the driver go ahead with probe.
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarFabio Baltieri <fabio.baltieri@linaro.org>
      Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
      Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      5649d8f9
    • Linus Torvalds's avatar
      Merge branch 'leds-fixes-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds · 519fe2ec
      Linus Torvalds authored
      Pull LED subsystem fix from Bryan Wu.
      
      * 'leds-fixes-3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/cooloney/linux-leds:
        leds: leds-gpio: reserve gpio before using it
      519fe2ec
    • Timo Teräs's avatar
      leds: leds-gpio: reserve gpio before using it · 803d19d5
      Timo Teräs authored
      This reverts commit a99d76f9 (leds: leds-gpio: use gpio_request_one)
      and commit 2d7c22f6 (leds: leds-gpio: set devm_gpio_request_one()
      flags param correctly) which was a fix of the first one.
      
      The conversion to devm_gpio_request in commit e3b1d44c (leds:
      leds-gpio: use devm_gpio_request_one) is not reverted.
      
      The problem is that gpio_cansleep() and gpio_get_value_cansleep()
      calls can crash if the gpio is not first reserved. Incidentally this
      same bug existed earlier and was fixed similarly in commit d95cbe61
      (leds: Fix potential leds-gpio oops). But the OOPS is real. It happens
      when GPIOs are provided by module which is not yet loaded.
      
      So this fixes the following BUG during my ALIX boot (3.9.2-vanilla):
      
      BUG: unable to handle kernel NULL pointer dereference at 0000004c
      IP: [<c11287d6>] __gpio_cansleep+0xe/0x1a
      *pde = 00000000
      Oops: 0000 [#1] SMP
      Modules linked in: leds_gpio(+) via_rhine mii cs5535_mfd mfd_core
      geode_rng rng_core geode_aes isofs nls_utf8 nls_cp437 vfat fat
      ata_generic pata_amd pata_cs5536 pata_acpi libata ehci_pci ehci_hcd
      ohci_hcd usb_storage usbcore usb_common sd_mod scsi_mod squashfs loop
      Pid: 881, comm: modprobe Not tainted 3.9.2 #1-Alpine
      EIP: 0060:[<c11287d6>] EFLAGS: 00010282 CPU: 0
      EIP is at __gpio_cansleep+0xe/0x1a
      EAX: 00000000 EBX: cf364018 ECX: c132b8b9 EDX: 00000000
      ESI: c13993a4 EDI: c1399370 EBP: cded9dbc ESP: cded9dbc
       DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
      CR0: 8005003b CR2: 0000004c CR3: 0f0c4000 CR4: 00000090
      DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
      DR6: ffff0ff0 DR7: 00000400
      Process modprobe (pid: 881, ti=cded8000 task=cf094aa0 task.ti=cded8000)
      Stack:
       cded9de0 d09471cb 00000000 c1399260 cf364014 00000000 c1399260 c1399254
       d0949014 cded9df4 c118cd59 c1399260 d0949014 d0949014 cded9e08 c118ba47
       c1399260 d0949014 c1399294 cded9e1c c118bb75 cded9e24 d0949014 00000000
      Call Trace:
       [<d09471cb>] gpio_led_probe+0xba/0x203 [leds_gpio]
       [<c118cd59>] platform_drv_probe+0x26/0x48
       [<c118ba47>] driver_probe_device+0x75/0x15c
       [<c118bb75>] __driver_attach+0x47/0x63
       [<c118a727>] bus_for_each_dev+0x3c/0x66
       [<c118b6f9>] driver_attach+0x14/0x16
       [<c118bb2e>] ? driver_probe_device+0x15c/0x15c
       [<c118b3d5>] bus_add_driver+0xbd/0x1bc
       [<d08b4000>] ? 0xd08b3fff
       [<d08b4000>] ? 0xd08b3fff
       [<c118bffc>] driver_register+0x74/0xec
       [<d08b4000>] ? 0xd08b3fff
       [<c118c8e8>] platform_driver_register+0x38/0x3a
       [<d08b400d>] gpio_led_driver_init+0xd/0x1000 [leds_gpio]
       [<c100116c>] do_one_initcall+0x6b/0x10f
       [<d08b4000>] ? 0xd08b3fff
       [<c105e918>] load_module+0x1631/0x1907
       [<c10975d6>] ? insert_vmalloc_vmlist+0x14/0x43
       [<c1098d5b>] ? __vmalloc_node_range+0x13e/0x15f
       [<c105ec50>] sys_init_module+0x62/0x77
       [<c1257888>] syscall_call+0x7/0xb
      EIP: [<c11287d6>] __gpio_cansleep+0xe/0x1a SS:ESP 0068:cded9dbc
      CR2: 000000000000004c
       ---[ end trace 5308fb20d2514822 ]---
      Signed-off-by: default avatarTimo Teräs <timo.teras@iki.f>
      Cc: Sachin Kamat <sachin.kamat@linaro.org>
      Cc: Raphael Assenat <raph@8d.com>
      Cc: Trent Piepho <tpiepho@freescale.com>
      Cc: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
      Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
      Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
      Acked-by: default avatarJingoo Han <jg1.han@samsung.com>
      Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
      803d19d5
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · e748a385
      Linus Torvalds authored
      Pull i2c bugfixes from Wolfram Sang:
       "These should have been in rc2 but I missed it due to working on devm
        longer than expected.
      
        There is one ID addition, since we are touching the driver anyhow.
        And the feature bit documentation is one outcome of a debug session
        and will make it easier for users to work around problems.  The rest
        is typical driver bugfixes."
      
      * 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: suppress lockdep warning on delete_device
        i2c: mv64xxx: work around signals causing I2C transactions to be aborted
        i2c: i801: Document feature bits in modinfo
        i2c: designware: add Intel BayTrail ACPI ID
        i2c: designware: always clear interrupts before enabling them
        i2c: designware: fix RX FIFO overrun
      e748a385
    • Fabio Estevam's avatar
      staging: imx-drm: imx-tve: Check the return value of 'regulator_enable()' · c7b0cf3e
      Fabio Estevam authored
      Since commit c8801a8e (regulator: core: Mark all get and enable calls as
      __must_check) we need to check the value returned by 'regulator_enable()'.
      
      Do this check to get rid of the following build warning:
      
      drivers/staging/imx-drm/imx-tve.c: In function 'imx_tve_probe':
      drivers/staging/imx-drm/imx-tve.c:671:19: warning: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Wunused-result]
      Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
      Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
      Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      c7b0cf3e
    • Marek Vasut's avatar
      staging: video: imx: Select VIDEOMODE_HELPERS for parallel display · 8c24d6ea
      Marek Vasut authored
      Without this, I get the following problem when building kernel:
      
      drivers/built-in.o: In function `imx_pd_connector_get_modes':
      /linux-2.6/drivers/staging/imx-drm/parallel-display.c:78: undefined reference to `of_get_drm_display_mode'
      make: *** [vmlinux] Error 1
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Sascha Hauer <s.hauer@pengutronix.de>
      Cc: Philipp Zabel <p.zabel@pengutronix.de>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8c24d6ea