Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA23DC2BC61 for ; Tue, 30 Oct 2018 13:42:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70198205F4 for ; Tue, 30 Oct 2018 13:42:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 70198205F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727759AbeJ3WgQ (ORCPT ); Tue, 30 Oct 2018 18:36:16 -0400 Received: from mga03.intel.com ([134.134.136.65]:40034 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727450AbeJ3WgQ (ORCPT ); Tue, 30 Oct 2018 18:36:16 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Oct 2018 06:42:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,444,1534834800"; d="scan'208";a="92386619" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by FMSMGA003.fm.intel.com with ESMTP; 30 Oct 2018 06:42:41 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 30 Oct 2018 06:42:41 -0700 Received: from bgsmsx151.gar.corp.intel.com (10.224.48.42) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.408.0; Tue, 30 Oct 2018 06:42:41 -0700 Received: from bgsmsx102.gar.corp.intel.com ([169.254.2.202]) by BGSMSX151.gar.corp.intel.com ([169.254.3.245]) with mapi id 14.03.0415.000; Tue, 30 Oct 2018 19:12:37 +0530 From: "Tumkur Narayan, Chethan" To: Marcel Holtmann CC: "linux-bluetooth@vger.kernel.org" , "Bag, Amit K" , "Hegde, Raghuram" , "Ghorai, Sukumar" Subject: RE: [PATCH 1/2] Bluetooth: Add Rfkill driver for Intel Bluetooth controller Thread-Topic: [PATCH 1/2] Bluetooth: Add Rfkill driver for Intel Bluetooth controller Thread-Index: AQHUcD6lWd2/N15BdkC4XEtkpGLI/6U3RREAgACGuWA= Date: Tue, 30 Oct 2018 13:42:37 +0000 Message-ID: <431554D50C88CC439737EC4A9A8AFB8C82324567@BGSMSX102.gar.corp.intel.com> References: <1540896634-17173-1-git-send-email-chethan.tumkur.narayan@intel.com> <808682A2-B3E5-4269-A3A3-CDF302CB2CF6@holtmann.org> In-Reply-To: <808682A2-B3E5-4269-A3A3-CDF302CB2CF6@holtmann.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org SGkgTWFyY2VsLA0KDQpUaGFua3MgZm9yIHlvdXIgaW5wdXRzLCBJIHdpbGwgY3JlYXRlIHYxIHBh dGNoIHdpdGggdG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