Andre Przywara
117a52e238
net: smc911x: Properly handle EEPROM MAC address
...
When compiled as a DM_ETH driver, the scm911x driver was reading the MAC
address from the optional EEPROM storage, but failed to copy this to the
platdata struct. Since it was also missing a definition of the
read_rom_hwaddr() function, the generic Ethernet code was dismissing
this MAC address, falling back to a random address or denying to start
at all.
Add an implementation of .read_rom_hwaddr, and refactor the function
reading the ROM address to be called by all interested parties.
This fixes MAC address issues when using the driver in DM_ETH "mode".
Signed-off-by: Andre Przywara <andre.przywara@arm.com >
Reviewed-By: Ramon Fried <rfried.dev@gmail.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
2020-07-07 18:23:48 -04:00
..
2020-06-29 13:34:43 -04:00
2020-05-20 08:46:56 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-07-07 16:09:22 -04:00
2020-06-16 17:00:02 +05:30
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:31 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-07-07 16:01:23 +02:00
2020-07-07 17:11:58 -04:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-06-18 19:34:40 +02:00
2020-05-18 21:19:23 -04:00
2020-05-10 13:24:48 +02:00
2020-05-18 21:19:18 -04:00
2020-06-22 17:40:49 +02:00
2020-06-22 17:40:49 +02:00
2019-12-09 09:47:43 -06:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-04-29 10:49:20 +05:30
2020-05-18 21:19:23 -04:00
2020-06-04 18:53:14 +05:30
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-07-07 17:11:58 -04:00
2020-05-22 19:46:45 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2019-07-25 13:13:30 -05:00
2020-07-07 17:11:58 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2019-07-18 16:37:13 -05:00
2019-09-04 11:37:19 -05:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-06-30 11:43:18 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-06-12 13:17:23 -04:00
2020-06-12 13:17:23 -04:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2019-08-09 23:15:01 +02:00
2020-07-07 18:23:48 -04:00
2020-05-18 17:33:31 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:31 -04:00
2020-05-18 21:19:23 -04:00
2020-06-01 22:38:37 +05:30
2020-05-18 21:19:23 -04:00
2020-06-04 18:53:20 +05:30
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-06-24 13:11:08 +02:00
2020-05-18 21:19:23 -04:00
2020-06-24 13:11:06 +02:00