From: "Hervé Poussineau" <hpoussin@reactos.org>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Herv Poussineau <hpoussin@reactos.org>
Subject: [Qemu-devel] [PATCH 2/3] sonic: fix netcard reset
Date: Sun, 6 Nov 2011 22:48:51 +0100 [thread overview]
Message-ID: <1320616132-21864-2-git-send-email-hpoussin@reactos.org> (raw)
In-Reply-To: <1320616132-21864-1-git-send-email-hpoussin@reactos.org>
From: Herv Poussineau <hpoussin@reactos.org>
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
hw/dp8393x.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/hw/dp8393x.c b/hw/dp8393x.c
index cfec4cb..acb1604 100644
--- a/hw/dp8393x.c
+++ b/hw/dp8393x.c
@@ -845,8 +845,7 @@ static void nic_reset(void *opaque)
s->regs[SONIC_CR] = SONIC_CR_RST | SONIC_CR_STP | SONIC_CR_RXDIS;
s->regs[SONIC_DCR] &= ~(SONIC_DCR_EXBUS | SONIC_DCR_LBR);
s->regs[SONIC_RCR] &= ~(SONIC_RCR_LB0 | SONIC_RCR_LB1 | SONIC_RCR_BRD | SONIC_RCR_RNT);
- s->regs[SONIC_TCR] |= SONIC_TCR_NCRS | SONIC_TCR_PTX;
- s->regs[SONIC_TCR] &= ~SONIC_TCR_BCM;
+ s->regs[SONIC_TCR] = SONIC_TCR_NCRS | SONIC_TCR_PTX;
s->regs[SONIC_IMR] = 0;
s->regs[SONIC_ISR] = 0;
s->regs[SONIC_DCR2] = 0;
--
1.7.6.3
next prev parent reply other threads:[~2011-11-06 21:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-06 21:48 [Qemu-devel] [PATCH 1/3] sonic: fix typo Hervé Poussineau
2011-11-06 21:48 ` Hervé Poussineau [this message]
2011-11-07 11:16 ` [Qemu-devel] [PATCH 2/3] sonic: fix netcard reset Andreas Färber
2011-11-06 21:48 ` [Qemu-devel] [PATCH 3/3] sonic: reset all bits of in_use field when required Hervé Poussineau
2011-11-07 11:15 ` [Qemu-trivial] [Qemu-devel] [PATCH 1/3] sonic: fix typo Andreas Färber
2011-11-07 11:15 ` Andreas Färber
2011-11-08 10:46 ` Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320616132-21864-2-git-send-email-hpoussin@reactos.org \
--to=hpoussin@reactos.org \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.