Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2459646ybi; Sat, 1 Jun 2019 17:05:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqws0Yzt1wRg0rV90v+1zKwAZEfY/LdQj43ott1GqOrBlwa4tTtwbGsj2LYwZvQ8RDlDT+qB X-Received: by 2002:a65:6546:: with SMTP id a6mr18597205pgw.169.1559433952406; Sat, 01 Jun 2019 17:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559433952; cv=none; d=google.com; s=arc-20160816; b=REN6DXb8QV7ahfsWBFoeeoc4OKw7K3+5b7o4M4EtI3rs5K7BEzq/O5F5Szrncq2pFB CJJW1k9rBPwx2xoSOyhWVNjlcwtCAziNN0piJbt3HdDabX8OUB9p7563Bn4V7PXuXc4J CR6ZOxnguqnvLHyQGDtrFZsKb8rx9mbAJryMyQ9pS9qtZAVj+OPoEKDW7X13YGXRqK9z YaCpHSNp/MPi3G44cIHjOcfS2pEat6g5DBHpBl8mouvsz/emWc5cPo/+jUyCF+28ncuE 88UpAuN4IGkKHnC1d65mPL8oUFT7t0Z8q9LLu5FMbj1v6TDVuc3EOzF7hqC+J6TP9RdS zHew== 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; bh=N+0Y3cLm9ahz4vrM+niQAARxVab8sW+ozOewUQpHJJw=; b=SOMbJdbA182qN+tCpVR/9dtTXznnHAC1FsHn07wS/uDXScUoBYBIJIq0mpSmaTPxMz 5Ca/dsSyxJ8U+9M1Cnh36avwj/O0FoJM2Q1NdihT2TqEo3+bPWEnHGNZInQvNZt/bNrj 9rnpFvVmnjzDMzLSwh8LkR7gAE1r0adHhxIh0KY7y540g92AQn05GCAqkZ2TvQeLy5Rx 3Xol6GxHkaG++JiwyVkIZEq0VgX5bhWgA+cp9VTqxf1iZtxUN/0TAuwv/H18+sDEKWU2 Rdu5sNrGpUUdRwJZA3wwuM3KReO7uWRzYOmkJRoqUq8H9vkecnnITvXnbIIZM0dP7utg TAaA== 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 a14si13640590pff.135.2019.06.01.17.05.37; Sat, 01 Jun 2019 17:05:52 -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 S1726800AbfFBADG (ORCPT + 99 others); Sat, 1 Jun 2019 20:03:06 -0400 Received: from mailgw02.mediatek.com ([216.200.240.185]:58844 "EHLO mailgw02.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726414AbfFBADB (ORCPT ); Sat, 1 Jun 2019 20:03:01 -0400 X-UUID: c6da88c72c644d519e08893f16711a77-20190601 X-UUID: c6da88c72c644d519e08893f16711a77-20190601 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 974600959; Sat, 01 Jun 2019 16:02:54 -0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Jun 2019 17:02:52 -0700 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sun, 2 Jun 2019 08:02:50 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v7 0/2] Bluetooth: btusb: Add protocol support for MediaTek USB devices Date: Sun, 2 Jun 2019 08:02:47 +0800 Message-ID: <1559433769-23749-1-git-send-email-sean.wang@mediatek.com> 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 v7: * rebase to latest code base. v6: * fix drivers/bluetooth/btusb.c:2683:2-3: Unneeded semicolon based reported by [1] * update power-on sequence with adding neccesary tci sleep comand to set up low-power environmnet and a delay to wait the device to be stable. * sort variables declarations in reverse xmas order. [1] http://lists.infradead.org/pipermail/linux-mediatek/2019-January/017017.html v5: * rebase to latest code base. * change the subject prefix. * change the place the firmware located at. v4: * use new BTUSB_TX_WAIT_VND_EVT instead of BTMTKUSB_TX_WAIT_VND_EVT to avoid definition conflict and to fix bulk data transfer fails. * use the bluetooth-next as the base 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: btusb: Add protocol support for MediaTek MT7668U USB devices Bluetooth: btusb: Add protocol support for MediaTek MT7663U USB devices drivers/bluetooth/Kconfig | 11 + drivers/bluetooth/btusb.c | 581 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 592 insertions(+) -- 2.17.1