layerscape: make uImage with zImage for 32-bit kernel
[openwrt/openwrt.git] / target / linux / layerscape / patches-4.4 / 7175-staging-fsl-mc-add-quirk-handling-for-dpseci-objects.patch
1 From 5366dc8896ca7cf028db73643860821b189a1dfd Mon Sep 17 00:00:00 2001
2 From: Horia Geanta <horia.geanta@nxp.com>
3 Date: Mon, 11 Apr 2016 11:50:26 -0500
4 Subject: [PATCH 175/226] staging: fsl-mc: add quirk handling for dpseci
5 objects < 4.0
6
7 dpseci objects < 4.0 are not coherent-- in spite of the fact
8 that the MC reports them to be coherent in certain versions.
9 Add a special case to set the no shareability flag for dpseci
10 objects < 4.0.
11
12 Signed-off-by: Horia Geanta <horia.geanta@nxp.com>
13 (Stuart: reworded commit message, updated comment in patch)
14 Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
15 Acked-by: German Rivera <german.rivera@nxp.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 drivers/staging/fsl-mc/bus/dprc-driver.c | 9 +++++++++
19 1 file changed, 9 insertions(+)
20
21 --- a/drivers/staging/fsl-mc/bus/dprc-driver.c
22 +++ b/drivers/staging/fsl-mc/bus/dprc-driver.c
23 @@ -312,6 +312,15 @@ int dprc_scan_objects(struct fsl_mc_devi
24 continue;
25 }
26
27 + /*
28 + * add a quirk for all versions of dpsec < 4.0...none
29 + * are coherent regardless of what the MC reports.
30 + */
31 + if ((strcmp(obj_desc->type, "dpseci") == 0) &&
32 + (obj_desc->ver_major < 4))
33 + obj_desc->flags |=
34 + DPRC_OBJ_FLAG_NO_MEM_SHAREABILITY;
35 +
36 irq_count += obj_desc->irq_count;
37 dev_dbg(&mc_bus_dev->dev,
38 "Discovered object: type %s, id %d\n",