Return-path: Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:35997 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751349AbdDND2e (ORCPT ); Thu, 13 Apr 2017 23:28:34 -0400 From: Xinming Hu To: Brian Norris CC: Linux Wireless , Kalle Valo , Dmitry Torokhov , "rajatja@google.com" , Amitkumar Karwar , Cathy Luo , Ganapathi Bhat Subject: RE: Re: Re: [PATCH v3 4/4] mwifiex: pcie: extract wifi part from combo firmware during function level reset Date: Fri, 14 Apr 2017 03:28:28 +0000 Message-ID: <111627ea9fbd477e83622e8df51f109b@SC-EXCH02.marvell.com> (sfid-20170414_052845_377742_00D7EC5C) References: <1491815374-6555-1-git-send-email-huxinming820@gmail.com> <1491815374-6555-4-git-send-email-huxinming820@gmail.com> <20170411013724.GA135531@google.com> <45a8fcd4f0384fa7b622cf3a87b41ea8@SC-EXCH02.marvell.com> <20170413174954.GA66124@google.com> In-Reply-To: <20170413174954.GA66124@google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGkgQnJhaW4sDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnJpYW4g Tm9ycmlzIFttYWlsdG86YnJpYW5ub3JyaXNAY2hyb21pdW0ub3JnXQ0KPiBTZW50OiAyMDE35bm0 NOaciDE05pelIDE6NTANCj4gVG86IFhpbm1pbmcgSHUNCj4gQ2M6IExpbnV4IFdpcmVsZXNzOyBL YWxsZSBWYWxvOyBEbWl0cnkgVG9yb2tob3Y7IHJhamF0amFAZ29vZ2xlLmNvbTsNCj4gQW1pdGt1 bWFyIEthcndhcjsgQ2F0aHkgTHVvOyBHYW5hcGF0aGkgQmhhdA0KPiBTdWJqZWN0OiBbRVhUXSBS ZTogUmU6IFtQQVRDSCB2MyA0LzRdIG13aWZpZXg6IHBjaWU6IGV4dHJhY3Qgd2lma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