All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/2] stmmac: stand alone platform drivers
@ 2015-05-07 18:19 ` Joachim Eastwood
  0 siblings, 0 replies; 14+ messages in thread
From: Joachim Eastwood @ 2015-05-07 18:19 UTC (permalink / raw)
  To: arnd; +Cc: peppe.cavallaro, netdev, davem, linux-arm-kernel, Joachim Eastwood

Hi Arnd,

I ran into some issue using a separate platform driver[1] for lpc1850-dwmac.

My dts files looks like this.
mac: ethernet@40010000 {
	compatible = "nxp,lpc1850-dwmac", "snps,dwmac-3.611", "snps,dwmac";
	...
}

On boot the generic driver in stmmac_platform.c would grab the
device, matching on one of generic compat strings and thus blocking
the lpc1850-dwmac driver.

By changing the build order in the Makefile (see patch 1) I managed
to get it working, but I am not sure that is a good solution(?).

Another fix would be to remove the generic compat strings from the
match table in stmmac_platform but there are some dts-files that
only have these compat strings.
See abilis_tb10x.dtsi and exynos5440.dtsi.

I could also remove the generic compat strings from my dts file but
I am not sure that is good solution either. If more glue is
converted this would then be need in those dts files also.


Any advice on how to handle this situation?


[1] http://marc.info/?l=linux-arm-kernel&m=143076781409270&w=2

Joachim Eastwood (2):
  stmac: support standalone platform drivers
  stmac: add dwmac glue for NXP 18xx/43xx family

 drivers/net/ethernet/stmicro/stmmac/Makefile       | 11 ++-
 .../net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c    | 98 ++++++++++++++++++++++
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 14 ++--
 .../net/ethernet/stmicro/stmmac/stmmac_platform.h  |  4 +
 4 files changed, 120 insertions(+), 7 deletions(-)
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-lpc18xx.c

-- 
1.8.0

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-05-12 20:31 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07 18:19 [PATCH RFC 0/2] stmmac: stand alone platform drivers Joachim Eastwood
2015-05-07 18:19 ` Joachim Eastwood
2015-05-07 18:19 ` [PATCH RFC 1/2] stmac: support standalone " Joachim Eastwood
2015-05-07 18:19   ` Joachim Eastwood
2015-05-07 18:19 ` [PATCH RFC 2/2] stmac: add dwmac glue for NXP 18xx/43xx family Joachim Eastwood
2015-05-07 18:19   ` Joachim Eastwood
2015-05-08 13:30 ` [PATCH RFC 0/2] stmmac: stand alone platform drivers Arnd Bergmann
2015-05-08 13:30   ` Arnd Bergmann
2015-05-12 17:20   ` Joachim Eastwood
2015-05-12 17:20     ` Joachim Eastwood
2015-05-12 19:49     ` Arnd Bergmann
2015-05-12 19:49       ` Arnd Bergmann
2015-05-12 20:31       ` Joachim Eastwood
2015-05-12 20:31         ` Joachim Eastwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.