Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3652144imu; Fri, 18 Jan 2019 14:26:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN6KuvWVnY5PoGP0sLqSmGuS3p8t9XSMZee93FtTN4HR4G6FML2f+XB6ZuTa49i05WuvK/fi X-Received: by 2002:a62:6204:: with SMTP id w4mr21268344pfb.5.1547850378727; Fri, 18 Jan 2019 14:26:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547850378; cv=none; d=google.com; s=arc-20160816; b=qLZQW4114hEig/aolBnLId9KAMvbuppLIkC6G6xy0A13BWVQhze73TVjr1d/nRf/5i 0OboBng6bXgAbcZ4Dmf6jv3RfFj2+IgX8Tdn0XLc/8XU414hhqXwgIXbgaa0Adx9vvsi 2AKQ0va5zdBsUjksrUeAOMDFdsuUlxAmGYxIX3RSCqGNgzooEOi2TizqCB8GTOfEguGm iiDtDW3MXMn3aqGNJTK2NrxZp+cv4olLb9EzNB/3G2MRw+rS6MNq4kvW08snCJaa7IST 9+WqJV3xVXe2P+vOJUfrUnGGnbzzMfPgV5Csvks6dg1IAx+o33DOYbK6XfUqbdGk6U2w qOlA== 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=EqQuYKwXHGSGMd02Spu85oJy6cCEhiVzVxU549BlTug=; b=mofUbF+DaYG1VZLp16KYH6hDzskNk2tqvaD4cCghi7RrvfhE/DCsyVYQj1MSNsPcth Zp79MQsbxSTMZOhjnMcS7OztOYbcE87jJuPTvg0VJ11d9B5ugjDiROTs0RLYh9qb16js 0eGVttV44Uhv6loJQHKeXrw3OE4VsLAQfMiRBnhRYbxjFxEz0EMmJ8sMQm8Zu0bveP5X 6DdTtrTJPNiIumF+mr7uX+x4MdeOTYZ15Su8Jpap2gprkVhhgnASqkecPIkAnNyGiWmK 8RXqveZKXYwu5ZNDT5H1ujCfeYPhAxLiDd6RhlBBggpXnpaeLqMv6ZA3h1tz65rOfI7q ggAw== 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 j135si3102969pgc.517.2019.01.18.14.26.00; Fri, 18 Jan 2019 14:26:18 -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 S1729957AbfARWYp (ORCPT + 99 others); Fri, 18 Jan 2019 17:24:45 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:15461 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729931AbfARWYn (ORCPT ); Fri, 18 Jan 2019 17:24:43 -0500 X-UUID: c48ad5e214114c1384c746cd366a5957-20190119 X-UUID: c48ad5e214114c1384c746cd366a5957-20190119 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1798903592; Sat, 19 Jan 2019 06:24:36 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 19 Jan 2019 06:24:33 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Sat, 19 Jan 2019 06:24:33 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v5 0/2] Bluetooth: btusb: Add protocol support for MediaTek USB devices Date: Sat, 19 Jan 2019 06:24:29 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 562029315093DF7899ACA35E1C718E38BBC465EBF0BD232DD94D8FEB153CBA602000:8 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 v5: * rebase to the 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 | 552 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 563 insertions(+) -- 2.18.0