Return-path: Received: from mx0a-0016f401.pphosted.com ([67.231.148.174]:56566 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751202AbdLAIgI (ORCPT ); Fri, 1 Dec 2017 03:36:08 -0500 From: Xinming Hu To: Brian Norris CC: Xinming Hu , Linux Wireless , Kalle Valo , "Dmitry Torokhov" , "rajatja@google.com" , Zhiyuan Yang , Tim Song , Cathy Luo , Ganapathi Bhat , James Cao Subject: Re: Re: Re: [PATCH 3/3] mwifiex: debugfs: trigger device dump for usb interface Date: Fri, 1 Dec 2017 08:36:01 +0000 Message-ID: (sfid-20171201_093612_383331_E2D3E5A5) Content-Type: text/plain; charset="gb2312" MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: SGkgQnJpYW4sDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQnJpYW4g Tm9ycmlzIFttYWlsdG86YnJpYW5ub3JyaXNAY2hyb21pdW0ub3JnXQ0KPiBTZW50OiAyMDE3xOox MtTCMcjVIDA6MzMNCj4gVG86IFhpbm1pbmcgSHUgPGh1eG1AbWFydmVsbC5jb20+DQo+IENjOiBY aW5taW5nIEh1IDxodXhpbm1pbmc4MjBAZ21haWwuY29tPjsgTGludXggV2lyZWxlc3MNCj4gPGxp bnV4LXdpcmVsZXNzQHZnZXIua2VybmVsLm9yZz47IEthbGxlIFZhbG8gPGt2YWxvQGNvZGVhdXJv cmEub3JnPjsgRG1pdHJ5DQo+IFRvcm9raG92IDxkdG9yQGdvb2dsZS5jb20+OyByYWphdGphQGdv b2dsZS5jb207IFpoaXl1YW4gWWFuZw0KPiA8eWFuZ3p5QG1hcnZlbGwuY29tPjsgVGltIFNvbmcg PHNvbmd0YW9AbWFydmVsbC5jb20+OyBDYXRoeSBMdW8NCj4gPGNsdW9AbWFydmVsbC5jb20+OyBH YW5hcGF0aGkgQmhhdCA8Z2JoYXRAbWFydmVsbC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