net/at91_ether: use ethtool and mdio from macb

This rips out the at91_ether phy handling and ethtool stuff
and replace it with equivalent stuff from macb.

The only thing lost is the phy irq support from at91_ether,
but this can be added to macb and then benefit all users.

Signed-off-by: Joachim Eastwood <manabian@gmail.com>
This commit is contained in:
Joachim Eastwood
2012-10-18 11:01:14 +00:00
committed by David S. Miller
parent 0112a1dac5
commit 5e32353d31
3 changed files with 31 additions and 673 deletions

View File

@@ -555,17 +555,10 @@ struct macb {
phy_interface_t phy_interface;
/* at91_private */
struct mii_if_info mii; /* ethtool support */
struct macb_platform_data board_data; /* board-specific
* configuration (shared with
* macb for common data */
/* PHY */
unsigned long phy_type; /* type of PHY (PHY_ID) */
short phy_media; /* media interface type */
unsigned short phy_address; /* 5-bit MDI address of PHY (0..31) */
struct timer_list check_timer; /* Poll link status */
/* Transmit */
struct sk_buff *skb; /* holds skb until xmit interrupt completes */
dma_addr_t skb_physaddr; /* phys addr from pci_map_single */