Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1695551imm; Mon, 3 Sep 2018 07:10:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbicY18YlwsB3Ztq+HLGIedotAq6VUunJSSzJd49CKwebd7iJzQMMCwYsrFkLgIMlM0wQlN X-Received: by 2002:a63:4c02:: with SMTP id z2-v6mr3188189pga.312.1535983801065; Mon, 03 Sep 2018 07:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535983801; cv=none; d=google.com; s=arc-20160816; b=KQ8MkRtmJYw8s8CW9nPyYL/JSlxafW776XuwhClB/aI5voWEp2VKqWoLzkWQ9j0b5D pBEd2DkmRw0VrZ1Tpuz6GRyt4M1iOUUfn67fPywUyTdage8CqN20zGSnkxqW+ZFAjXeR M+4SmYbYv+17OezcE1FrI2omHzjTPlStKSprVs2EVTeeCfMqvamG2FXCkseE/mnFBD+z EqkwftBbt1tqXJFg6gz9ZBWAp/rh8nOj9qc/S+ljDbvEX7KFnd1QQh1uHNKuwwty6wbX pmPpScx7A9zxfMyq6l6Ej8o6Jc58I6SBbVnXu5XGTVFtfSw+5jVc2YZrkOkWAFBvEd9p inhQ== 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=LJUa1+NwepI/5i8IW9kFqAq41fgZt+tDXJqjAyzvHS4=; b=CynRo0KqFZuL0UlwMcvuUC6NFjUALN1czb+le3eFMRGM62l/VRTlstL+9UfaExF7Lh SSp0q5LxSzQfKG3TU2HR0U/iDFal+VkBc911cE4GjnGHZ5dBA914LAUnsNO7yhjU/MHE hfoPwMOAb0/PfdMNUf5o9GevQ7Rb+Qh/7OeLkouEuDkMuzuxrXDxNAAT2uT2PehjFmyh tHWVzRk0pvAYvEfrOtK8pK742xsr23TcIUA4BUwaXKYLkhp05yabeXc6xU/aguMOpkvC S6pMENFdim8a6qsBRjnBwA2Xta38tFBwyjP98pN/7CNmBUh5JwGNUZbbNCdXftm2ckOf JtIg== 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 c4-v6si4011552plo.192.2018.09.03.07.09.45; Mon, 03 Sep 2018 07:10:01 -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 S1727621AbeICS2z (ORCPT + 99 others); Mon, 3 Sep 2018 14:28:55 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:40237 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727049AbeICS2y (ORCPT ); Mon, 3 Sep 2018 14:28:54 -0400 X-UUID: d2736a3f47824afdb3558a6bdfc0a7b4-20180903 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1551560556; Mon, 03 Sep 2018 22:08:27 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Mon, 3 Sep 2018 22:08:25 +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.1210.3 via Frontend Transport; Mon, 3 Sep 2018 22:08:25 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v4 0/2] Bluetooth: mediatek: Add protocol support for MediaTek USB devices Date: Mon, 3 Sep 2018 22:08:22 +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 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: 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