From patchwork Mon Apr 4 04:04:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 8737271 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 694539F36E for ; Mon, 4 Apr 2016 04:04:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C1E57201E4 for ; Mon, 4 Apr 2016 04:04:32 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0DA3A201DD for ; Mon, 4 Apr 2016 04:04:32 +0000 (UTC) Received: from localhost ([::1]:56426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amvkd-0002ak-5e for patchwork-qemu-devel@patchwork.kernel.org; Mon, 04 Apr 2016 00:04:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amvkV-0002aV-Ju for qemu-devel@nongnu.org; Mon, 04 Apr 2016 00:04:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amvkS-0003Bb-FA for qemu-devel@nongnu.org; Mon, 04 Apr 2016 00:04:23 -0400 Received: from mail-lf0-x230.google.com ([2a00:1450:4010:c07::230]:35634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amvkS-0003BV-73; Mon, 04 Apr 2016 00:04:20 -0400 Received: by mail-lf0-x230.google.com with SMTP id c126so31260570lfb.2; Sun, 03 Apr 2016 21:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bl19jHcCdVraDaoiX7o374mtg+ccMke8oIaUTkZ1XnU=; b=OFjYXjTYqK01h30OtnPzga7pdz4KynVgUksUhvJpJV9C+59B9bP3447V4kT+DqhqPz V886sJsCrzYaNC073UyC8LBRnhEYqL4fo5YVxoAoPmiWTUWVrvi+DhZb4mi/mJ1tp8bE CYT6SYsteXUwPngeimdI0SXNIlbliR7m7ch+JesyK59VjUKCfUSp6/HsKVZfVkLjVo4d UedngJ35E81V38kJX9HL+eGb8rffV5W2f9IBy6ZmwcuO7XAqEg8pUy1n/weHlntTW9Rf 3qd+DtSkqAK8VWpYPf1IrIfs3wr+PBYeneVTyrkjN4ak2c7J8M1Mac6FtmC1Qvf2P+Gx EDYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bl19jHcCdVraDaoiX7o374mtg+ccMke8oIaUTkZ1XnU=; b=DqoW5M1gHEVO+4r128lqEf4cyi5mvWqHajqJLToMvwZ5NQJIelzCwv5wzia0DRHVOo baV86ktrB0biCwuQslCiIWgZZ0fejQWJv9JWlkt3mC+7yF3Xr61ovPK9TG+YUkq4fWUm pJ9jZ3eLtFcSCH1rFLuz008iT6gDRF113ldIUkSBi0oT50QfuMSqSQ8CpTUZlo60wE2u dQvtZpuo6fsNE3UFbAcjhz0TdbVTYioZdkoT5HDMXQS9Bm9WBQAzvNwo/va7AtsHklYn ZRm++fGjZazw5DMkIFAgCPlHHnOostgJaN8sZTMLZyfyvPTvN+E/NpysUpT0jctN5zIj aq9Q== X-Gm-Message-State: AD7BkJLUIH0Uhich9WKArDVXnim7fCGmVhwtDaWUhIKGR3Koburs5gUJb24LbPZcnpZbmA== X-Received: by 10.25.44.195 with SMTP id s186mr3931080lfs.81.1459742659052; Sun, 03 Apr 2016 21:04:19 -0700 (PDT) Received: from octofox.metropolis ([5.19.183.212]) by smtp.gmail.com with ESMTPSA id tm4sm4416192lbb.42.2016.04.03.21.04.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Apr 2016 21:04:18 -0700 (PDT) From: Max Filippov To: qemu-devel@nongnu.org Date: Mon, 4 Apr 2016 07:04:05 +0300 Message-Id: <1459742645-11129-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::230 Cc: Max Filippov , qemu-stable@nongnu.org Subject: [Qemu-devel] [PATCH] opencores_eth: indicate autonegotiation completion X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Indicate that autonegotiation is complete in the MII BMSR. This fixes networking on xtfpga platform in linux v4.5. Cc: qemu-stable@nongnu.org Signed-off-by: Max Filippov --- hw/net/opencores_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c index 09e239a..c6094fb 100644 --- a/hw/net/opencores_eth.c +++ b/hw/net/opencores_eth.c @@ -85,7 +85,7 @@ static void mii_reset(Mii *s) { memset(s->regs, 0, sizeof(s->regs)); s->regs[MII_BMCR] = 0x1000; - s->regs[MII_BMSR] = 0x7848; /* no ext regs */ + s->regs[MII_BMSR] = 0x7868; /* no ext regs */ s->regs[MII_PHYIDR1] = 0x2000; s->regs[MII_PHYIDR2] = 0x5c90; s->regs[MII_ANAR] = 0x01e1;