treewide: use wpad-basic-wolfssl as default
[openwrt/openwrt.git] / target / linux / layerscape / patches-5.4 / 701-net-0185-staging-dpaa2-evb-Use-MC-portal-in-atomic-context.patch
1 From 918a96ed5ff4cbb499242279e3c76ab7bee43c88 Mon Sep 17 00:00:00 2001
2 From: Razvan Stefanescu <razvan.stefanescu@nxp.com>
3 Date: Tue, 3 Apr 2018 13:53:00 +0300
4 Subject: [PATCH] staging: dpaa2-evb: Use MC portal in atomic context
5
6 Avoid triggering stack trace when retrieving interface counters via
7 ifconfig by allocating MC portal with atomic I/O enabled.
8
9 Signed-off-by: Razvan Stefanescu <razvan.stefanescu@nxp.com>
10 ---
11 drivers/staging/fsl-dpaa2/evb/evb.c | 3 ++-
12 1 file changed, 2 insertions(+), 1 deletion(-)
13
14 --- a/drivers/staging/fsl-dpaa2/evb/evb.c
15 +++ b/drivers/staging/fsl-dpaa2/evb/evb.c
16 @@ -1204,7 +1204,8 @@ static int evb_probe(struct fsl_mc_devic
17
18 priv = netdev_priv(netdev);
19
20 - err = fsl_mc_portal_allocate(evb_dev, 0, &priv->mc_io);
21 + err = fsl_mc_portal_allocate(evb_dev, FSL_MC_IO_ATOMIC_CONTEXT_PORTAL,
22 + &priv->mc_io);
23 if (unlikely(err)) {
24 dev_err(dev, "fsl_mc_portal_allocate err %d\n", err);
25 goto err_free_netdev;