Merge branch 'at91'
authorDavid S. Miller <davem@davemloft.net>
Fri, 19 Oct 2012 17:47:00 +0000 (13:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Oct 2012 17:47:00 +0000 (13:47 -0400)
commit4ce5a8a5ab0739b955c031741384a37ee3eea642
tree11411cf95c51cc7e4efe2652901a6af496b1848b
parent8c5856ece23716f9f3207e2c834c1f3257ba3c00
parent31e6da26e88e8df3419490f25c3518ec124ece18
Merge branch 'at91'

Joachim Eastwood says;

====================
This patch series prepares the old at91_ether driver for code sharing
with the macb driver. The hardware is similar except for DMA TX/RX, so
its not quite clear if it is practical to support both in one
driver. But stuff like MDIO and statistics should be possible to
share.

Patch 1 adds some register defines and bits that is only found on
RM9200.

Patch 2-4 uses the register defines and access functions from the macb
header. These can be squashed if it cause too much churn.

Patch 5 merges the private at91_ether struct with the private macb
struct. This makes it easier to later share code with the macb. The
private macb struct becomes quite large, but most at91_ether specific
members are removed in later patches.

Patch 8 make macb compile when we select at91_ether. Is this approach
okey?

Patch 9 makes use of MDIO code from macb. This rips out the private
phy handling code in at91_ether. One thing that is lost is the
interrupt support for phy. But this should easy to add to macb which
will then benefit both drivers.

Patch 10 makes use of the macb_set_rx_mode from macb.

Patch 11-12 makes at91_ether share the rx dma struct members from
macb. Patch also moves the rx buffer allocation into netdev open and
dealloc into netdev close.

Last patch remove the now unused rm9200 emac header from include/mach.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>