r8152: load the default MAC address
authorhayeswang <hayeswang@realtek.com>
Tue, 18 Feb 2014 13:49:01 +0000 (21:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Feb 2014 21:40:01 +0000 (16:40 -0500)
commit8a91c8246a847a2435a7ef361bfcd4c2b5be4ea2
treea93ecaafc241085de575c23097093d4dcbf53416
parentb97027233db74a24eb3aca693ed3f85461c7f440
r8152: load the default MAC address

Except for RTL_VER_01, replace loading the MAC address from PLA_IDR
with from PLA_BACKUP. The default MAC address may be modified by
the other OS, so the PLA_IDR may be not the default MAC address.

The data in the PLA_BACKUP address of the RTL_VER_01 may be destoryed,
so load MAC address from PLA_IDR for RTL_VER_01.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c