Return-Path: From: Ilya Faenson To: Frederic Danis , "linux-bluetooth@vger.kernel.org" CC: Arend Van Spriel Subject: RE: [PATCH 1/3] Bluetooth: hci_uart: Add PM for BCM2E39 Date: Thu, 23 Jul 2015 17:49:43 +0000 Message-ID: References: <1435929751-26831-1-git-send-email-frederic.danis@linux.intel.com> <55A7D771.9020705@linux.intel.com> <55B1022F.8080602@linux.intel.com> In-Reply-To: <55B1022F.8080602@linux.intel.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: SGkgRnJlZCwNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEZyZWRlcmljIERh bmlzIFttYWlsdG86ZnJlZGVyaWMuZGFuaXNAbGludXguaW50ZWwuY29tXSANClNlbnQ6IFRodXJz ZGF5LCBKdWx5IDIzLCAyMDE1IDExOjAzIEFNDQpUbzogSWx5YSBGYWVuc29uOyBsaW51eC1ibHVl dG9vdGhAdmdlci5rZXJuZWwub3JnDQpDYzogQXJlbmQgVmFuIFNwcmllbA0KU3ViamVjdDogUmU6 IFtQQVRDSCAxLzNdIEJsdWV0b290aDogaGNpX3VhcnQ6IEFkZCBQTSBmb3IgQkNNMkUzOQ0KDQpI ZWxsbyBJbHlhLA0KDQpPbiAxNi8wNy8yMDE1IDIwOjU0LCBJbHlhIEZhZW5zb24gd3JvdGU6DQo+ IEhpIEZyZWQsDQo+DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGxpbnV4 LWJsdWV0b290aC1vd25lckB2Z2VyLmtlcm5lbC5vcmcNCj4gW21haWx0bzpsaW51eC1ibHVldG9v dGgtb3duZXJAdmdlci5rZXJuZWwub3JnXSBPbiBCZWhhbGYgT2YgRnJlZGVyaWMgRGFuaXMNCj4g U2VudDogVGh1cnNkYXksIEp1bHkgMTYsIDIwMTUgMTI6MTAgUE0NCj4gVG86IGxpbnV4LWJsdWV0 b290aEB2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wgIkJDTTJFMzkiKSAgLy8g X0hJRDogSGFyZHdhcmUgSUQNCiAgICAgICAgICAgICBOYW1lIChfREVQLCBQYWNrYWdlICgweDAz KSAgLy8gX0RFUDogRGVwZW5kZW5jaWVzDQogICAgICAgICAgICAgew0KICAgICAgICAgICAgICAg ICBHUE8wLA0KICAgICAgICAgICAgICAgICBHUE8yLA0KICAgICAgICAgICAgICAgICBVUlQxDQog ICAgICAgICAgICAgfSkNCiAgICAgICAgICAgICBNZXRob2QgKF9TVEEsIDAsIE5vdFNlcmlhbGl6 ZWQpICAvLyBfU1RBOiBTdGF0dXMNCiAgICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgIFJl dHVybiAoMHgwRikNCiAgICAgICAgICAgICB9DQoNCiAgICAgICAgICAgICBNZXRob2QgKF9DUlMs IDAsIE5vdFNlcmlhbGl6ZWQpICAvLyBfQ1JTOiBDdXJyZW50IFJlc291cmNlIA0KU2V0dGluZ3MN CiAgICAgICAgICAgICB7DQogICAgICAgICAgICAgICAgIE5hbWUgKFVCVUYsIFJlc291cmNlVGVt cGxhdGUgKCkNCiAgICAgICAgICAgICAgICAgew0KICAgICAgICAgICAgICAgICAgICAgVWFydFNl cmlhbEJ1cyAoMHgwMDAxQzIwMCwgRGF0YUJpdHNFaWdodCwgU3RvcEJpdHNPbmUsDQogICAgICAg ICAgICAgICAgICAgICAgICAgMHhGQywgTGl0dGxlRW5kaWFuLCBQYXJpdHlUeXBlTm9uZSwgDQpG bG93Q29udHJvbEhhcmR3YXJlLA0KICAgICAgICAgICAgICAgICAgICAgICAgIDB4MDAyMCwgMHgw MDIwLCAiXFxfU0IuVVJUMSIsDQogICAgICAgICAgICAgICAgICAgICAgICAgMHgwMCwgUmVzb3Vy Y2VDb25zdW1lciwgLA0KICAgICAgICAgICAgICAgICAgICAgICAgICkNCiAgICAgICAgICAgICAg ICAgICAgIEludGVycnVwdCAoUmVzb3VyY2VDb25zdW1lciwgRWRnZSwgQWN0aXZlSGlnaCwgDQpF eGNsdXNpdmVBbmRXYWtlLCAsLCApDQogICAgICAgICAgICAgICAgICAgICB7DQogICAgICAgICAg ICAgICAgICAgICAgICAgMHgwMDAwMDA0NiwNCiAgICAgICAgICAgICAgICAgICAgIH0NCiAgICAg ICAgICAgICAgICAgICAgIEdwaW9JbyAoRXhjbHVzaXZlLCBQdWxsRGVmYXVsdCwgMHgwMDAwLCAw eDAwMDAsIA0KSW9SZXN0cmljdGlvbk91dHB1dE9ubHksDQogICAgICAgICAgICAgICAgICAgICAg ICAgIlxcX1NCLkdQTzAiLCAweDAwLCBSZXNvdXJjZUNvbnN1bWVyLCAsDQogICAgICAgICAgICAg ICAgICAgICAgICAgKQ0KICAgICAgICAgICAgICAgICAgICAgICAgIHsgICAvLyBQaW4gbGlzdA0K ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMzQNCiAgICAgICAgICAgICAgICAgICAg ICAgICB9DQogICAgICAgICAgICAgICAgICAgICBHcGlvSW8gKEV4Y2x1c2l2ZSwgUHVsbERlZmF1 bHQsIDB4MDAwMCwgMHgwMDAwLCANCklvUmVzdHJpY3Rpb25PdXRwdXRPbmx5LA0KICAgICAgICAg ICAgICAgICAgICAgICAgICJcXF9TQi5HUE8yIiwgMHgwMCwgUmVzb3VyY2VDb25zdW1lciwgLA0K ICAgICAgICAgICAgICAgICAgICAgICAgICkNCiAgICAgICAgICAgICAgICAgICAgICAgICB7ICAg Ly8gUGluIGxpc3QNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDA5DQogICAgICAg ICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICB9KQ0KICAgICAgICAgICAgICAg ICBOYW1lIChQQlVGLCBSZXNvdXJjZVRlbXBsYXRlICgpDQogICAgICAgICAgICAgICAgIHsNCiAg ICAgICAgICAgICAgICAgICAgIFVhcnRTZXJpYWxCdXMgKDB4MDAwMUMyMDAsIERhdGFCaXRzRWln aHQsIFN0b3BCaXRzT25lLA0KICAgICAgICAgICAgICAgICAgICAgICAgIDB4RkMsIExpdHRsZUVu ZGlhbiwgUGFyaXR5VHlwZU5vbmUsIA0KRmxvd0NvbnRyb2xOb25lLA0KICAgICAgICAgICAgICAg ICAgICAgICAgIDB4MDAyMCwgMHgwMDIwLCAiXFxfU0IuVVJUMSIsDQogICAgICAgICAgICAgICAg ICAgICAgICAgMHgwMCwgUmVzb3VyY2VDb25zdW1lciwgLA0KICAgICAgICAgICAgICAgICAgICAg ICAgICkNCiAgICAgICAgICAgICAgICAgICAgIEludGVycnVwdCAoUmVzb3VyY2VDb25zdW1lciwg RWRnZSwgQWN0aXZlSGlnaCwgDQpFeGNsdXNpdmVBbmRXYWtlLCAsLCApDQogICAgICAgICAgICAg ICAgICAgICB7DQogICAgICAgICAgICAgICAgICAgICAgICAgMHgwMDAwMDA0NiwNCiAgICAgICAg ICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgIEdwaW9JbyAoRXhjbHVzaXZlLCBQ dWxsRGVmYXVsdCwgMHgwMDAwLCAweDAwMDAsIA0KSW9SZXN0cmljdGlvbk91dHB1dE9ubHksDQog ICAgICAgICAgICAgICAgICAgICAgICAgIlxcX1NCLkdQTzIiLCAweDAwLCBSZXNvdXJjZUNvbnN1 bWVyLCAsDQogICAgICAgICAgICAgICAgICAgICAgICAgKQ0KICAgICAgICAgICAgICAgICAgICAg ICAgIHsgICAvLyBQaW4gbGlzdA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAweDAwMDkN CiAgICAgICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgICBHcGlvSW8g KEV4Y2x1c2l2ZSwgUHVsbERlZmF1bHQsIDB4MDAwMCwgMHgwMDAwLCANCklvUmVzdHJpY3Rpb25P dXRwdXRPbmx5LA0KICAgICAgICAgICAgICAgICAgICAgICAgICJcXF9TQi5HUE8wIiwgMHgwMCwg UmVzb3VyY2VDb25zdW1lciwgLA0KICAgICAgICAgICAgICAgICAgICAgICAgICkNCiAgICAgICAg ICAgICAgICAgICAgICAgICB7ICAgLy8gUGluIGxpc3QNCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgMHgwMDM0DQogICAgICAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAg ICB9KQ0KICAgICAgICAgICAgICAgICBSZXR1cm4gKFVCVUYpDQogICAgICAgICAgICAgfQ0KICAg ICAgICAgfQ0KICAgICB9DQoNCklGOiBBcHByZWNpYXRlIGFsbCB0aGUgY2xhcmlmaWNhdGlvbnMh DQoNClJlZ2FyZHMNCg0KRnJlZA0KDQotLSANCkZyZWRlcmljIERhbmlzIE9wZW4gU291cmNlIFRl Y2hub2xvZ3kgQ2VudGVyDQpmcmVkZXJpYy5kYW5pc0BpbnRlbC5jb20gSW50ZWwgQ29ycG9yYXRp b24NCg0K