qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] lan9118: Ignore write to MAC_VLAN1 register
@ 2011-03-29 13:41 Atsushi Nemoto
  2011-04-04 18:15 ` Aurelien Jarno
  0 siblings, 1 reply; 3+ messages in thread
From: Atsushi Nemoto @ 2011-03-29 13:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paul Brook

Since kernel 2.6.38, smsc911x driver writes to VLAN1 registger.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 hw/lan9118.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/hw/lan9118.c b/hw/lan9118.c
index af6949f..62aead3 100644
--- a/hw/lan9118.c
+++ b/hw/lan9118.c
@@ -785,6 +785,8 @@ static void do_mac_write(lan9118_state *s, int reg, uint32_t val)
     case MAC_FLOW:
         s->mac_flow = val & 0xffff0000;
         break;
+    case MAC_VLAN1:
+        break; /* just ignore */
     default:
         hw_error("lan9118: Unimplemented MAC register write: %d = 0x%x\n",
                  s->mac_cmd & 0xf, val);
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-05 14:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 13:41 [Qemu-devel] [PATCH] lan9118: Ignore write to MAC_VLAN1 register Atsushi Nemoto
2011-04-04 18:15 ` Aurelien Jarno
2011-04-05 14:34   ` Atsushi Nemoto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).