1. 05 Aug, 2015 1 commit
    • Olof Johansson's avatar
      Merge branch 'queue/irq/arm' of... · 39aa437e
      Olof Johansson authored
      Merge branch 'queue/irq/arm' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next/cleanup
      
      Merge "ARM: Interrupt cleanups and API change preparation" from Thomas
      Gleixner:
      
      The following patch series contains the following changes:
      
          - Consolidation of chained interrupt handler setup/removal
      
          - Switch to functions which avoid a redundant interrupt
            descriptor lookup
      
          - Preparation of interrupt flow handlers for the 'irq' argument
            removal
      
      * 'queue/irq/arm' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        ARM/orion/gpio: Prepare gpio_irq_handler for irq argument removal
        ARM/pxa: Prepare balloon3_irq_handler for irq argument removal
        ARM/pxa: Prepare *_irq_handler for irq argument removal
        ARM/dove: Prepare pmu_irq_handler for irq argument removal
        ARM/sa1111: Prepare sa1111_irq_handler for irq argument removal
        ARM/locomo: Prepare locomo_handler for irq argument removal
        ARM, irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
        ARM/LPC32xx: Use irq_set_handler_locked()
        ARM/irq: Use access helper irq_data_get_affinity_mask()
        ARM/locomo: Consolidate chained IRQ handler install/remove
        ARM/orion: Consolidate chained IRQ handler install/remove
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      39aa437e
  2. 28 Jul, 2015 2 commits
    • Rob Herring's avatar
      ARM: kill off set_irq_flags usage · e8d36d5d
      Rob Herring authored
      set_irq_flags is ARM specific with custom flags which have genirq
      equivalents. Convert drivers to use the genirq interfaces directly, so we
      can kill off set_irq_flags. The translation of flags is as follows:
      
      IRQF_VALID -> !IRQ_NOREQUEST
      IRQF_PROBE -> !IRQ_NOPROBE
      IRQF_NOAUTOEN -> IRQ_NOAUTOEN
      
      For IRQs managed by an irqdomain, the irqdomain core code handles clearing
      and setting IRQ_NOREQUEST already, so there is no need to do this in
      .map() functions and we can simply remove the set_irq_flags calls. Some
      users also modify IRQ_NOPROBE and this has been maintained although it
      is not clear that is really needed. There appears to be a great deal of
      blind copy and paste of this code.
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Sekhar Nori <nsekhar@ti.com>
      Cc: Kevin Hilman <khilman@deeprootsystems.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Andrew Lunn <andrew@lunn.ch>
      Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
      Cc: Gregory Clement <gregory.clement@free-electrons.com>
      Acked-by: default avatarHans Ulli Kroll <ulli.kroll@googlemail.com>
      Acked-by: default avatarShawn Guo <shawnguo@kernel.org>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Cc: Imre Kaloz <kaloz@openwrt.org>
      Acked-by: default avatarKrzysztof Halasa <khalasa@piap.pl>
      Cc: Greg Ungerer <gerg@uclinux.org>
      Cc: Roland Stigge <stigge@antcom.de>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Daniel Mack <daniel@zonque.org>
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      Cc: Robert Jarzmik <robert.jarzmik@free.fr>
      Cc: Simtec Linux Team <linux@simtec.co.uk>
      Cc: Kukjin Kim <kgene@kernel.org>
      Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
      Acked-by: default avatarWan ZongShun <mcuos.com@gmail.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-omap@vger.kernel.org
      Cc: linux-samsung-soc@vger.kernel.org
      Tested-by: default avatarKevin Hilman <khilman@linaro.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      e8d36d5d
    • Nicolas Pitre's avatar
      ARM: appropriate __init annotation for const data · 19c233b7
      Nicolas Pitre authored
      Init data marked const should be annotated with __initconst for
      correctness and not __initdata.  In some cases the array gathering
      references to that data has to be marked const as well. This fixes
      LTO builds that otherwise fail with section mismatch errors.
      Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      19c233b7
  3. 27 Jul, 2015 1 commit
  4. 22 Jul, 2015 1 commit
    • Olof Johansson's avatar
      Merge tag 'omap-for-v4.3/legacy-v2-signed' of... · 9521f492
      Olof Johansson authored
      Merge tag 'omap-for-v4.3/legacy-v2-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup
      
      Merge "drop few more legacy boards for v4.3" from Tony Lindgren:
      
      Drop more omap3 legacy board-*.c files for v4.3. This time we're
      dropping the board files for omap3logic and omap3pandora.
      
      The reason for dropping these now rather than later is that now
      we can simply revert the patches in case of unexpected issues as
      we are not dropping any platform data at this point.
      
      This leaves us with only the following board-*.c files:
      
      BOARD                   REASON NEEDED
      board-ldp.c             Still used in RMKs boot test system
      board-rx51-*.c          Needs /proc/atags support for user space
      
      Once we have the n900 legacy user space issues sorted out for
      /proc/atags and system_rev, we can drop the remaining two
      board-*.c files. And then one merge window after that we can
      drop the legacy booting support assuming no unexpected issues
      are found.
      
      * tag 'omap-for-v4.3/legacy-v2-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
        ARM: OMAP2+: Remove legacy booting support for Pandora
        ARM: OMAP2+: Remove legacy booting support for LogicPD Torpedo
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      9521f492
  5. 17 Jul, 2015 28 commits
  6. 16 Jul, 2015 1 commit
    • Tony Lindgren's avatar
      ARM: OMAP2+: Remove legacy booting support for Pandora · 7fcf7e06
      Tony Lindgren authored
      We've been moving all omap2+ based systems to boot in device tree only
      mode for a few years now. Only omap3 has legacy booting support
      remaining. Most omap3 boards already have related arch/arm/boot/*.dts*
      files for booting with device tree.
      
      This board has support for device tree based booting, and we've been
      printing warnings about the legacy booting being deprecated for a
      few merge cycles now. Let's attempt to remove the legacy booting
      for it.
      
      The reason for removing the legacy booting support now rather than
      later is we can simply revert this patch if necessary if we run
      into some unexpected issues that are not trivial to fix for the
      device tree based booting.
      
      Cc: Grazvydas Ignotas <notasas@gmail.com>
      Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
      7fcf7e06
  7. 14 Jul, 2015 3 commits
    • Olof Johansson's avatar
      Merge tag 'renesas-pm-domain-for-v4.3' of... · b3f81739
      Olof Johansson authored
      Merge tag 'renesas-pm-domain-for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/cleanup
      
      Merge "Renesas ARM Based SoC PM Domain Updates for v4.3" from Simon Horman:
      
      * Make rcar_sysc_ch const for r8a779[09] SoCs
      * Get rid of on_off_fn() function pointer
      * Use BIT() macro instead of open coding
      * Make struct rcar_sysc_ch * parameters const
      * Break infinite loop
      * Shrink rcar_sysc_ch size
      * Improve documentation
      
      * tag 'renesas-pm-domain-for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
        ARM: shmobile: r8a7790: Make struct rcar_sysc_ch const
        ARM: shmobile: r8a7779: Make struct rcar_sysc_ch const
        ARM: shmobile: R-Car: Get rid of on_off_fn() function pointer
        ARM: shmobile: R-Car: Use BIT() macro instead of open coding
        ARM: shmobile: R-Car: Make struct rcar_sysc_ch * parameters const
        ARM: shmobile: R-Car: Break infinite loop
        ARM: shmobile: R-Car: Shrink rcar_sysc_ch size
        ARM: shmobile: R-Car: Improve documentation
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      b3f81739
    • Olof Johansson's avatar
      Merge tag 'renesas-cleanup-for-v4.3' of... · 63f34693
      Olof Johansson authored
      Merge tag 'renesas-cleanup-for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into next/cleanup
      
      Merge "Renesas ARM Based SoC Cleanup for v4.3" from Simon Horman:
      
      * Remove non-multiplatform code from timer
      * Remove CONFIG_ARCH_SHMOBILE_MULTI check in setup-rcar-gen2.c
        as it is always true
      * Remove legacy (non-multiplatform) support for both sh73a0/kzm9g and
        r8a7740/armadillo800eva
      * Move to_rmobile_pd from header to source file where it is used
      * Use BIT() macro instead of open coding in r-mobile PM code
      * r8a7779: Remove usage of GENPD_FLAG_PM_CLK flag which has no effect
      
      * tag 'renesas-cleanup-for-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
        ARM: shmobile: timer: r8a73a4 and r8a7790 are multi-platform only
        ARM: shmobile: R-Car Gen2: CONFIG_ARCH_SHMOBILE_MULTI is always set
        ARM: shmobile: Remove obsolete zboot support
        ARM: shmobile: R-Mobile: Remove legacy PM Domain code
        ARM: shmobile: Remove unused dma-register.h
        ARM: shmobile: Remove legacy SoC code for R-Mobile A1
        ARM: shmobile: Drop r8a7740-armadillo800eva.dtb for legacy builds
        ARM: shmobile: Remove legacy armadillo800eva_defconfig
        ARM: shmobile: Remove legacy board code for Armadillo-800 EVA
        ARM: shmobile: Remove legacy SoC code for SH-Mobile AG5
        ARM: shmobile: Drop sh73a0-kzm9g.dtb for legacy builds
        ARM: shmobile: Remove legacy kzm9g_defconfig
        ARM: shmobile: Remove legacy board code for KZM-A9-GT
        ARM: shmobile: r8a7779: Remove GENPD_FLAG_PM_CLK flag
        ARM: shmobile: R-Mobile: Use BIT() macro instead of open coding
        ARM: shmobile: R-Mobile: Move to_rmobile_pd from header to source file
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      63f34693
    • Wolfram Sang's avatar
      ARM: shmobile: apmu: silence build warnings · 151dd346
      Wolfram Sang authored
      With shmobile_defconfig but SMP=n && SUSPEND=n, I get:
      
      arch/arm/mach-shmobile/platsmp-apmu.c:49:12: warning: 'apmu_power_off' defined but not used [-Wunused-function]
      arch/arm/mach-shmobile/platsmp-apmu.c:70:12: warning: 'apmu_wrap' defined but not used [-Wunused-function]
      
      Annotate those functions like the functions around it.
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      151dd346
  8. 13 Jul, 2015 3 commits
    • Thomas Gleixner's avatar
      ARM/orion/gpio: Prepare gpio_irq_handler for irq argument removal · f4acd122
      Thomas Gleixner authored
      The irq argument of most interrupt flow handlers is unused or merily
      used instead of a local variable. The handlers which need the irq
      argument can retrieve the irq number from the irq descriptor.
      
      In this case the irq argument is shadowed by a local variable already,
      so just rename it.
      
      Search and update was done with coccinelle and the invaluable help of
      Julia Lawall.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Russell King <linux+kernel@arm.linux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      f4acd122
    • Thomas Gleixner's avatar
      ARM/pxa: Prepare balloon3_irq_handler for irq argument removal · 9ec97561
      Thomas Gleixner authored
      The irq argument of most interrupt flow handlers is unused or merily
      used instead of a local variable. The handlers which need the irq
      argument can retrieve the irq number from the irq descriptor.
      
      While at it fix the pointless lookup of irq_data with the proper
      methods to retrieve the same information from the irq descriptor.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Russell King <linux+kernel@arm.linux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      9ec97561
    • Thomas Gleixner's avatar
      ARM/pxa: Prepare *_irq_handler for irq argument removal · 6947d04a
      Thomas Gleixner authored
      The irq argument of most interrupt flow handlers is unused or merily
      used instead of a local variable. The handlers which need the irq
      argument can retrieve the irq number from the irq descriptor.
      
      Search and update was done with coccinelle and the invaluable help of
      Julia Lawall.
      Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Cc: Jiang Liu <jiang.liu@linux.intel.com>
      Cc: Russell King <linux+kernel@arm.linux.org.uk>
      Cc: linux-arm-kernel@lists.infradead.org
      6947d04a