Return-Path: From: Amitkumar Karwar To: Loic Poulain , Jeffy Chen , "linux-bluetooth@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "Ganapathi Bhat" , Marcel Holtmann Subject: RE: [v11,3/3] Bluetooth: hci_uart: Support firmware download for Marvell Date: Tue, 9 Aug 2016 16:18:02 +0000 Message-ID: <2680ec4f15c0459298c7ca91bdf73f31@SC-EXCH04.marvell.com> References: <1462548714-7971-3-git-send-email-akarwar@marvell.com> <576CCCDE.1050004@rock-chips.com> <5774FA48.7080803@intel.com> In-Reply-To: <5774FA48.7080803@intel.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 List-ID: SGkgTG9pYywNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBMb2ljIFBv dWxhaW4gW21haWx0bzpsb2ljLnBvdWxhaW5AaW50ZWwuY29tXQ0KPiBTZW50OiBUaHVyc2RheSwg SnVuZSAzMCwgMjAxNiA0OjI0IFBNDQo+IFRvOiBBbWl0a3VtYXIgS2Fyd2FyOyBKZWZmeSBDaGVu OyBsaW51eC1ibHVldG9vdGhAdmdlci5rZXJuZWwub3JnDQo+IENjOiBsaW51eC1rZXJuZWxAdmdl ci5rZXJuZWwub3JnOyBHYW5hcGF0aGkgQmhhdDsgQ2F0aHkgTHVvOyBNYXJjZWwNCj4gSG9sdG1h bm4NCj4gU3ViamVjdDogUmU6IFt2MTEsMy8zXSBCbHVldG9vdGg6IGhjaV91YXJ0OiBTdXBwb3J0 IGZpcm13YXJlIGRvd25sb2FkDQo+IGZvciBNYXJ2ZWxsDQo+IA0KPiBIaSBBbWl0a3VtYXIsDQo+ IA0KPiANCj4gPiBIaSBNYXJjZWwsDQo+IA0KPiBJIHN1Z2dlc3QgeW91IHRvIGFkZCBNYXJjZWwg YXMgcmVjaXBpZW50IG9mIHlvdXIgcGF0Y2hlcy4NCj4gDQo+ID4NCj4gPj4gRnJvbTogSmVmZnkg Q2hlbiBbbWFpbHR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