1. Aug 01, 2014
  2. Jul 29, 2014
    • Arnd Bergmann's avatar
      Merge tag 'omap-for-v3.17/mailbox-cleanup' of... · f64a3c89
      Arnd Bergmann authored
      Merge tag 'omap-for-v3.17/mailbox-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/drivers
      
      Merge "late omap mailbox clean-up, driver parts" from Tony Lindgren:
      
      Driver specific omap mailbox cleanup. Mostly to remove
      broken legacy code for omap1 and move things towards
      device tree.
      
      These patches were posted a while back, but I did not
      realize I was supposed to merge the driver related
      parts too. So apologies for a late pull request on
      these changes.
      
      * tag 'omap-for-v3.17/mailbox-cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap
      
      :
        mailbox/omap: add a parent structure for every IP instance
        mailbox/omap: remove the private mailbox structure
        mailbox/omap: consolidate OMAP mailbox driver
        mailbox/omap: simplify the fifo assignment by using macros
        mailbox/omap: remove omap_mbox_type_t from mailbox ops
        mailbox/omap: remove OMAP1 mailbox driver
        mailbox/omap: use devm_* interfaces
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      f64a3c89
    • Arnd Bergmann's avatar
      Merge branch 'omap-for-v3.17/mailbox' into next/drivers · 537994aa
      Arnd Bergmann authored
      
      
      This is a dependency for the mailbox driver code and gets
      merged through the soc branch
      
      * branch 'omap-for-v3.17/mailbox':
        ARM: AM33xx: hwmod_data: Remove legacy mailbox addrs
        ARM: OMAP4: hwmod_data: Remove legacy mailbox addrs
        ARM: OMAP2: hwmod_data: Remove legacy mailbox data and addrs
        ARM: OMAP2+: Avoid mailbox legacy device creation for DT-boot
        ARM: DRA7: hwmod_data: Add mailbox hwmod data
        ARM: dts: DRA7: Add mailbox nodes
        ARM: dts: AM4372: Correct mailbox node data
        ARM: dts: AM33xx: Add mailbox node
        ARM: dts: OMAP4: Add mailbox node
        ARM: dts: OMAP2+: Add mailbox fifo and user information
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      537994aa
    • Suman Anna's avatar
      mailbox/omap: add a parent structure for every IP instance · 72c1c817
      Suman Anna authored
      
      
      A new structure, omap_mbox_device, is added to contain
      the global variables pertinent to a mailbox h/w IP block.
      This enables the support for having multiple instances of
      the same h/w IP block in the SoC. This is in preparation
      to support the DRA7 SoC, which is the first SoC in the OMAP
      family to have multiple mailbox IP instances.
      
      The changes include enhancements to the sub-mailbox registration
      logic and mbox startup sequencing, removing the usage of single
      global configuration variables for all h/w instances, and storing
      the registered sub-mailboxes with the parent mailbox device
      structure.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      72c1c817
    • Suman Anna's avatar
      mailbox/omap: remove the private mailbox structure · be3322eb
      Suman Anna authored
      
      
      The structure omap_mbox_priv is used previously to store arch
      specific (OMAP1 vs OMAP2+) data, and is no longer required to be
      maintained separately. Instead, absorb its elements into either
      the sub-mailbox device structure, omap_mbox, or the individual
      fifo descriptor structure, omap_mbox_fifo.
      
      The newmsg_bit and notfull_bit used on Rx and Tx fifos respectively
      are represented by the new intr_bit field in the fifo descriptor
      structure. The interrupt configuration registers are also moved
      into the fifo descriptor structure to allow the Rx and Tx fifos
      to use different interrupt lines/users.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      be3322eb
    • Suman Anna's avatar
      mailbox/omap: consolidate OMAP mailbox driver · 5040f534
      Suman Anna authored
      
      
      There is no need for a separate common OMAP mailbox module
      now that the OMAP1 mailbox driver has been removed. So,
      consolidate the two individual OMAP mailbox modules into a
      single driver. This streamlines the driver for converting
      to mailbox framework.
      
      The following are the main changes:
      - collapse mailbox-omap2.c into omap-mailbox.c
      - remove omap_mbox_ops and replace the ops calls with
        the equivalent functionality.
      - simplify the sub-mailbox startup/shutdown functionality,
        the one-time operations are moved into probe, and the
        pm_runtime_get_sync and pm_runtime_put_sync can be invoked
        without using a configuration counter.
      - move all definitions from private omap_mbox.h into the
        source code, and eliminate this internal header.
      - rename some variables that used the omap2_mbox prefix with
        a generic omap_mbox prefix.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      5040f534
    • Suman Anna's avatar
      mailbox/omap: simplify the fifo assignment by using macros · ef45eae6
      Suman Anna authored
      
      
      The OMAP mailbox IP has two different type of interrupt configuration
      registers between OMAP4+ SoCs and OMAP2/3 SoCs. Simplify the current
      interrupt configuration by using a single macro that translates the
      two variants.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      ef45eae6
    • Suman Anna's avatar
      mailbox/omap: remove omap_mbox_type_t from mailbox ops · fe714a46
      Suman Anna authored
      
      
      The type definition omap_mbox_type_t used for distinguishing
      OMAP1 from OMAP2+ mailboxes is no longer needed after the
      removal of OMAP1 mailbox driver, and has therefore been
      cleaned up. This cleanup also eliminates the need for the
      polling logic used for checking the transmit readiness.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      fe714a46
    • Suman Anna's avatar
      mailbox/omap: remove OMAP1 mailbox driver · 79859094
      Suman Anna authored
      There are no existing users for OMAP1 mailbox driver
      in kernel. Commit ab6f7751
      
       "Removing dead OMAP_DSP"
      has cleaned up all the dead code related to the only
      possible user, including the creation of the mailbox
      platform device.
      
      Remove this stale driver so that the OMAP mailbox
      driver can be simplified and streamlined better for
      converting to mailbox framework.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Acked-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      79859094
    • Suman Anna's avatar
      mailbox/omap: use devm_* interfaces · 28299a47
      Suman Anna authored
      
      
      Use the various devm_ interfaces to simplify the cleanup in
      probe and remove functions in OMAP2+ mailbox driver.
      
      Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      28299a47
  3. Jul 24, 2014
  4. Jul 21, 2014
    • Viresh Kumar's avatar
      PCI: spear: Remove spear13xx_pcie_remove() · 779ae55b
      Viresh Kumar authored
      Following compilation warning occurs when compiled with:
      CONFIG_DEBUG_SECTION_MISMATCH=y
      
       WARNING: vmlinux.o(.init.data+0x3338): Section mismatch in reference from the
       variable spear13xx_pcie_driver to the function
       .exit.text:spear13xx_pcie_remove()
      
      This driver isn't allowed to unload, and so doesn't have a *_exit() routine. But
      it still has spear13xx_pcie_remove() marked with __exit.
      
      As this driver can't unload, .remove() would never be called, right? So get rid
      of it.
      
      Fixes: 51b66a6c
      
       (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx)
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      779ae55b
    • Viresh Kumar's avatar
      PCI: spear: Fix Section mismatch compilation warning for probe() · 6675ef21
      Viresh Kumar authored
      Following compilation warning occurs when compiled with:
      CONFIG_DEBUG_SECTION_MISMATCH=y
      
       WARNING: drivers/pci/host/built-in.o(.data+0xc0): Section mismatch in
       reference from the variable spear13xx_pcie_driver to the function
       .init.text:spear13xx_pcie_probe()
      
      Both .probe() and pcie_init() are marked with __init, but spear13xx_pcie_driver
      isn't. And so section mismatch.
      
      Fix it by marking spear13xx_pcie_driver with __initdata.
      
      Fixes: 51b66a6c
      
       (PCI: spear: Add PCIe driver for ST Microelectronics SPEAr13xx)
      Reported-by: default avatarOlof Johansson <olof@lixom.net>
      Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      6675ef21
  5. Jul 20, 2014
    • Olof Johansson's avatar
      Merge tag 'tegra-for-3.17-pcie-regulators' of... · b776eec1
      Olof Johansson authored
      Merge tag 'tegra-for-3.17-pcie-regulators' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers
      
      Merge "ARM: tegra: rework PCIe regulators" from Thierry Reding:
      
      This branch reworks the set of regulators that the Tegra PCIe driver
      uses, so that the driver and DT bindings more correctly model what's
      really going on in HW. For backwards-compatibility the driver will
      fallback to using the old set of regulators if the new ones can't be
      found.
      
      I've made this a separate branch in case it needs to be pulled into the
      PCIe tree to resolve any conflicts.
      
      * tag 'tegra-for-3.17-pcie-regulators' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux
      
      :
        ARM: tegra: Remove legacy PCIe power supply properties
        PCI: tegra: Remove deprecated power supply properties
        PCI: tegra: Implement accurate power supply scheme
        ARM: tegra: Add new PCIe regulator properties
        PCI: tegra: Overhaul regulator usage
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      b776eec1
  6. Jul 19, 2014
  7. Jul 18, 2014
  8. Jul 15, 2014
  9. Jul 14, 2014
  10. Jul 13, 2014
    • Olof Johansson's avatar
      Merge tag 'at91-drivers' of git://github.com/at91linux/linux-at91 into next/drivers · bde19a7e
      Olof Johansson authored
      Merge "at91: drivers for 3.17 #1" from Nicolas Ferre:
      
      "This update delayed to 3.17, is about replacing the existing calls to the
      older, non-standard drivers by the use of the newer "pwm-atmel" which takes
      advantage of the PWM framework.
      All concerned maintainer gave their acknowledgement to the relevant patches.
      At the end, it removes three obsolete drivers and the diffstat looks pretty
      nice as well."
      
      Atmel PWM driver update for 3.17
      - move to the new PWM driver which uses PWM framework
      - remove 3 obsolete drivers (atmel-pwm-bl.c, leds-atmel-pwm.c and atmel_pwm.c)
      
      * tag 'at91-drivers' of git://github.com/at91linux/linux-at91
      
      :
        misc: atmel_pwm: remove obsolete driver
        leds: atmel-pwm: remove obsolete driver
        backlight: atmel-pwm-bl: remove obsolete driver
        avr32: update defconfig to use the generic PWM framework
        avr32: favr-32: use generic pwm_bl driver
        avr32: merisc: use generic leds_pwm driver
        avr32: MRMT: use generic leds_pwm driver
        avr32/at32ap: switch to the generic PWM framework
        PWM: atmel: allow building for AVR32
        ARM: at91: remove useless at91_pwm_leds()
        ARM: at91: at91sam9rl: switch to generic PWM framework
        ARM: at91: sam9263ek: use generic leds_pwm driver
        ARM: at91: at91sam9263: switch to generic PWM framework
        ARM: at91: sam9m10g45ek: use generic leds_pwm driver
        ARM: at91: at91sam9g45: switch to generic PWM framework
      
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      bde19a7e
  11. Jul 09, 2014