Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934126AbeALQmn (ORCPT + 1 other); Fri, 12 Jan 2018 11:42:43 -0500 Received: from mail-eopbgr00040.outbound.protection.outlook.com ([40.107.0.40]:45344 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934044AbeALQmk (ORCPT ); Fri, 12 Jan 2018 11:42:40 -0500 From: Oleksandr Shamray To: Florian Fainelli , "gregkh@linuxfoundation.org" , "arnd@arndb.de" CC: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "openbmc@lists.ozlabs.org" , "joel@jms.id.au" , "jiri@resnulli.us" , "tklauser@distanz.ch" , "linux-serial@vger.kernel.org" , Vadim Pasternak , system-sw-low-level , "robh+dt@kernel.org" , "openocd-devel-owner@lists.sourceforge.net" , "linux-api@vger.kernel.org" , "davem@davemloft.net" , "mchehab@kernel.org" , Jiri Pirko Subject: RE: [patch v15 1/4] drivers: jtag: Add JTAG core driver Thread-Topic: [patch v15 1/4] drivers: jtag: Add JTAG core driver Thread-Index: AQHTfXcJYDm1w6usvESRR+honO/XmKNUr80AgBvBXiA= Date: Fri, 12 Jan 2018 16:42:35 +0000 Message-ID: References: <1514202808-29747-1-git-send-email-oleksandrs@mellanox.com> <1514202808-29747-2-git-send-email-oleksandrs@mellanox.com> <13433849-cb7d-e2c0-4ce9-d91a6012d7d7@gmail.com> In-Reply-To: <13433849-cb7d-e2c0-4ce9-d91a6012d7d7@gmail.com> Accept-Language: en-US, uk-UA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=oleksandrs@mellanox.com; x-originating-ip: [79.135.198.29] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;AM4PR0501MB2340;7:IpBCQ1Cydmgo2yb7OxWLP1dfWE93EYt1+sPY8M6lJKapfmgsWtUVVvCKURuswwXpKVq08jwmFzu1wxgajoTrQTSqkDOI+cI9WSglcy6mwmYEgXqVTjxA4hSFZOJEcCQr0HOaHkT9w1ClRHFgqKXwKyEnDM7FxwTW8VvSKzfwbbudKWFf0UTm6V5Ma0BTGgOaMEh6VM5ebS/5fb3UIo9mlb7UmFNgAs6WmgCy9kIx8aGcoFgG16b4ysiZVdPUd2k0 x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 968811ee-93c0-4b21-0955-08d559db7c0e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603307)(7153060)(7193020);SRVR:AM4PR0501MB2340; x-ms-traffictypediagnostic: AM4PR0501MB2340: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(143289334528602)(9452136761055)(65623756079841)(85827821059158)(258649278758335)(42262312472803)(155532106045638); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3231023)(944501075)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041268)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:AM4PR0501MB2340;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:AM4PR0501MB2340; x-forefront-prvs: 0550778858 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(346002)(376002)(39380400002)(396003)(39860400002)(13464003)(189003)(199004)(2906002)(81166006)(5250100002)(2501003)(8936002)(81156014)(3280700002)(33656002)(8676002)(3660700001)(3846002)(6116002)(14454004)(478600001)(2900100001)(2950100002)(7736002)(74316002)(7416002)(5660300001)(53546011)(7696005)(59450400001)(305945005)(6506007)(76176011)(102836004)(105586002)(25786009)(316002)(110136005)(54906003)(68736007)(99286004)(106356001)(86362001)(107886003)(39060400002)(6246003)(66066001)(9686003)(2201001)(6436002)(55016002)(4326008)(97736004)(229853002)(53936002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM4PR0501MB2340;H:AM4PR0501MB2194.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-microsoft-antispam-message-info: KtzxI9mWv+4X6+XeCdXFRNHcIHDyiaYCB4Puxnrhhw4S/mOEztQrDcpaVB2XSiYNybmrSepTyO4Wi9I1gvM5mw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 968811ee-93c0-4b21-0955-08d559db7c0e X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2018 16:42:35.6016 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0501MB2340 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRmxvcmlhbiBGYWluZWxs aSBbbWFpbHRvOmYuZmFpbmVsbGlAZ21haWwuY29tXQ0KPiBTZW50OiAyNiDQtNC10LrQsNCx0YDR jyAyMDE3INCzLiAxOjA5DQo+IFRvOiBPbGVrc2FuZHIgU2hhbXJheSA8b2xla3NhbmRyc0BtZWxs YW5veC5jb20+Ow0KPiBncmVna2hAbGludXhmb3VuZGF0aW9uLm9yZzsgYXJuZEBhcm5kYi5kZQ0K PiBDYzogbGludXgta2VybmVsQHZnZXIua2VybmVsLm9yZzsgbGludXgtYXJtLWtlcm5lbEBsaXN0 cy5pbmZyYWRlYWQub3JnOw0KPiB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