linux/arch/arm/mach-msm
Arnd Bergmann b70661c708 net: smc91x: use run-time configuration on all ARM machines
The smc91x driver traditionally gets configured at compile-time
for whichever hardware it runs on. This no longer works on
ARM as we continue to move to building all-in-one kernels.

Most ARM configurations with this driver already use run-time
configuration through DT or through platform_data, but a
few have not been converted yet.

I've checked all ARM boards that use this driver in their
legacy board files, and converted the ones that were using
compile-time configuration in smc91x.h to behave like the
other ones and provide the interrupt polarity along with
the MMIO configuration (width, stride) at platform device
creation time.

In particular, these combinations were previously selectable
in Kconfig but in fact broken:

- sa1100 assabet plus pleb
- msm combined with any other armv6/v7 platform
- pxa-idp combined with any non-DMA pxa variant
- LogicPD PXA270 combined with any other pxa
- nomadik combined with any other armv4/v5 platform,
  e.g. versatile.

None of these seem critical enough to warrant a backport
to stable, but it would be nice to clean this up for good.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
----
I would like the patch to get merged through netdev, after
Robert and/or Linus have verified it on at least some hardware.

There are a few other non-ARM platforms using this driver,
I could do the same patch for those if we want to take
it further.

 arch/arm/mach-msm/board-halibut.c    |   8 ++++-
 arch/arm/mach-msm/board-qsd8x50.c    |   8 ++++-
 arch/arm/mach-pxa/idp.c              |   5 +++
 arch/arm/mach-pxa/lpd270.c           |   8 ++++-
 arch/arm/mach-realview/core.c        |   7 ++++
 arch/arm/mach-realview/realview_eb.c |   2 +-
 arch/arm/mach-sa1100/neponset.c      |   6 ++++
 arch/arm/mach-sa1100/pleb.c          |   7 ++++
 drivers/net/ethernet/smsc/smc91x.c   |   9 +++--
 drivers/net/ethernet/smsc/smc91x.h   | 114 ++----------------------------------------------------------
 10 files changed, 57 insertions(+), 117 deletions(-)
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-28 12:56:56 -05:00
..
include/mach ARM: drop <mach/timex.h> for !ARCH_MULTIPLATFORM, too 2013-12-20 17:17:16 +01:00
board-halibut.c net: smc91x: use run-time configuration on all ARM machines 2015-02-28 12:56:56 -05:00
board-msm7x30.c ARM: msm: remove reference to MSM_SERIAL_DEBUGGER 2014-08-24 20:09:36 +02:00
board-qsd8x50.c net: smc91x: use run-time configuration on all ARM machines 2015-02-28 12:56:56 -05:00
board-sapphire.c ARM: 8025/1: Get rid of meminfo 2014-06-01 01:17:12 +01:00
board-trout-gpio.c ARM: msm: Update the references to DEBUG_MSM_UARTx 2014-08-24 20:09:36 +02:00
board-trout-mmc.c
board-trout-panel.c
board-trout.c ARM: msm: Update the references to DEBUG_MSM_UARTx 2014-08-24 20:09:36 +02:00
board-trout.h ARM: msm: Silence readb/writeb warnings due to missing IOMEM() 2014-05-27 11:42:59 -07:00
clock-pcom.c ARM: mach-msm: drop owner assignment from platform_drivers 2014-10-20 16:20:03 +02:00
clock-pcom.h
clock.c
clock.h
common.h ARM: qcom: Re-organize platsmp to make it extensible 2014-02-11 15:00:37 -06:00
devices-msm7x00.c
devices-msm7x30.c ARM: SoC cleanups for 3.12 2013-09-06 13:21:16 -07:00
devices-qsd8x50.c ARM: SoC cleanups for 3.12 2013-09-06 13:21:16 -07:00
devices.h
dma.c ARM: msm: export legacy DMA interfaces 2014-03-21 18:23:32 +01:00
gpiomux-8x50.c
gpiomux-v1.h
gpiomux.c
gpiomux.h
io.c ARM: msm: Update the references to DEBUG_MSM_UARTx 2014-08-24 20:09:36 +02:00
irq-vic.c
irq.c
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2014-08-06 21:03:53 -07:00
last_radio_log.c
Makefile ARM: qcom: Split Qualcomm support into legacy and multiplatform 2014-02-06 16:20:26 -06:00
Makefile.boot
proc_comm.c
proc_comm.h
sirc.c
smd_debug.c
smd_private.h
smd.c ARM: mach-msm: drop owner assignment from platform_drivers 2014-10-20 16:20:03 +02:00
vreg.c