From patchwork Sat Oct 11 16:42:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 398884 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 40A57140119 for ; Sun, 12 Oct 2014 03:44:36 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6130EA7478; Sat, 11 Oct 2014 18:44:14 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C6zDs7C1TD57; Sat, 11 Oct 2014 18:44:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F3DBBA768D; Sat, 11 Oct 2014 18:43:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 122A9A7403 for ; Sat, 11 Oct 2014 18:43:37 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 449qZSm9UTpd for ; Sat, 11 Oct 2014 18:43:36 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTPS id 724E8A73F2 for ; Sat, 11 Oct 2014 18:43:35 +0200 (CEST) Received: from mail.nefkom.net (unknown [192.168.8.184]) by mail-out.m-online.net (Postfix) with ESMTP id 3jFX5y2379z3hj3r; Sat, 11 Oct 2014 18:43:34 +0200 (CEST) X-Auth-Info: 4jrGni3Liwss3ytKy5IW6eKYpWmriVYmevlehAPIDC4= Received: from chi.lan (unknown [195.140.253.167]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 3jFX5x5sPRzvdWR; Sat, 11 Oct 2014 18:43:33 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Sat, 11 Oct 2014 18:42:58 +0200 Message-Id: <1413045778-5690-10-git-send-email-marex@denx.de> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1413045778-5690-1-git-send-email-marex@denx.de> References: <1413045778-5690-1-git-send-email-marex@denx.de> Cc: Marek Vasut , Joe Hershberger , Tom Rini Subject: [U-Boot] [PATCH 10/10] net: smc911x: Keep MAC programmed X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Make sure to keep the MAC address programmed in the SMC911x ADDRH and ADDRL registers. Linux can read those registers to determine the MAC address on EEPROM-less configurations. Signed-off-by: Marek Vasut Cc: Joe Hershberger Cc: Tom Rini --- drivers/net/smc911x.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index b097c1a..5959672 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -187,6 +187,7 @@ static int smc911x_send(struct eth_device *dev, void *packet, int length) static void smc911x_halt(struct eth_device *dev) { smc911x_reset(dev); + smc911x_handle_mac_address(dev); } static int smc911x_rx(struct eth_device *dev)