Geert Uytterhoeven
a14c7d15ca
sh_eth: Fix lost MAC address on kexec
...
Commit 740c7f31c0 ("sh_eth: Ensure DMA engines are stopped before
freeing buffers") added a call to sh_eth_reset() to the
sh_eth_set_ringparam() and sh_eth_close() paths.
However, setting the software reset bit(s) in the EDMR register resets
the MAC Address Registers to zero. Hence after kexec, the new kernel
doesn't detect a valid MAC address and assigns a random MAC address,
breaking DHCP.
Set the MAC address again after the reset in sh_eth_dev_exit() to fix
this.
Tested on r8a7740/armadillo (GETHER) and r8a7791/koelsch (FAST_RCAR).
Fixes: 740c7f31c0 ("sh_eth: Ensure DMA engines are stopped before freeing buffers")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be >
Signed-off-by: David S. Miller <davem@davemloft.net >
2015-03-01 00:06:20 -05:00
..
2015-02-15 19:40:10 +01:00
2015-02-10 10:23:15 +00:00
2015-01-25 09:17:57 -08:00
2015-02-12 14:30:53 -08:00
2015-01-18 00:28:41 -05:00
2015-02-15 11:11:47 -08:00
2015-01-29 10:54:43 +02:00
2015-02-16 17:56:04 -08:00
2015-02-23 09:30:35 +02:00
2015-02-17 09:27:54 -08:00
2015-02-17 13:20:42 -08:00
2015-02-17 09:38:59 -08:00
2015-02-17 09:27:54 -08:00
2015-02-04 10:42:55 -08:00
2015-02-13 21:39:06 +01:00
2015-02-17 14:17:51 -08:00
2015-02-18 08:49:20 -08:00
2015-02-13 21:39:06 +01:00
2015-02-18 08:49:20 -08:00
2015-01-30 17:00:43 +01:00
2015-01-26 13:47:55 +09:00
2015-02-02 21:56:03 +01:00
2015-02-13 21:21:41 -08:00
2015-02-12 08:51:56 -08:00
2015-02-16 15:48:00 -08:00
2015-02-09 11:17:45 +01:00
2015-01-04 20:19:30 +01:00
2015-02-15 10:48:44 -08:00
2015-02-03 12:17:12 -08:00
2015-01-30 17:58:43 +01:00
2015-02-15 19:40:09 +01:00
2015-02-15 11:30:39 -08:00
2015-02-17 15:18:19 -08:00
2015-02-13 21:21:38 -08:00
2015-02-12 09:16:56 -08:00
2015-02-16 15:20:40 -08:00
2015-02-22 15:24:10 -05:00
2015-02-02 14:36:10 -08:00
2015-02-04 12:10:41 +01:00
2014-12-19 19:32:47 +01:00
2015-02-11 12:56:40 -08:00
2015-02-03 15:48:51 -08:00
2015-02-17 17:34:21 -08:00
2015-02-11 17:06:05 -08:00
2015-01-29 22:57:43 -06:00
2015-02-03 15:58:39 -08:00
2015-02-18 09:05:48 -08:00
2015-02-15 10:48:44 -08:00
2015-02-04 13:39:14 +01:00
2015-02-18 08:01:44 -08:00
2015-03-01 00:06:20 -05:00
2015-02-04 09:15:18 +01:00
2015-02-17 09:38:59 -08:00
2015-01-16 10:04:43 -06:00
2015-01-15 13:44:50 +01:00
2015-02-10 15:09:41 -08:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-11 11:23:13 -08:00
2015-01-23 11:10:32 -08:00
2015-02-15 11:37:02 -08:00
2015-01-28 15:08:10 +01:00
2014-12-17 02:35:42 +01:00
2015-01-22 17:31:21 +11:00
2015-02-18 08:40:29 +01:00
2015-02-18 08:49:20 -08:00
2015-02-18 09:05:48 -08:00
2015-01-16 19:11:31 -08:00
2015-02-17 09:17:33 -08:00
2015-02-13 09:55:09 -08:00
2015-02-17 15:18:19 -08:00
2015-02-17 09:38:59 -08:00
2015-02-11 14:38:28 -08:00
2015-02-11 14:38:29 -08:00
2015-02-17 14:56:45 -08:00
2015-01-18 01:03:45 -05:00
2015-01-27 16:59:56 -08:00
2015-02-15 11:37:02 -08:00
2015-01-12 05:04:13 -08:00
2015-02-17 17:41:19 -08:00
2015-02-15 10:24:55 -08:00
2015-01-07 10:29:11 -07:00
2015-02-27 15:53:44 -05:00
2015-02-11 17:06:05 -08:00
2015-01-06 16:35:36 +02:00
2015-01-12 05:04:12 -08:00
2015-02-17 21:34:13 +01:00
2015-02-11 10:28:45 -08:00
2015-02-03 15:58:39 -08:00
2014-12-22 11:47:37 +02:00