1. 16 Apr, 2012 8 commits
    • Paul Gortmaker's avatar
      mfd: Fix modular builds of rc5t583 regulator support · 82ea267f
      Paul Gortmaker authored
      The combination of commit 1b1247dd
      
          "mfd: Add support for RICOH PMIC RC5T583"
      
      and commit 6ffc3270
      
          "regulator: Add support for RICOH PMIC RC5T583 regulator"
      
      are causing the i386 allmodconfig builds to fail with this:
      
        ERROR: "rc5t583_update" [drivers/regulator/rc5t583-regulator.ko] undefined!
        ERROR: "rc5t583_set_bits" [drivers/regulator/rc5t583-regulator.ko] undefined!
        ERROR: "rc5t583_clear_bits" [drivers/regulator/rc5t583-regulator.ko] undefined!
        ERROR: "rc5t583_read" [drivers/regulator/rc5t583-regulator.ko] undefined!
      
      and this:
      
        ERROR: "rc5t583_ext_power_req_config" [drivers/regulator/rc5t583-regulator.ko] undefined!
      
      For the 1st four, make the simple ops static inline, instead of
      polluting the namespace with trivial exports.  For the last one,
      add an EXPORT_SYMBOL.
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      82ea267f
    • Dmitry Artamonow's avatar
      mfd: Fix asic3_gpio_to_irq · 02269ab1
      Dmitry Artamonow authored
      Assumption that irq numbers of asic3 gpios start at
      IRQ_BOARD_START is certainly wrong - driver may as well
      use any other base for its irqs (consider for example
      the imaginary case of two ASIC3 chips onboard)
      
      Furthermore, some platforms even don't have IRQ_BOARD_START
      defined, so driver will fail to build on them:
      -------------------------------------------------------
      drivers/mfd/asic3.c: In function 'asic3_gpio_to_irq':
      drivers/mfd/asic3.c:530: error: 'IRQ_BOARD_START' undeclared (first use in this function)
      drivers/mfd/asic3.c:530: error: (Each undeclared identifier is reported only once
      drivers/mfd/asic3.c:530: error: for each function it appears in.)
      -------------------------------------------------------
      
      Fix it by using irq_base from driver data.
      Signed-off-by: default avatarDmitry Artamonow <mad_soft@inbox.ru>
      Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      02269ab1
    • Keshava Munegowda's avatar
      ARM: OMAP3: USB: Fix the EHCI ULPI PHY reset issue · 1fcb57d0
      Keshava Munegowda authored
      It is observed that the echi ports of 3430 sdp board
      are not working due to the random timing of programming
      the associated GPIOs of the ULPI PHYs of the EHCI for reset.
      If the PHYs are reset at during usbhs core driver, host ports will
      not work because EHCI driver is loaded after the resetting PHYs.
      The PHYs should be in reset state while initializing the EHCI
      controller.
      The code which does the GPIO pins associated with the PHYs
      are programmed to reset is moved from the USB host core driver
      to EHCI driver.
      Signed-off-by: default avatarKeshava Munegowda <keshava_mgowda@ti.com>
      Reviewed-by: default avatarPartha Basak <parthab@india.ti.com>
      Acked-by: default avatarFelipe Balbi <balbi@ti.com>
      Tested-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      1fcb57d0
    • Peter Ujfalusi's avatar
      mfd: Convert twl6040 to i2c driver, and separate it from twl core · 8eaeb939
      Peter Ujfalusi authored
      Complete the separation of the twl6040 from the twl core since
      it is a separate chip, not part of the twl6030 PMIC.
      
      Make the needed Kconfig changes for the depending drivers at the
      same time to avoid breaking the kernel build (vibra, ASoC components).
      Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
      Reviewed-by: default avatarMark Brown <broonie@opensource.wolfsonicro.com>
      Acked-by: default avatarTony Lindgren <tony@atomide.com>
      Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      8eaeb939
    • Daniel Lezcano's avatar
      mfd : Fix dbx500 compilation error · 4accdff7
      Daniel Lezcano authored
      The ux500 default config enables the db5500 and the db8500.
      The incoming cpuidle driver uses the 'prcmu_enable_wakeups'
      and the 'prcmu_set_power_state' functions but these ones
      are defined but not implemented for the db5500, leading to
      an unresolved symbol error at link time. In order to compile,
      we have to disable the db5500 support which is not acceptable
      for the default config.
      
      I noticed there are also some other functions which are
      defined but not implemented.
      
      This patch fix this by removing the functions definitions
      and move out of the config section the empty functions which
      are normally used when the DB550 config is disabled.
      Only the functions which are not implemented are concerned
      by this modification.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
      4accdff7
    • Linus Torvalds's avatar
      Linux 3.4-rc3 · e816b57a
      Linus Torvalds authored
      e816b57a
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm · 9a8e5d41
      Linus Torvalds authored
      Pull ARM fixes from Russell King:
       "Nothing too disasterous, the biggest thing being the removal of the
        regulator support for vcore in the AMBA driver; only one SoC was using
        this and it got broken during the last merge window, which then
        started causing problems for other people.  Mutual agreement was
        reached for it to be removed."
      
      * 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
        ARM: 7386/1: jump_label: fixup for rename to static_key
        ARM: 7384/1: ThumbEE: Disable userspace TEEHBR access for !CONFIG_ARM_THUMBEE
        ARM: 7382/1: mm: truncate memory banks to fit in 4GB space for classic MMU
        ARM: 7359/2: smp_twd: Only wait for reprogramming on active cpus
        ARM: 7383/1: nommu: populate vectors page from paging_init
        ARM: 7381/1: nommu: fix typo in mm/Kconfig
        ARM: 7380/1: DT: do not add a zero-sized memory property
        ARM: 7379/1: DT: fix atags_to_fdt() second call site
        ARM: 7366/3: amba: Remove AMBA level regulator support
        ARM: 7377/1: vic: re-read status register before dispatching each IRQ handler
        ARM: 7368/1: fault.c: correct how the tsk->[maj|min]_flt gets incremented
      9a8e5d41
    • Linus Torvalds's avatar
      x86-32: fix up strncpy_from_user() sign error · 12e993b8
      Linus Torvalds authored
      The 'max' range needs to be unsigned, since the size of the user address
      space is bigger than 2GB.
      
      We know that 'count' is positive in 'long' (that is checked in the
      caller), so we will truncate 'max' down to something that fits in a
      signed long, but before we actually do that, that comparison needs to be
      done in unsigned.
      
      Bug introduced in commit 92ae03f2 ("x86: merge 32/64-bit versions of
      'strncpy_from_user()' and speed it up").  On x86-64 you can't trigger
      this, since the user address space is much smaller than 63 bits, and on
      x86-32 it works in practice, since you would seldom hit the strncpy
      limits anyway.
      
      I had actually tested the corner-cases, I had only tested them on
      x86-64.  Besides, I had only worried about the case of a pointer *close*
      to the end of the address space, rather than really far away from it ;)
      
      This also changes the "we hit the user-specified maximum" to return
      'res', for the trivial reason that gcc seems to generate better code
      that way.  'res' and 'count' are the same in that case, so it really
      doesn't matter which one we return.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      12e993b8
  2. 15 Apr, 2012 12 commits
  3. 14 Apr, 2012 13 commits
  4. 13 Apr, 2012 7 commits