Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5528145yba; Mon, 13 May 2019 12:27:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyISYCMj+7TZ3oIJjZHU/4FBVv8Rnm6O1u4fdkuIw2IvgzClCC1wkrYMU/9eYVQAdTvCrQI X-Received: by 2002:a17:902:2907:: with SMTP id g7mr8654878plb.114.1557775631946; Mon, 13 May 2019 12:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557775631; cv=none; d=google.com; s=arc-20160816; b=bmZoOfDM9FcgSrR9+uVEnpilX6rwymD80KIZE5FOhz94QtGCXptSUvxq7ek36zV+MK lfU7cvj5d2sIUodH63BjC4Eof7oIliY/SxQ/AkFtY2KT26eet7njZ7JuKiA+imOVDMN3 s46FYjLcrTSm+owOLhd+2inGZK2vLQM1Wqr2y5eXC9hkW6hxbNa5mCSsP7wEXGHjUgKm 7SMw+bZpv5baWv1SBdPzZGVCtoq/yc2ZJ2eh1Hw+TU3uDlU27Exu0fTnOhc2i7L6mT8f dvj1AOgFiDZvaP75fdzTfZN9hPDtUamtA5i3dI0mh9UhjJuVB4JLzifMtIPFYo2eN9TS Hv9w== 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=EY0LRsRPtSU/gxC8mt7BCv3VogHZY/tg1SzMzDqUgcQ=; b=r0u0dmvNqyAlq5qzOrVx+TRbH+Ji7Ksm+0SstnDn7y9/ZkihAJNxPyICyhOw/8Mqe3 2e4N2UP8fEVUBDaHSiplhSPa9epeMX2v7mOQWXESzgii+Ru0aM7KpgAkgGEv/PH24ujr 5aLlgxZYqv5xJSA5GpfhXGUCoUxPGqi/zoDiL2c37Z2LOC+OYtRWJ54TzhRStxLTQKhG 0GttO8DQxdVz3sbLgPwjy6xLQhm+zNAA1HU/ksu7I2ootdddZq3LcOCNOYZETJm0HMwO t+fIQa1B1mpSBIeMxzdWhMNBpxONTUtXktOalT9FhMj4TeQbEn8DeawkEBBYjcmk0fzl rOEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Ffgc+3H1; 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 f34si18719555plf.258.2019.05.13.12.26.53; Mon, 13 May 2019 12:27:11 -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=Ffgc+3H1; 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 S1731454AbfEMQJy (ORCPT + 99 others); Mon, 13 May 2019 12:09:54 -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 S1731438AbfEMQJx (ORCPT ); Mon, 13 May 2019 12:09:53 -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=EY0LRsRPtSU/gxC8mt7BCv3VogHZY/tg1SzMzDqUgcQ=; b=Ffgc+3H1nBeDsguxpnCdBJrvCJ0rxXh51MtiOix2xJ1Kk+n1uSzajzme/oXpDkGIDlJYJjbGB6DNT6yJTyKDCMtLjHJahWewbC3YB9/W7YVLkEm5kCuNEW9uwWkA7RXbPzNNUiXPy0F8kQd3UIU3hlcO0wHSxoRphFTN4cmCEMU= 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:44 +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:44 +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 3/8] soc/fsl/qbman: Cleanup QMan queues if device was already initialized Thread-Topic: [PATCH v1 3/8] soc/fsl/qbman: Cleanup QMan queues if device was already initialized Thread-Index: AQHVCaZHUnKeNRojtkWIB4isAjsyxA== Date: Mon, 13 May 2019 16:09:44 +0000 Message-ID: <1557763756-24118-4-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: f32c38cf-227f-4c61-50d6-08d6d7bd69c0 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:2150; 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: AFBBaOgHT6NrSajKPZ3Lu/Rie0fhEj4/61QLSrVdzCNE9fPL6belWuIxpETvKRyyB9qbExl6yMZ+Pe/6nwPhTymoDMDrkX4c5Nq2jlUXvFkMzZlxQ3qpznFcNMP+4UVOoTzuiou2FO7ldMHAa59G9dGy2jk3mRiyfUV198+0ePHr3WOckWa6lEe7pXSj+KKGbbeUhgL7rr3F9VhQaknc1g5j8p0AUmqPuLHlYL4r25vD+KudOQ0/XWW1fOVdUHW7DgYv2RceZTI8XK0F2RVTVSNwaHox0p5IWRITh20OEdipfajzdttGAAgGHuvuHkbUcXpldhXLOTLvQ/HZXinY7iNbSRh2sAua3mVUm3hFWYhQtP1NVdesyHQ93Xhl18igEorJn1B7DF8pnSIq073GCG57xiRDEkse9J9+SVkmdv0= 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: f32c38cf-227f-4c61-50d6-08d6d7bd69c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 May 2019 16:09:44.5298 (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 SWYgdGhlIFFNYW4gZGV2aWNlIHdhcyBwcmV2aW91c2x5IGluaXRpYWxpemVkIG1ha2Ugc3VyZSBh bGwgdGhlDQpmcmFtZSBxdWV1ZXMgYXJlIG91dCBvZiBzZXJ2aWNlIG9uY2UgYWxsIHRoZSBwb3J0 YWxzIGFyZSBwcm9iZWQuDQpUaGlzIGhhbmRsZXMgdGhlIGNhc2Ugd2hlcmUgdGhlIGtlcm5lbCBp cyByZXN0YXJ0ZWQgd2l0aG91dCB0aGUNClNvQyBiZWluZyByZXNldCAoa2V4ZWMgZm9yIGV4YW1w bGUpDQoNClNpZ25lZC1vZmYtYnk6IFJveSBQbGVkZ2UgPHJveS5wbGVkZ2VAbnhwLmNvbT4NCi0t LQ0KIGRyaXZlcnMvc29jL2ZzbC9xYm1hbi9xbWFuLmMgICAgICAgIHwgID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