linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Device tree aware EMAC driver
@ 2007-05-30  6:17 David Gibson
  0 siblings, 0 replies; 13+ messages in thread
From: David Gibson @ 2007-05-30  6:17 UTC (permalink / raw)
  To: linuxppc-dev

This is BenH's rewritten, device tree aware driver for the IBM/AMCC
EMAC, ethernet MAC controller ASIC found on various 4xx CPUs and also
the Axon bridge.
	- Updated to build on current kernels
	- Removed device_type matching requirement on MAL and ZMII, to
match current best practice of omitting device_type unless a
well-defined class binding exists.
	- Added documentation to booting-without-of.txt for the EMAC
binding.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>

Download from:

http://ozlabs.org/~dgibson/home/emac/powerpc-emac-new-20070530.patch

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Device tree aware EMAC driver
@ 2007-08-07  6:22 David Gibson
  2007-08-07 12:15 ` Josh Boyer
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: David Gibson @ 2007-08-07  6:22 UTC (permalink / raw)
  To: Paul Mackerras, Benjamin Herrenschmidt, Josh Boyer, Jon Loeliger,
	linuxppc-dev

Based on BenH's earlier work, this is a new version of the EMAC driver
for the built-in ethernet found on PowerPC 4xx embedded CPUs.  The
same ASIC is also found in the Axon bridge chip.  This new version is
designed to work in the arch/powerpc tree, using the device tree to
probe the device, rather than the old and ugly arch/ppc OCP layer.

This driver is designed to sit alongside the old driver (it lies in
drivers/net/ibm_emac and this one in drivers/net/ibm_newemac).  The
old driver is left in place to support arch/ppc until arch/ppc itself
reaches its final demise (not too long now, with luck).

This driver still has a number of things that could do with cleaning
up, but I think they can be fixed up after merging.  Specifically:
	- Should be adjusted to properly use the dma mapping API.
Axon needs this.
	- Probe logic needs reworking, in conjuction with the general
probing code for of_platform devices.  The dependencies here between
EMAC, MAL, ZMII etc. make this complicated.  At present, it usually
works, because we initialize and register the sub-drivers before the
EMAC driver itself, and (being in driver code) runs after the devices
themselves have been instantiated from the device tree.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
---

Paul, I discussed with BenH, and although there are some problems with
the driver still, we think it's good enough to merge in 2.6.24, the
warts can be fixed up later.

Too big for the list, patch is at:
	http://ozlabs.org/~dgibson/home/emac/powerpc-emac-new-20070807.patch

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <20070823035601.GL7042@localhost.localdomain>]

end of thread, other threads:[~2007-09-14 23:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-30  6:17 Device tree aware EMAC driver David Gibson
  -- strict thread matches above, loose matches on Subject: below --
2007-08-07  6:22 David Gibson
2007-08-07 12:15 ` Josh Boyer
2007-08-08  1:18   ` David Gibson
2007-08-08  3:16 ` Tony Breeds
2007-08-08  5:09   ` David Gibson
2007-08-08  7:34     ` Benjamin Herrenschmidt
2007-08-08  7:33   ` Benjamin Herrenschmidt
2007-08-10 20:39   ` Segher Boessenkool
2007-08-13  1:05     ` David Gibson
2007-08-11  3:51 ` Olof Johansson
     [not found] <20070823035601.GL7042@localhost.localdomain>
2007-08-23  7:30 ` Benjamin Herrenschmidt
2007-09-14 22:37   ` Josh Boyer

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).