mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
Revert "ODROID-COMMON: net/ethernet: MAC address from eFuse memory"
This reverts commit a79ad488a8.
This commit is contained in:
@@ -229,19 +229,6 @@ static int odroid_provision(struct odroid_efuse_t *fuse)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
void odroid_get_ether_addr(unsigned char *addr)
|
||||
{
|
||||
loff_t pos = 0x46;
|
||||
int ret;
|
||||
|
||||
ret = efuse_read_usr(addr, ETH_ALEN, &pos);
|
||||
if (ret < 0)
|
||||
memset(addr, 0, ETH_ALEN);
|
||||
}
|
||||
EXPORT_SYMBOL(odroid_get_ether_addr);
|
||||
#endif
|
||||
|
||||
static long efuse_unlocked_ioctl(struct file *file, unsigned int cmd,
|
||||
|
||||
@@ -127,13 +127,6 @@ static void dwmac1000_get_umac_addr(struct mac_device_info *hw,
|
||||
unsigned int reg_n)
|
||||
{
|
||||
void __iomem *ioaddr = hw->pcsr;
|
||||
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
odroid_get_ether_addr(addr);
|
||||
if (is_valid_ether_addr(addr))
|
||||
return;
|
||||
#endif
|
||||
|
||||
stmmac_get_mac_addr(ioaddr, addr, GMAC_ADDR_HIGH(reg_n),
|
||||
GMAC_ADDR_LOW(reg_n));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user