Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752358AbbB1Csu (ORCPT ); Fri, 27 Feb 2015 21:48:50 -0500 Received: from ducie-dc1.codethink.co.uk ([185.25.241.215]:58339 "EHLO ducie-dc1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752212AbbB1Csr (ORCPT ); Fri, 27 Feb 2015 21:48:47 -0500 Message-ID: <1425091721.4444.91.camel@xylophone.i.decadent.org.uk> Subject: Re: [PATCH] sh_eth: Fix lost MAC address on kexec From: Ben Hutchings To: Geert Uytterhoeven Cc: "David S. Miller" , Nobuhiro Iwamatsu , Simon Horman , Magnus Damm , Kevin Hilman , netdev@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 28 Feb 2015 02:48:41 +0000 In-Reply-To: <1425053786-24223-1-git-send-email-geert+renesas@glider.be> References: <1425053786-24223-1-git-send-email-geert+renesas@glider.be> Organization: Codethink Ltd. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 889 Lines: 23 On Fri, 2015-02-27 at 17:16 +0100, Geert Uytterhoeven wrote: > Commit 740c7f31c094703c ("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. [...] Sorry about that. This would also affect removing and reloading the driver as a module, but currently I always have it built in and don't use kexec. Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/