Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2568873imu; Thu, 24 Jan 2019 15:27:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN64tgC4Nz7FMrs7Cpp8wg+g2QmCpbUMoPVMzMjjpFI/oV5uwdqG0g40/kxOKNW16DEcLiRm X-Received: by 2002:a17:902:d83:: with SMTP id 3mr8319199plv.43.1548372443202; Thu, 24 Jan 2019 15:27:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548372443; cv=none; d=google.com; s=arc-20160816; b=ieDc7Ft2h0brlx2rKYlmau55h8/Bt3uJj7y4QIhrC3vOdyiSmiuGk89SbcbpIwFxhY EiXtpJ1kHJEYPcAAIlaBSKthNtCcZ0ztU7nffKG02EdKPp5jcenMf6eGI8faOHoWXBdn vvL/1DzShc0MORXzOms0oXPwzUdVkhbHzRQB7rTT6JuhVw3WZAqeu6rsoX3ixYgDTyqT fGqbwXAugod8/9oiPqtdmwDHr41MFUyEMVjZrUFkFoxh12CzyyaA8vVNGxICsHs8WcEb 4TmZw95JndqP5QhaFamg06cm3rfDYfnqxhQHjMxApmgrAMcIi52S3Qvk/cW1/mXRvqfh 1/kA== 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=6K/QBVYiAjDrDAgWWDroA4GmnaBqT8XQgXGn7gFqSuI=; b=R7WEIbk0HuIbv2aAQu7Tkha3pVWjNkZyhuaIqw7cGIULdGjfjDs59NIGEjKNZlY7PC iZGkIw28COvCLdgN+3xvXm/DOhmZGBM85zKfVDErw0bl1vAj8bmnNQ7YfS/o50N3AwxE 3xt2GCauNAHpsdmvM0/2m+9bcv+BReqe6+xBphmnMt54x0Hldbk+yhCiIjcr52d8jZ/i MdxyYJgRH4DO2vioBHeB6NjhlYIk44tqpaacvjYOqKLENhB3vILk0vDuIrbGA5+KTELm rGd0Bx8p/Lrrtag1wLvsFj1PQJXwVVEPvijgy7dSGaUFhTfgeEbZ5LfdR28Duizg52vt yIxA== 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 y17si2205034pgh.353.2019.01.24.15.27.06; Thu, 24 Jan 2019 15:27:23 -0800 (PST) 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 S1727605AbfAXX1C (ORCPT + 99 others); Thu, 24 Jan 2019 18:27:02 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:2403 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726147AbfAXX1B (ORCPT ); Thu, 24 Jan 2019 18:27:01 -0500 X-UUID: 5431ea85e3024d12b3da1fcd288cda4e-20190125 X-UUID: 5431ea85e3024d12b3da1fcd288cda4e-20190125 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 683675146; Fri, 25 Jan 2019 07:26:56 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 25 Jan 2019 07:26:54 +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.1395.4 via Frontend Transport; Fri, 25 Jan 2019 07:26:54 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v6 0/2] Bluetooth: btusb: Add protocol support for MediaTek USB devices Date: Fri, 25 Jan 2019 07:26:46 +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 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.18.0