Skip to content

SA11x0 cleanups (mainly assabet/neponset)

Russell King - ARM Linux linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17ARM: sa11x0: convert to use DEFINE_RES_xxx macrosarch/arm/mach-sa1100/assabet.c arch/arm/mach-sa1100/badge4.c arch/arm/mach-sa1100/cerf.c +12 more+61 -2570 replies
2/17ARM: sa11x0: assabet: deassert QMUTE to codec while codec is unpoweredarch/arm/mach-sa1100/assabet.c+2 -20 replies
3/17ARM: sa11x0: assabet: avoid glitching GPIOs when setting outputsarch/arm/mach-sa1100/assabet.c+2 -20 replies
4/17ARM: sa11x0: assabet: ensure that GPIO27 is drivenarch/arm/mach-sa1100/assabet.c+8 -00 replies
5/17ARM: sa11x0: neponset: fix interrupt setuparch/arm/mach-sa1100/neponset.c+19 -20 replies
6/17ARM: sa11x0: neponset: provide function to manipulate NCR_0arch/arm/mach-sa1100/include/mach/neponset.h arch/arm/mach-sa1100/neponset.c drivers/net/ethernet/smsc/smc91x.c +1 more+15 -70 replies
7/17ARM: sa11x0: neponset: shuffle some code aroundarch/arm/mach-sa1100/neponset.c+101 -1010 replies
8/17ARM: sa11x0: neponset: add driver .owner initializerarch/arm/mach-sa1100/neponset.c+1 -00 replies
9/17ARM: sa11x0: neponset: save and restore MDM_CTL_0arch/arm/mach-sa1100/neponset.c+42 -110 replies
10/17ARM: sa11x0: neponset: dynamically create neponset child devicesarch/arm/mach-sa1100/neponset.c+28 -280 replies
11/17ARM: sa11x0: neponset: implement support for sparse IRQsarch/arm/mach-sa1100/include/mach/irqs.h arch/arm/mach-sa1100/neponset.c+61 -580 replies
12/17ARM: sa11x0: neponset: get parent IRQ from neponset device resourcearch/arm/mach-sa1100/neponset.c+13 -70 replies
13/17ARM: sa11x0: neponset: place smc91x and sa1111 resources in neponset devicearch/arm/mach-sa1100/neponset.c+13 -00 replies
14/17ARM: sa11x0: neponset: suspend/resume in _noirq statearch/arm/mach-sa1100/neponset.c+15 -90 replies
15/17ARM: sa11x0: assabet/neponest: create neponset device in assabet.carch/arm/mach-sa1100/assabet.c arch/arm/mach-sa1100/neponset.c+25 -430 replies
16/17ARM: sa11x0: neponset: move register definitions to neponset.carch/arm/mach-sa1100/include/mach/neponset.h arch/arm/mach-sa1100/neponset.c+91 -710 replies
17/17ARM: sa11x0: neponset: don't static map neponset registersarch/arm/mach-sa1100/neponset.c+1 -60 replies

Reviews trailers per patch

None of the 17 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNicolas Pitre
SeriesA-b
1/17
2/17
3/17
4/17
5/17
6/17
7/17
8/17
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/17] SA11x0 cleanups (mainly assabet/neponset)

This is a series of cleanups and improvements to the SA11x0 code, in particular the Assabet, and Assabet with the Neponset daughter board.

The main SA11x0 change is to switch to using the DEFINE_RES_xxx() for resources, which obviously reduces the lines of code quite a bit.

The Assabet-only changes reduce power consumption of the board, and illustrate why pins left as inputs when they're supposed to be outputs are bad news - while it's undriven, it floats and increases the power consumption by a measurable amount.

Neponset wise, there's fixes in here to restore it to fully working state (rather than just being buildable.) Unfortunately, genirq had seriously broken the Neponset interrupt support code by genirq having some 'improved checks' added without auditing the genirq users.

Neponset also gets ready for sparse IRQ support, meaning that its interrupt numbers are no longer statically fixed. We also move the registration of the neponset device to assabet, which helps reduce the knowledge spread of whether the board is fitted.

The random places which the NCR_0 board register is written are turned into a function call instead, so that the NCR_0 register access can be centralized and properly protected against concurrent access for this platform.

Since neponset becomes mostly self-contained, most of the boards CPLD register definitions are moved to the board file rather than exposing them in the board header file. That then paves the way to get rid of its static mapping for its own registers, using ioremap() instead.

 arch/arm/mach-sa1100/assabet.c               |   39 ++-
 arch/arm/mach-sa1100/badge4.c                |   19 +-
 arch/arm/mach-sa1100/cerf.c                  |   13 +-
 arch/arm/mach-sa1100/collie.c                |   24 +-
 arch/arm/mach-sa1100/generic.c               |   93 +----
 arch/arm/mach-sa1100/h3xxx.c                 |   13 +-
 arch/arm/mach-sa1100/hackkit.c               |    7 +-
 arch/arm/mach-sa1100/include/mach/irqs.h     |    8 -
 arch/arm/mach-sa1100/include/mach/neponset.h |   52 +---
 arch/arm/mach-sa1100/irq.c                   |    7 +-
 arch/arm/mach-sa1100/jornada720.c            |   31 +--
 arch/arm/mach-sa1100/nanoengine.c            |   11 +-
 arch/arm/mach-sa1100/neponset.c              |  534 +++++++++++++++-----------
 arch/arm/mach-sa1100/pci-nanoengine.c        |    8 +-
 arch/arm/mach-sa1100/pleb.c                  |   24 +-
 arch/arm/mach-sa1100/shannon.c               |    7 +-
 arch/arm/mach-sa1100/simpad.c                |   11 +-
 drivers/net/ethernet/smsc/smc91x.c           |    2 +-
 drivers/pcmcia/sa1100_neponset.c             |    7 +-
 19 files changed, 402 insertions(+), 508 deletions(-)