From a4f24c37074c0c9f1068ef9e1a90c0b3dd0147c4 Mon Sep 17 00:00:00 2001 From: Alok Makhariya Date: Fri, 6 Jul 2018 13:39:58 +0530 Subject: [PATCH] bus/dpaa: fix phandle support for Linux 4.16 Fixes: 2183c6f69d7e ("bus/dpaa: add OF parser for device scanning") Cc: stable@dpdk.org Signed-off-by: Alok Makhariya Acked-by: Shreyansh Jain --- drivers/bus/dpaa/base/fman/of.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/bus/dpaa/base/fman/of.c b/drivers/bus/dpaa/base/fman/of.c index 1b2dbe266a..eb55cb913a 100644 --- a/drivers/bus/dpaa/base/fman/of.c +++ b/drivers/bus/dpaa/base/fman/of.c @@ -182,6 +182,11 @@ linear_dir(struct dt_dir *d) DPAA_BUS_LOG(DEBUG, "Duplicate lphandle in %s", d->node.node.full_name); d->lphandle = f; + } else if (!strcmp(f->node.node.name, "phandle")) { + if (d->lphandle) + DPAA_BUS_LOG(DEBUG, "Duplicate lphandle in %s", + d->node.node.full_name); + d->lphandle = f; } else if (!strcmp(f->node.node.name, "#address-cells")) { if (d->a_cells) DPAA_BUS_LOG(DEBUG, "Duplicate a_cells in %s", -- 2.20.1