devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] support smc91x on mainstone and devicetree
@ 2016-10-15 19:27 Robert Jarzmik
  2016-10-15 19:27 ` [PATCH v2 1/3] net: smc91x: isolate u16 writes alignment workaround Robert Jarzmik
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Robert Jarzmik @ 2016-10-15 19:27 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Nicolas Pitre,
	Russell King - ARM Linux, Arnd Bergmann
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Robert Jarzmik

This serie aims at bringing support to mainstone board on a device-tree based
build, as what is already in place for legacy mainstone.

The bulk of the mainstone "specific" behavior is that a u16 write doesn't work
on a address of the form 4*n + 2, while it works on 4*n.

The legacy workaround was in SMC_outw(), with calls to
machine_is_mainstone(). These calls don't work with a pxa27x-dt machine type,
which is used when a generic device-tree pxa27x machine is used to boot the
mainstone board.

Therefore, this serie enables the smc91c111 adapter of the mainstone board to
work on a device-tree build, exaclty as it's been working for years with the
legacy arch/arm/mach-pxa/mainstone.c definition.

Cheers.

--
Robert

Robert Jarzmik (3):
  net: smc91x: isolate u16 writes alignment workaround
  net: smc91x: take into account half-word workaround
  net: smsc91x: add u16 workaround for pxa platforms

 .../devicetree/bindings/net/smsc-lan91c111.txt     |  2 +
 drivers/net/ethernet/smsc/smc91x.c                 |  8 ++-
 drivers/net/ethernet/smsc/smc91x.h                 | 78 ++++++++++++----------
 3 files changed, 52 insertions(+), 36 deletions(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-10-16 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-15 19:27 [PATCH v2 0/3] support smc91x on mainstone and devicetree Robert Jarzmik
2016-10-15 19:27 ` [PATCH v2 1/3] net: smc91x: isolate u16 writes alignment workaround Robert Jarzmik
     [not found]   ` <1476559670-25056-2-git-send-email-robert.jarzmik-GANU6spQydw@public.gmane.org>
2016-10-15 21:11     ` Robert Jarzmik
2016-10-16 10:05   ` Robert Jarzmik
2016-10-15 19:27 ` [PATCH v2 2/3] net: smc91x: take into account half-word workaround Robert Jarzmik
2016-10-15 19:27 ` [PATCH v2 3/3] net: smsc91x: add u16 workaround for pxa platforms Robert Jarzmik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).