From patchwork Mon Sep 3 12:53:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Wang X-Patchwork-Id: 10585819 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 223D0112B for ; Mon, 3 Sep 2018 12:54:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E70B29246 for ; Mon, 3 Sep 2018 12:54:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 020A329313; Mon, 3 Sep 2018 12:54:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A7E5D29246 for ; Mon, 3 Sep 2018 12:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=0lEaE9MBNdbJOyoN/m8TlMxfEiZzjo2ucAZVgSnw6v0=; b=jjhbVIL5iZfcL7 Iyq23RniO/JF2YLdIqbTAgoMJnx6njcC1Nu+v4gNVbx45Ct6gsfwINELFtI3RgBK95hzKFtxt+KqS UHfpsBA2cSPIP2fqau/ar8byOCeIVSPfdi03aGBswCLd7wX8jPuoj/dJXbtPrN3ks03vNlPN9gL4V 16rOUhShX4LioruXp1UINh+tayK00Wrbw9M9W7SMPHSb9Mav6u/paVaGX4IEysfWuLINSkJzD2S5D /38dsahmmKcliiLf/YHxeexoEcl10dniMaHB9gYIYc2AlyKsDe3xZx6vz6je5m1Y0Y+cUVjLez68+ f/F2nr6uYBTgLWoGQVcg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwoMp-0001JK-MI for patchwork-linux-mediatek@patchwork.kernel.org; Mon, 03 Sep 2018 12:54:07 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwoMi-0001G1-Hj for linux-mediatek@lists.infradead.org; Mon, 03 Sep 2018 12:54:05 +0000 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: , 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 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180903_055400_716269_7E024F07 X-CRM114-Status: UNSURE ( 6.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-bluetooth@vger.kernel.org, Sean Wang , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+)