FreeBSD Bugzilla – Attachment 186754 Details for
Bug 222634
ffec: Support i.MX7D and performance improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ffec: Avoid AXI bus issues due to a MAC reset
0003-ffec-Avoid-AXI-bus-issues-due-to-a-MAC-reset.patch (text/plain), 979 bytes, created by
sebastian.huber
on 2017-09-27 08:49:06 UTC
(
hide
)
Description:
ffec: Avoid AXI bus issues due to a MAC reset
Filename:
MIME Type:
Creator:
sebastian.huber
Created:
2017-09-27 08:49:06 UTC
Size:
979 bytes
patch
obsolete
>From 87ca8a05e051357b6e9e83677bad3bc3b1d22240 Mon Sep 17 00:00:00 2001 >From: Sebastian Huber <sebastian.huber@embedded-brains.de> >Date: Wed, 27 Sep 2017 09:42:10 +0200 >Subject: [PATCH 3/4] ffec: Avoid AXI bus issues due to a MAC reset > >--- > sys/dev/ffec/if_ffec.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/sys/dev/ffec/if_ffec.c b/sys/dev/ffec/if_ffec.c >index da008566627..0bc88357a02 100644 >--- a/sys/dev/ffec/if_ffec.c >+++ b/sys/dev/ffec/if_ffec.c >@@ -1640,7 +1640,14 @@ ffec_attach(device_t dev) > ffec_get_hwaddr(sc, eaddr); > > /* Reset the hardware. Disables all interrupts. */ >- WR4(sc, FEC_ECR_REG, FEC_ECR_RESET); >+ if (sc->fectype & FECFLAG_AVB) >+ /* >+ * Avoid AXI bus issues due to a MAC reset, see Linux for more >+ * details. >+ */ >+ WR4(sc, FEC_ECR_REG, 0); >+ else >+ WR4(sc, FEC_ECR_REG, FEC_ECR_RESET); > > /* Setup interrupt handler. */ > error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE, >-- >2.12.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 222634
:
186752
|
186753
| 186754 |
186755
|
186905
|
186906