Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5527770yba; Mon, 13 May 2019 12:26:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWA4IGII1AdpWSh/mMbD+Ru3+oE3YnWgIfXj1VHhvze0dMYoJD2o8E0Dxrm8rtXGHt8HcY X-Received: by 2002:a63:fc08:: with SMTP id j8mr33503811pgi.432.1557775603900; Mon, 13 May 2019 12:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557775603; cv=none; d=google.com; s=arc-20160816; b=NCDbwHRF3RrLhMxk8g4lViqow5v6m0EMLpsilrVzDO6ebS52a6LYQ58JG0pv0HI+0z sakJ7HHHXZ7Z3RMvo2R5j/z5EZISCCAiebFoKFw7glUVV0qnU2r24zIjtJfVWYyDAOGG Fl5l0CM8AfHF+eYZ4qZu4uVwmCBM8PdCp/YtT2Ga2wW/7U43S01dWaK2djf3okAKGuK8 la92zzBpIzub4z62sUFLHAW0IaVH3qDsb8I3N2p4aFpXA/EXTZdexsg0W8qCCMm6OO2m aTCce9juHZYIb2hHkBK96p23DI0F9uzo4vhj2D5pV+sXB5kiPKrhAUfTxwbQpVSGzFta ZWlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:reply-to:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=h7tGXlk44VrCEk3lRk5Ndm/wkqw/Ho00CM9OQoJGhKE=; b=T5aKU4+3DUluycnvURHr6dT/P5FX3lB1jHzgilXUfo2p+tAxr5vYTG2fUc3RsNZTND GWpCHiK6UJDvTbSQ8RvGIuuM5S6cJwFBQDYSnfLPJelLcpESjkc5xoWA3adAm229Gkj3 OU6+peC6uFnJifRfSzeUDnq4TixVPU3rAtkEIvU+j8NbD/xgFf6rYqrLcaf3DWEBVOSb c53KZzkFL0O9XUXSIQQn+SfO0hJdHg8rbzniAFT4LpQMDGLsDQ6gfuz7d3RMt6g9wIn0 2UI83d3+rVcMKNl4w5V2fGY4bbQSOXXNNRRyxwqbaCZWz1ikdfK8hszejK3fQZepYRNc 7V0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FZ8bAXQ1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si18886067pln.354.2019.05.13.12.26.27; Mon, 13 May 2019 12:26:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FZ8bAXQ1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731511AbfEMQKJ (ORCPT + 99 others); Mon, 13 May 2019 12:10:09 -0400 Received: from mail-eopbgr10056.outbound.protection.outlook.com ([40.107.1.56]:56750 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731482AbfEMQKF (ORCPT ); Mon, 13 May 2019 12:10:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h7tGXlk44VrCEk3lRk5Ndm/wkqw/Ho00CM9OQoJGhKE=; b=FZ8bAXQ17fYOQ3m9dD0/kkbG6U8eSIA5/NCe6wvpbEA3MgRCdXqt+9FLn5fn4k4t279AUFhktvORFANZ0HhDh+KYB3Rb2RB9rEibGq5PYSxhUuodhxlRGBU0vX0ptv0ZjefqoBAumM1gkcRzZlhQ8H92CgM0pXEDLWwdtqsRFnA= Received: from DB6PR0402MB2727.eurprd04.prod.outlook.com (10.172.247.10) by DB6PR0402MB2709.eurprd04.prod.outlook.com (10.172.246.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.25; Mon, 13 May 2019 16:09:53 +0000 Received: from DB6PR0402MB2727.eurprd04.prod.outlook.com ([fe80::e194:a71a:3497:783e]) by DB6PR0402MB2727.eurprd04.prod.outlook.com ([fe80::e194:a71a:3497:783e%8]) with mapi id 15.20.1878.024; Mon, 13 May 2019 16:09:53 +0000 From: Roy Pledge To: "linuxppc-dev@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leo Li CC: Madalin-cristian Bucur , Laurentiu Tudor , Roy Pledge Subject: [PATCH v1 8/8] soc/fsl/qbman: Update device tree with reserved memory Thread-Topic: [PATCH v1 8/8] soc/fsl/qbman: Update device tree with reserved memory Thread-Index: AQHVCaZMC9A3JXjA7EWmSckX0C+ZXA== Date: Mon, 13 May 2019 16:09:53 +0000 Message-ID: <1557763756-24118-9-git-send-email-roy.pledge@nxp.com> References: <1557763756-24118-1-git-send-email-roy.pledge@nxp.com> In-Reply-To: <1557763756-24118-1-git-send-email-roy.pledge@nxp.com> Reply-To: Roy Pledge Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: SN4PR0501CA0144.namprd05.prod.outlook.com (2603:10b6:803:2c::22) To DB6PR0402MB2727.eurprd04.prod.outlook.com (2603:10a6:4:98::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=roy.pledge@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [72.142.119.78] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 895fd7e1-08a3-4e64-1402-08d6d7bd6f49 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB6PR0402MB2709; x-ms-traffictypediagnostic: DB6PR0402MB2709: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0036736630 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(366004)(376002)(396003)(39860400002)(189003)(199004)(81166006)(81156014)(8936002)(2201001)(110136005)(54906003)(316002)(476003)(2501003)(86362001)(2616005)(50226002)(2906002)(66556008)(64756008)(66446008)(66946007)(66476007)(73956011)(478600001)(3450700001)(6636002)(305945005)(5660300002)(386003)(6506007)(102836004)(43066004)(6486002)(7736002)(26005)(186003)(6436002)(66066001)(4326008)(446003)(36756003)(99286004)(486006)(25786009)(11346002)(76176011)(52116002)(53936002)(44832011)(6512007)(8676002)(14454004)(68736007)(71200400001)(256004)(3846002)(71190400001)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0402MB2709;H:DB6PR0402MB2727.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: JKPa05CMRwVDQ/WgwqE15na9WAqApSNqjZ+MaOE0u0kr6I4E9p9x0A9JCJbO0CZ+Dg1VvJxdv51Uhx5MKx5wQBK50MU3112XCfrIAfEr5LVEmC0HZxp4MQGePlNu+fx6HjEi/wsXCvHOgtZNTV1jNbyWlk04iASCI1v2OOCEF5q6IYibItfFwSmQ0M5Qxn1Djz4dmrREByf7CTaS4jtzKw4Zb6dXXouGgP8daITzImlJaBeOtjtp6/2jcRxV2qDnehkv0VbTZYMpdhHBgEzvdZ56qUTl5DEkSiENFHpXhVE4Uo4eZ0uX7SQ9lk7qC+yN5/udGzGAeQMWOdZQeXx8TW8L7IjknpKPl8qTiMbnXGU9c6/q2ad2ZAUxbesjbnsIodICVkk3+eaiHP4OC//rURKRGelTzkyjIVoezV+DCmo= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 895fd7e1-08a3-4e64-1402-08d6d7bd6f49 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2019 16:09:53.8227 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0402MB2709 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V2hlbiB1c2luZyB0aGUgcmVzZXJ2ZWQgbWVtb3J5IG5vZGUgaW4gdGhlIGRldmljZSB0cmVlIHRo ZXJlIGFyZQ0KdHdvIG9wdGlvbnMgLSBkeW5hbWljIG9yIHN0YXRpYy4gSWYgYSBkeW5hbWljIGFs bG9jYXRpb24gd2FzDQpzZWxlY3RlZCAod2hlcmUgdGhlIGtlcm5lbCBzZWxlY3RzIHRoZSBhZGRy ZXNzIGZvciB0aGUgYWxsb2NhdGlvbikNCmNvbnZlcnQgaXQgdG8gYSBzdGF0aWMgYWxsb2NhdGlv biBieSBpbnNlcnRpbmcgdGhlIHJlZyBwcm9wZXJ0eS4NClRoaXMgd2lsbCBlbnN1cmUgdGhlIHNh bWUgbWVtb3J5IGlzIHJldXNlZCBhZnRlciBhIGtleGVjKCkNCg0KU2lnbmVkLW9mZi1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