From: Wolfgang Denk Date: Sat, 22 Oct 2011 00:36:19 +0200 Subject: [U-Boot] [PATCH] ftgmac100: reset fix when supports wake on lan In-Reply-To: <1316584472-24031-1-git-send-email-macpaul@andestech.com> References: <1316584472-24031-1-git-send-email-macpaul@andestech.com> Message-ID: <20111021223619.B3E1F11F9E79@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Macpaul Lin, In message <1316584472-24031-1-git-send-email-macpaul@andestech.com> you wrote: > This patch move the reset function from initialization to > driver register procedure. > > Some embedded system supports wake on lan nowadays. On this kind of system, > the ftgmac100 will be still supplied power after the system has been > shut-down by Linux. Hence the register used by linux won't be clear > when the system has been powered-off. > > The origin ftgmac100 driver in u-boot will only register > driver and functions to network stack and won't reset the ftgmac100 > hardware if the network won't be used during boot-up. > This will lead ftgmac100 continue receiving packets and then might corrupt > linux kernel when booting up. > > So we reorder the hardware reset function earlier to force the hardware > to be reset whether it will be used or not. > > Signed-off-by: Macpaul Lin > --- > drivers/net/ftgmac100.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Killing is wrong. -- Losira, "That Which Survives", stardate unknown