linux/arch/arm/mach-sa1100
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: 8278/1: sa1100: split irq handling for low GPIOs 2015-01-29 15:24:46 +00:00
Kconfig ARM: 8136/1: sa1100: add Micro ASIC platform device 2014-09-12 17:39:50 +01:00
Makefile ARM: 8252/1: sa1100: use pxa_timer clocksource driver 2015-01-14 11:28:37 +00:00
Makefile.boot ARM: sa1100: fix build error 2011-12-08 14:55:57 +08:00
assabet.c arm: sa1100: move irda header to linux/platform_data 2014-12-30 18:44:07 -05:00
badge4.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
cerf.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
clock.c ARM: 8250/1: sa1100: provide OSTIMER0 clock for pxa_timer 2015-01-14 11:28:22 +00:00
collie.c Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-arm 2015-02-12 08:51:56 -08:00
generic.c ARM: 8252/1: sa1100: use pxa_timer clocksource driver 2015-01-14 11:28:37 +00:00
generic.h cpufreq: Implement light weight ->target_index() routine 2013-10-25 22:42:24 +02:00
h3xxx.c ARM: 8136/1: sa1100: add Micro ASIC platform device 2014-09-12 17:39:50 +01:00
h3100.c arm: sa1100: move irda header to linux/platform_data 2014-12-30 18:44:07 -05:00
h3600.c arm: sa1100: move irda header to linux/platform_data 2014-12-30 18:44:07 -05:00
hackkit.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
irq.c ARM: 8282/1: sa1100: use handle_domain_irq 2015-01-29 15:24:50 +00:00
jornada720.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
jornada720_ssp.c ARM: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
lart.c arm-soc: cleanups 2013-02-21 14:58:40 -08:00
nanoengine.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
neponset.c net: smc91x: use run-time configuration on all ARM machines 2015-02-28 12:56:56 -05:00
pci-nanoengine.c ARM: sa1100: Convert PCI to use generic config accessors 2015-01-30 16:14:43 -06:00
pleb.c net: smc91x: use run-time configuration on all ARM machines 2015-02-28 12:56:56 -05:00
pm.c ARM: 8284/1: sa1100: clear RCSR_SMR on resume 2015-01-29 15:24:53 +00:00
shannon.c ARM: delete struct sys_timer 2012-12-24 09:36:38 -07:00
simpad.c ARM: 7865/1: sa1100: fix simpad compilation warning 2013-10-29 11:01:01 +00:00
sleep.S ARM: 7452/1: delay: allow timer-based delay implementation to be selected 2012-07-09 17:42:23 +01:00
ssp.c ARM: 7342/2: sa1100: prepare for sparse irq conversion 2012-03-25 23:57:20 +01:00