From patchwork Fri Jul 6 08:09:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 141261 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2834442ljj; Fri, 6 Jul 2018 01:12:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe8MhL9CGCY0YXndq33TK+KLq50mw2IEa/UK5esIucA6Wv3x45nnnOsosiYAluaaMRLz+uR X-Received: by 2002:a1c:34c9:: with SMTP id b192-v6mr6228641wma.21.1530864721212; Fri, 06 Jul 2018 01:12:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530864721; cv=none; d=google.com; s=arc-20160816; b=LnSJe0K40AnzQejgKj5pyy58+xHj7but7a0eIs+QnTbhi01nY+oVG0I5aMj9SEs/Bg v7PVg1QzwaptKoZSPDLVehyAz3ZGDTzQp1N0QC8KP2esQirrJvyZ3ehm5zPDzh6jiVpQ gK8hGavJJy3KwZ9o0e+HPI14yiHJF1bFk9O2ltuZ6dDsD7XLnQbFNe60t82+RQU3qLa0 qlGYi66/SOUVjeuivjqj9nvC5w6BS/FGO5lNzb38LR3eTIJ6t7QTY2kpTd99KUGgleKd hhDbi/y8GYX4YMzphJYV5y3Go3AHNjcm5q1Gnz4MUwlY4oeE3HSIiEXulIdqZVCWIhNX rz2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=P/dfHdBF02eYEZbHoLE28tgKvs6PDCCGzeW3Zhtouzg=; b=d7POygSoO9PV/IuQPAqYKajNOSKGfUlcRea22AEGOQ3yFOgacwRes8lWmItJ7vZ27b P74qrm3ixPBOBP/AJvzsV5TKQhCRmS/Fun899hePywJ4YOGX0pwvvXfLJk+6Jlx3/Rrs Zhf1dztZtsuv9JLYEDtMrF25nhDGLdS6CAVYgn0Py8j5eSfJAxMoevO/+lQmAO0KTBgQ ntbDXHY3/uDMJ42IA9sK5mMNS4Lhh/c6DPXZskt4hqzUy/l2X8tKD6gAlE7oVl46qFo3 4OWspT5CkhFWWxjB9iymYOKvruyiDbLHE4VZIrw6lryeSq4KVcXLMPjOnGyL3VnXSLxd BAPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=VuVqaLOL; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id e21-v6si6544878wmf.85.2018.07.06.01.12.00; Fri, 06 Jul 2018 01:12:01 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=VuVqaLOL; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B64011C41A; Fri, 6 Jul 2018 10:12:00 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00084.outbound.protection.outlook.com [40.107.0.84]) by dpdk.org (Postfix) with ESMTP id B33531C416; Fri, 6 Jul 2018 10:11:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P/dfHdBF02eYEZbHoLE28tgKvs6PDCCGzeW3Zhtouzg=; b=VuVqaLOLIZ8n2riuASS1mwn+VXxR4XXBN4DydwGt6XfckUSCh1u8cWQ6sqGuKEV1bv1ZNF37eXxJL3PtpJvbWVy/Q25a4Qx+54FOncdICOac0bx7BfXKENN4p2zGt5HOVT51b5/TK8l0gTdngaXEx8GK+yocJWdho6XXC1+oAF8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Fri, 6 Jul 2018 08:11:56 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, Alok Makhariya , stable@dpdk.org Date: Fri, 6 Jul 2018 13:39:58 +0530 Message-Id: <1530864613-11754-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> References: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::16) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88211ecc-6718-4b08-3199-08d5e3182478 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2P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TGH8xj6ZpmkgKU+/qEsZwytNFhqjTNlrvhNPJhqLHrvTdU/MX+MY6/Eu3zjcadN4LmrB2doY2pUy/ZcCum3QJSmKIlx9fLJRK+paQgPUyBakIGwvJeaNEf6d2R5E99QCOjNtpjQbrKzzT/b3wwHaB+zmfeJnE1zVgQZhv0K6aOSeMnOPThWGhApOpsf7iwsvqwWCZcC81kMMoAcsXN+jAsl3KvTe6Oj7xUDcNOhj4JZbpGJntoUZwKxs2nYu/p8Za8sDbuSeHcccyhd42Jai3SpQqpsQKMsRRqrCv4my5mwNyrbG51x11lBlQY2EEPjBNS3JskG3+FZ5S4OIsBQ4cqNO6+2pku7mnBUCmG57z2; 4:cEXcbMoxRDWcnV6K/ytLPa1msjTYTYMYr9/rW86mje8NYCph6NertKpIZtydrTQBCml8avVKw7zsLJjj+sQBYjaZ0l7tWFUi7KNCqPReh489Yox+bCciBC8vAkNuZmz9iQG2e138YezyvQPepmdHtAKTM/FSLkLqIwp1LPhiP3X0aUa9LhAuzNuGhxFWWIva0Ef2bvHd7xg6rlk72hKlqg2rK/EhBP4ETuDheQibwccEE5UH5Kt5JyzwUxRobgmfQaoJUVTmBLOsNO+Dolf0LERwDOcmMtlsq1/piSM4lP5CnURpyV+LMMBlZzL4orMj X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 0725D9E8D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(956004)(66066001)(446003)(6116002)(2616005)(476003)(5009440100003)(6916009)(76176011)(186003)(16586007)(16526019)(105586002)(478600001)(86362001)(450100002)(44832011)(106356001)(3846002)(4326008)(486006)(11346002)(6486002)(2906002)(25786009)(305945005)(47776003)(50466002)(2361001)(7736002)(5660300001)(6512007)(48376002)(8936002)(68736007)(36756003)(97736004)(55236004)(6506007)(53936002)(26005)(51416003)(50226002)(8676002)(2351001)(81156014)(81166006)(386003)(52116002)(316002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0755; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0755; 23:rsae2mpC5/9IBGAZ1mtOGFlb+YuC7klamrs75cK7d?= OimPQlUee0CUkyvTnDPMqjoFcVR7HIUc/FiI5rGmRG7mY9my+tcaRhwT+j+U1wA6bBP+dS7CJJJ2jT0gA+xNgdcvXpju8NTH4lvTqV9y6C9KxuUOULD01LyLfaLXUOosaNwbW+5lv7NFTxY5majx+sTxFHvcIJzePXqNo71q0h1KlCLX2HgQ5mqKk4ZWOrk41Aje0fNNdn3xzLpHB42kJxAkw5c7pDecs7AVYmdaWHuSb43duAw9BhJyImVeypAhai9ZyLzXkWR8ZXBh6hwP7RB0H1HPvQQ1WHa2kMhV6idHE3sFvdgsD1E9MD9Isr6TYSUjpmtMz1tH6uH+sSMJ1bLb1hc27+vBu2KLFN4+ql/auHZ5pAGqDA8Zi6jPCK8L8dPwpE5HbG0+in2BFSGyNZWbVbu6CfKGZvqfaCwA05zwXn1GJmqxMv3IH4z0Mn8zitj3ZwtMzeYaQOaCIN4SdgpTQTiQU1EbcXJfbsmSjR1lyunkzy4nhtoDxJKbdGNzMZpYIB8aFaCOFFPLk9346GtTvF9D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UAWf45aXuwtsNHIIOn7G6SxKsPto7AcFzPQ8= X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 6:vAGWteMxajmE7pnvAsvL1KoER0gcao6qFBxFnNanNHqfWy08vNX3vPOQ/QqhMbcSrNnwnQ8oKa6MDjJXGbMFp/V1V6/A6SbHJvTEZWmWhou01BX4a6lHWErKsudLTPTz5rk9aiRtesZ7l4Au/0ISpuralsR5K/wdCigcsi4EEOyYP8tdr90nlHglBf17xTdmKlsLOBrfCCWneR3DPfnieDWm5oHFEVi92mTzrjG8DAgceSkM4gx2xM9oNwQrgJugeE8W0nBZsIrIS3a1fzYRMB9hQ9Byws/mT2dMaHmRBo6KAhWXIZ6101yXbTwzaStaw9cBLw+8XES0JbFYX1awQF9QqKcXUjsKrGvAiMTxERrCqN7B5YUFzuuKc3lmF1TqhnpNvVv81EoWqRgGAnsr33I9kALB/dphE4jPzVAAzNUefjX1/wvna0zqx03RlB8rpF2PhSSKRBZylP6GCU2Icg==; 5:l8wOpd0kL0prahcvrBk/uPLYyELtRd18tIBc5EHhDEReuESXMoyfLa/T+sCZLB2CCUh/89Ezh8PX3rY2utZ4nKcvGGHtB69+lw8y6trrgX/pHChhb9lOKlL1bCJQiWBkm4tm/IGErMkxsmYR4EKTyL3GrTQDrzGUBjFj+VqBMpc=; 24:qTh8+g/hSad9LXk7TMiaXECtQB3PMDRff0G6DOmXWC2Gyvczj06g7f3opEewl0kmONjKAaWjrZZFO7nJm0YVf9QrIJrJIrGQpZ+AYCHy+Vk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:ptEyMIg/IPrwuOx+geCWzhY2kYvzlWirEtjpaw67Wtp58fakK0X0I0dzVlIQ8rex6T+kr7RRPIjuwUxElzWS9rc8jb820hGx4SlSgti7LTWzr8YpH/vsUc6gSYd02iFH5hzR6PQA9G2D0SIeKU0TM79NqlAuOd/9XcfHow7xYycXQjy54LOKOMbLh3Lj8oyrhesB3W6MG1yoec3jM3X11q+mDMW9WqzF0LALSa6cDR2sAaCtJNP5j6zXUqQGQyJZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 08:11:56.3062 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88211ecc-6718-4b08-3199-08d5e3182478 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0755 Subject: [dpdk-dev] [PATCH v3 01/16] bus/dpaa: fix phandle support for kernel 4.16 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Alok Makhariya Fixes: 2183c6f69d7e ("bus/dpaa: add OF parser for device scanning") Cc: Shreyansh Jain 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(+) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/fman/of.c b/drivers/bus/dpaa/base/fman/of.c index 1b2dbe2..eb55cb9 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",