From ea562de57590c966cd5a75fda8defecd397e6436 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 14 Sep 2015 10:20:53 +0000 Subject: qemu: Update to upstream patches (From OE-Core rev: f0189829498e30231d826c9f55aad73e622d076e) Signed-off-by: Richard Purdie --- .../qemu/qemu/smc91c111_fix3.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/smc91c111_fix3.patch (limited to 'meta/recipes-devtools/qemu/qemu/smc91c111_fix3.patch') diff --git a/meta/recipes-devtools/qemu/qemu/smc91c111_fix3.patch b/meta/recipes-devtools/qemu/qemu/smc91c111_fix3.patch new file mode 100644 index 0000000000..9e865f7f09 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/smc91c111_fix3.patch @@ -0,0 +1,33 @@ +From: Peter Crosthwaite +To: qemu-devel@nongnu.org +Cc: peter.maydell@linaro.org, richard.purdie@linuxfoundation.org +Subject: [RFT PATCH v1 3/3] net: smc91c111: flush packets on RCR register + changes +Date: Thu, 10 Sep 2015 21:24:12 -0700 + +The SOFT_RST or RXEN in the control register can be used as a condition +to unblock the net layer via can_receive(). So check for possible +flushes on RCR changes. This will drop all pending packets on soft +reset or disable which is the functional intent of the can_receive() +logic. + +Signed-off-by: Peter Crosthwaite + +Upstream-Status: Submitted +--- + + hw/net/smc91c111.c | 1 + + 1 file changed, 1 insertion(+) + +Index: qemu-2.4.0/hw/net/smc91c111.c +=================================================================== +--- qemu-2.4.0.orig/hw/net/smc91c111.c ++++ qemu-2.4.0/hw/net/smc91c111.c +@@ -331,6 +331,7 @@ static void smc91c111_writeb(void *opaqu + if (s->rcr & RCR_SOFT_RST) { + smc91c111_reset(DEVICE(s)); + } ++ smc91c111_flush_queued_packets(s); + return; + case 10: case 11: /* RPCR */ + /* Ignored */ -- cgit v1.2.3-54-g00ecf