Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1642625imm; Mon, 3 Sep 2018 05:56:09 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdap3eVQDFIwfJ7L5EYb9aTNEy+XGAVnGZr9can67mluR9RgnIbdwtF4gi1L1wF7uA9khltt X-Received: by 2002:a17:902:aa49:: with SMTP id c9-v6mr4201060plr.195.1535979369600; Mon, 03 Sep 2018 05:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535979369; cv=none; d=google.com; s=arc-20160816; b=c/ioQO9o9Dlaxak+25tmsqjZZIlBWun6l+N4aIEcm8K4aiWN2oZAzMk9YSTR97yJkD 682qa/x33kitZd8EkrFJZX+qRgJ6xnfrPnng+DmjWadpMtrPMAaYRb0wPj+jv5CzUM9V KFfhJECDutOuz9An9VuXzvqYg7o/leJoqbg90gpNQ2B3Zleowr9m0TY68RH/M7jnjxO9 LKlUguEE5v3AAXPp9jND5LGbesi5nJ2jv53Xp2N9qcXt2+rfnrbzOcoQBKIWiZUiVytT u16DBa8K9yPeCeszVFEg2+63/y1klEO7+A54VKetSq/VpjO/s+htmxqAO5egftJkLUfB TmBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=2NunjQ8mewni6elGLUB1SPQQaHO6mDOznap8tFYclR8=; b=MbVxV3TDJ1VvcX5sBcQUyN5UmJRJdRpKiTWASlmzlBz5k+aj5phs1yNq2CZH2qeLOl Jo9aEHedEecz6VnMmbsZa1aB6urnTmeax4yxUo0UWHBnoSkMNX7lVDqwCZWRJ3yCKlRe 3hzkgB7ZBQSpEKlasQES5p74qwgxR4pgEPPU4z92amyLjFlrqb9CXjF9xQO6BWKb3vvp O8GqLLKY+IMPSVNRx2ENcma/Ntl3rctxVvddpUPZ5tYGQHA/xMjWlnN0XZ1dMuRfkUt+ WxajspUnlqJMwLjnpwMdW1boDgu+lI/03r+2Y4qYX02HWAiVGYD9r7HkUXhImBIUR/rS FkrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j13-v6si19497090pfd.319.2018.09.03.05.55.54; Mon, 03 Sep 2018 05:56:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727159AbeICRNu (ORCPT + 99 others); Mon, 3 Sep 2018 13:13:50 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:7307 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725866AbeICRNu (ORCPT ); Mon, 3 Sep 2018 13:13:50 -0400 X-UUID: e4130b40bae147798b6f316ac02b7c90-20180903 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 238884149; Mon, 03 Sep 2018 20:53:43 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 3 Sep 2018 20:53:40 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Mon, 3 Sep 2018 20:53:40 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v3 0/2] Bluetooth: mediatek: Add protocol support for MediaTek USB devices Date: Mon, 3 Sep 2018 20:53:38 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang v3: add fixes and enhancements based on [1] * reuse flags and evt_skb btusb already had * add ctrl_anchor and the corresponding handling * apply mtk specific recv function * add more comments explaining wmt ctrl urbs behavior. [1] http://lists.infradead.org/pipermail/linux-mediatek/2018-August/014724.html v2: add fixes and enhancements based on [1] * include /sys/kernel/debug/usb/devices portion in the commit message. * turn default into n for config BT_HCIBTUSB_MTK in Kconfig * only add MediaTek support to btusb.c * drop cmd_sync callback usage * use __hci_cmd_send to send WMT commands * add wait event handling similar to what is being done in btmtkuart.c * submit a control IN URB similar to interrupt IN URB on demand for the WMT commands during setup * add cosmetic changes [1] http://lists.infradead.org/pipermail/linux-mediatek/2018-August/014650.html http://lists.infradead.org/pipermail/linux-mediatek/2018-August/014656.html v1: This adds the support of enabling MT7668U and MT7663U Bluetooth function running on the top of btusb driver. The patch also adds a newly created file mtkbt.c able to be reused independently from the transport type such as UART, USB and SDIO. Sean Wang (2): Bluetooth: mediatek: Add protocol support for MediaTek MT7668U USB devices Bluetooth: mediatek: Add protocol support for MediaTek MT7663U USB devices drivers/bluetooth/Kconfig | 11 + drivers/bluetooth/btusb.c | 552 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 563 insertions(+) -- 2.7.4