From patchwork Sat May 21 08:01:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Christophe Dubois X-Patchwork-Id: 624720 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rBcp10lrhz9t5Y for ; Sat, 21 May 2016 18:06:33 +1000 (AEST) Received: from localhost ([::1]:39246 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b41va-0002zL-Kc for incoming@patchwork.ozlabs.org; Sat, 21 May 2016 04:06:30 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b41qp-0006jy-Sp for qemu-devel@nongnu.org; Sat, 21 May 2016 04:01:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b41ql-0002zz-QE for qemu-devel@nongnu.org; Sat, 21 May 2016 04:01:34 -0400 Received: from zose-mta03.web4all.fr ([185.49.20.44]:59917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b41ql-0002zt-Kq for qemu-devel@nongnu.org; Sat, 21 May 2016 04:01:31 -0400 Received: from localhost (localhost [127.0.0.1]) by zose-mta03.web4all.fr (Postfix) with ESMTP id B61BE412F1; Sat, 21 May 2016 10:01:30 +0200 (CEST) Received: from zose-mta03.web4all.fr ([127.0.0.1]) by localhost (zose-mta03.web4all.fr [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 36GnKO7gXCL8; Sat, 21 May 2016 10:01:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zose-mta03.web4all.fr (Postfix) with ESMTP id 2E3664148C; Sat, 21 May 2016 10:01:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at zose-mta-03.w4a.fr Received: from zose-mta03.web4all.fr ([127.0.0.1]) by localhost (zose-mta03.web4all.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pvUYgNzXaRiA; Sat, 21 May 2016 10:01:30 +0200 (CEST) Received: from localhost.localdomain (smm49-1-78-235-240-156.fbx.proxad.net [78.235.240.156]) by zose-mta03.web4all.fr (Postfix) with ESMTPSA id D42AE412F1; Sat, 21 May 2016 10:01:29 +0200 (CEST) From: Jean-Christophe Dubois To: qemu-devel@nongnu.org, peter.maydell@linaro.org, jasowang@redhat.com Date: Sat, 21 May 2016 10:01:28 +0200 Message-Id: <89f71f6406b78449a411535e24cb3decb34fbaf1.1463816701.git.jcd@tribudubois.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.49.20.44 Subject: [Qemu-devel] [PATCH v5 05/10] i.MX: Fix FEC code for ECR register reset value. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jean-Christophe Dubois Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" According to the FEC chapter of i.MX25 reference manual ECR register is initialized at 0xf0000000 at reset time. We fix the value. Signed-off-by: Jean-Christophe Dubois --- Changes since v1: * Not present on v1 Changes since v2: * Not present on v2 Changes since v3: * Not present on v3 Changes since v4: * None hw/net/imx_fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c index a649027..87e3c87 100644 --- a/hw/net/imx_fec.c +++ b/hw/net/imx_fec.c @@ -338,7 +338,7 @@ static void imx_fec_reset(DeviceState *d) s->eir = 0; s->eimr = 0; s->rx_enabled = 0; - s->ecr = 0; + s->ecr = 0xf0000000; s->mscr = 0; s->mibc = 0xc0000000; s->rcr = 0x05ee0001;