Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1882233imm; Sun, 12 Aug 2018 01:49:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzrlet7SZhgnDh70n6udfIHg+djZXYAZzVw+2L8d7581DCQxiJCnHHAzJu12aoCV4VjGRIh X-Received: by 2002:a65:6243:: with SMTP id q3-v6mr12394755pgv.273.1534063769373; Sun, 12 Aug 2018 01:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534063769; cv=none; d=google.com; s=arc-20160816; b=au3fhetTwzmKJoRgN3xRf3JKCeayCu1Doy9BYt/3UCOE+yRtQ2Ar6dynTC9Lbh+JGB smDFm5OR4N7KDw19YnLwBrlysbk/5xLtKWI2RGm8eLSy7jhroLlOV7V63GUe0yfmbrEN 6VVEdaoSUrpM7nqb6jcs4Yu6woAlrwV5nt9U/RgeYYbAdBbMZd1b35Gjd1TsD9Jl3H0U rcqo4g/400rhF0MMwUQDKwQQb1dzWM9qH+j54LF13xEAG6mrlPBkQC/mnQ/Rm4/+ol+S mMOeAnAMmimV6Omoej3LkLoK0yfno4AlJ5EYuUDmoAa2uSv/T/46ME3Cnc7RqxIETL7f sQpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=rxxV+OUobW+us3xolKQj6QuE3OF6bD3JBebr8sTytTA=; b=Jscs8uEMpeYRCH9Q5589PjbxXkCNxaM+aVRX24VUm6yMQMrdxESL1OG+rdKpgmndmr gJy8YOZkOzGGL8B2BA0B05mMh+++ErCbilhFhAwYAB06bfldZenANlURSjg8cyqD0Me7 /GYRAgTXoat/FUZEzpny3W1tX/x1aQ2qrDW91vhD0PgoZo1ZsNwUv3x19bp+kCDYBst1 p0KdYa7KQvo4HBausRtHU9ep+sKg60GpbAxmNbxGKc6Mebgc1EfHDucs94m5lR3eNXz9 ThHpbYn0qawRsUfMfDu8w3DyQK6L5LT9cMPR3hNwUJygqxOJj+7xdYKyJOBC+wUCylqI gv1w== 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 b8-v6si11531046pls.137.2018.08.12.01.49.14; Sun, 12 Aug 2018 01:49:29 -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 S1727814AbeHLLYe (ORCPT + 99 others); Sun, 12 Aug 2018 07:24:34 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:7311 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727073AbeHLLYe (ORCPT ); Sun, 12 Aug 2018 07:24:34 -0400 X-UUID: 322264067d96408396f6621ed1186783-20180812 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1508881566; Sun, 12 Aug 2018 16:47:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 12 Aug 2018 16:47:00 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 12 Aug 2018 16:47:00 +0800 From: To: , CC: , , , Sean Wang Subject: [PATCH v1 2/2] Bluetooth: mediatek: Add protocol support for MediaTek MT7663U USB devices Date: Sun, 12 Aug 2018 16:46:52 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: 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 This adds the support of enabling MT7663U Bluetooth function running on the top of btusb driver. Signed-off-by: Sean Wang --- drivers/bluetooth/btmtk.c | 1 + drivers/bluetooth/btmtk.h | 1 + drivers/bluetooth/btusb.c | 3 +++ 3 files changed, 5 insertions(+) diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c index 9e39a0a..d46c25d 100644 --- a/drivers/bluetooth/btmtk.c +++ b/drivers/bluetooth/btmtk.c @@ -305,4 +305,5 @@ MODULE_AUTHOR("Sean Wang "); MODULE_DESCRIPTION("MediaTek Bluetooth device driver ver " VERSION); MODULE_VERSION(VERSION); MODULE_LICENSE("GPL"); +MODULE_FIRMWARE(FIRMWARE_MT7663); MODULE_FIRMWARE(FIRMWARE_MT7668); diff --git a/drivers/bluetooth/btmtk.h b/drivers/bluetooth/btmtk.h index 64fc395..f90292c 100644 --- a/drivers/bluetooth/btmtk.h +++ b/drivers/bluetooth/btmtk.h @@ -9,6 +9,7 @@ * */ +#define FIRMWARE_MT7663 "mt7663pr2h.bin" #define FIRMWARE_MT7668 "mt7668pr2h.bin" enum { diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 773238b..56f7862 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c @@ -2494,6 +2494,9 @@ static int btusb_mtk_setup(struct hci_dev *hdev) } switch (dev_id) { + case 0x7663: + fwname = FIRMWARE_MT7663; + break; case 0x7668: fwname = FIRMWARE_MT7668; break; -- 2.7.4