Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5398382yba; Mon, 13 May 2019 10:09:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAuR8SC29PRtAC55v89jeMMJlW3+cpFfZpyu8orjbvwNsMaj87GBJ/mwcpK38Cez+qWl3x X-Received: by 2002:aa7:93ba:: with SMTP id x26mr34715161pff.238.1557767349147; Mon, 13 May 2019 10:09:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557767349; cv=none; d=google.com; s=arc-20160816; b=oAZ6H6zXEqAO6n+K0fGK8n4el9UHf3BIF5gkU+V62AGDQxNJn0OnK6P6znDB/4+l9n a6eNBCnKnBNHRuzsUpBg9siNBwFjnIoB/EmYFZNOXFkfyRirS/mu4QmZambCXGX4cloC HaXihN4C78/5NhkZAV+azQr8aZoc+QEP2GZr6+nNXt0MOz6/sZxqOv0M5YhLT7vg0rWF swMreglAGFCsOlwWuSwLSfHlser2DIGMBzHig+89KLHQ6gPFJpU879EEtIcdYmPfZu7V uht2Fc8RS991k0NKPg76G0Ze6dIUyqTdGXzB+cL6fvzQgaU17USpKV2Wh7ic3YS4q6lT sMGg== 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=PqmS1Wvr0SSsg26E2C3Ige4Jd8rgaFjihegp+OwQBfw=; b=IiWgjncOCT36hTusMWZDG6IGV9OeyQzfLk+WtiZg5VmWCHIm9HQx9RjOKWbnOIREy7 AXgs4I4Qc3AoxhpNZUYKR9OZomeyJOKi8IqiHpIEV3mlbmURjpF3tyUPNFkiMALynq7u G3VQeCyGQGijCb/fuObjMMWnf34liLscJjrrB8g9S4fKlMISXq6pG7pT4/HV+OJ9Kas5 8U8poWAGOOvXd2+/jGGV/wGk6iw/NQc5Q8h5FP9zLuhkSnKCG//C1gejMw9+rb65wpJL 9Nmjg78B+EayoTKUmrs20R7M/CEecYn+TfeRlPvQTMpZsZcib3e0c/y41Ku5zazDanWn nr3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=TGqm8bWZ; 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 v21si17086231pgb.560.2019.05.13.10.08.52; Mon, 13 May 2019 10:09:09 -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=TGqm8bWZ; 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 S1731443AbfEMQJv (ORCPT + 99 others); Mon, 13 May 2019 12:09:51 -0400 Received: from mail-eopbgr10059.outbound.protection.outlook.com ([40.107.1.59]:4487 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731370AbfEMQJu (ORCPT ); Mon, 13 May 2019 12:09:50 -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=PqmS1Wvr0SSsg26E2C3Ige4Jd8rgaFjihegp+OwQBfw=; b=TGqm8bWZNhxMp9eFvIS5LlWUwhjIdpIcyjUVgsgcIWGoRCUB7KInjHNc8gi2Pcm2Z0gjC/tYlw2RG2UnKJME8r1bdPfQeQjSITSfJrg7xVQngCfl/tsCNSAVvPNxiQsdPIlKAwRcKfSQaaWrMSIX483yjomvsJkeoAZjeThT2Iw= 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:42 +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:42 +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 2/8] soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup Thread-Topic: [PATCH v1 2/8] soc/fsl/qbman: Cleanup buffer pools if BMan was initialized prior to bootup Thread-Index: AQHVCaZGBsQ22UU/s06XbqnO82VgUw== Date: Mon, 13 May 2019 16:09:42 +0000 Message-ID: <1557763756-24118-3-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: a1a8d328-b6ea-43ff-7f49-08d6d7bd68a3 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:494; 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: ZrWWF91ltjzetW/2WDmd3MiZDhPthghVvzQfz6tLGITy1UEo9n+nuSTi3Dp4TSo9UMXT6InpYWaEBBsXVjNEoWPDOUcDfBCHpOiJo9S8IbQf/GMrR+THC3ywO9YoBAZqM/nakmXNrMEENB4gYJdwPNvlCgEjj4t+nvv8LTKFj6/LPnXGvwjRfhLx3U1H7nxeCfufcl5+Cm0GqcA4u11yxORC9bGqC8+5wIS1mmtgJ0JqIIaCWaAnnac26mpPq+K4u2kDQ2DLx3K0uGu80coqwQUUM1hrMvk9nGJv6LL5Z1iUakATj3SUW2S/iTu9Fp9QVke314xOlc+CmVWYYH2jwK6GEuODGQ1N9Oyb+/LbzbeANB9m/bkGMeZxIu53kVvfCsQaO8XHW6vdqCeYZUaniu7Jpl58pUJstnHaq6fNrgY= 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: a1a8d328-b6ea-43ff-7f49-08d6d7bd68a3 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2019 16:09:42.7353 (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 Q2xlYW4gdGhlIEJNYW4gYnVmZmVyIHBvb2xzIGlmIHRoZSBkZXZpY2UgaGFkIGJlZW4gaW5pdGlh bGl6ZWQNCnByZXZpb3VzbHkuICBUaGlzIHdpbGwgZW5zdXJlIGEgY29uc2lzdGVudCBzdGF0ZSBp ZiB0aGUga2VybmVsDQp3YXMgc29mdCByZXN0YXJ0ZWQgKGtleGVjIGZvciBleGFtcGxlKQ0KDQpT aWduZWQtb2ZmLWJ5OiBSb3kgUGxlZGdlIDxyb3kucGxlZGdlQG54cC5jb20+DQotLS0NCiBkcml2 ZXJzL3NvYy9mc2wvcWJtYW4vYm1hbi5jICAgICAgICB8IDE3ICsrKysrKysrKy0tLS0tLS0tDQog ZHJpdmVycy9zb2MvZnNsL3FibWFuL2JtYW5fY2Nzci5jICAgfCAxMCArKysrKysrKysrDQogZ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