Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2780309pxb; Fri, 8 Oct 2021 15:22:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVLEAZtUR3LowyjzsOL9CBXrzKxFwVvrQn5dURDQglIzl7RTQ6UUf02u2IYJ36Da1jteEW X-Received: by 2002:a63:1665:: with SMTP id 37mr6783081pgw.261.1633731742568; Fri, 08 Oct 2021 15:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633731742; cv=none; d=google.com; s=arc-20160816; b=EiZ/cj3wak7913Wkjb4G9GQZtc6iHo0pmXfvOB/0vsZ2o5EM4Te6iRGDmp2yw8mfl+ oey2zlYermqb+JUyHAJTzEnV19kDPBmw1Oz/DkYyKYnrUkXylFGoUQXH8Q2tkMedwfuz W5x2yh6GeRbw84Du/kVroiKRIK4+Slye9PSJT+X9v+RYLs6fHhtzN7HEMhcfTvLpzot+ HOD6BYCl6fcbq0QIH2ZoO8TQ3iVueaTk/gXwrEo+eMzig3AIRWAoQTdQtl2SNJWSHy1Q i8mi1xlRTUFOnSm0Pci+a984zDzcksDnlcVmWKFcINV2eq+1Ir28vSrPFhjqIntMBhw7 nnwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=GUuDRv3iZrI4sOB+gEkNBOA8WyJLRoM1CXFi2ubszDI=; b=PAr+TF8tcxdWDDACKsTpHPYmswoyxJxlYrgXmYfqCPkUSqp5yZjWn9FViUG/ChXgVx N2s7ofiCf4cgv6NWky1y487c3C9UxpHeJRk0hcOg3nFXrOwyKUv00Bmw76PVRh/zj0vA 8SJwUBOhM0K1oiKaSTmwHzfSNzhFVV3VE6sWPq7a7Ehxz/l5cemJKZakZYxHSfNA+mFx tJyJZBJS+waiApdZ4x2w0Xb101qIyg6Nnf0zT5kQ4XFMtoeixoLuaQFLQQe5uupIobfv bUjP2HQI9qFMRNQmLXTl5L20QZEX7CcJv7fTGxu9cz/qtME9XMKXuttovEF27aYNQol9 UxCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o7si760111pgp.169.2021.10.08.15.22.09; Fri, 08 Oct 2021 15:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243647AbhJHWWz (ORCPT + 99 others); Fri, 8 Oct 2021 18:22:55 -0400 Received: from mailgw01.mediatek.com ([216.200.240.184]:49937 "EHLO mailgw01.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243610AbhJHWWv (ORCPT ); Fri, 8 Oct 2021 18:22:51 -0400 X-Greylist: delayed 305 seconds by postgrey-1.27 at vger.kernel.org; Fri, 08 Oct 2021 18:22:48 EDT X-UUID: 2b5793be12d442638ea72d1a4bfc03c5-20211008 X-UUID: 2b5793be12d442638ea72d1a4bfc03c5-20211008 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 883912663; Fri, 08 Oct 2021 15:15:41 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 8 Oct 2021 15:10:23 -0700 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 9 Oct 2021 06:10:23 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , Sean Wang Subject: [PATCH v1 00/10] Add MT7921 SDIO Bluetooth support Date: Sat, 9 Oct 2021 06:10:07 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang The patchset adds the MT7921 SDIO (MT7921s) Blutooth support to btmtksdio driver, which basically are made up of 3 parts. PART 1: patch 1-3 to create btmtk module to rely on These are preliminary patches for MT7921s driver to move the common firmware download procedure and the common functions from MT7921u to btmtk module to make MT7921u, MT7921s and other devices can share with to reduce the unnecessary duplicated code being created. PART 2: patch 4-8 to refactor btmtksdio prior to adding MT7921s These are preliminary patches for MT7921s driver to refactor the current btmtksdio to make MT7921S is able to coexist with the devices the current driver can support with the generic code and improve the performance on packet transmitting and receving process. PART 3: patch 9-10 to add specific MT7921s logic Add the specific logic regarding to MT7921s bluetooth. Mark-yw Chen (1): Bluetooth: btmtksdio: transmit packet according to the status TX_EMPTY Sean Wang (9): Bluetooth: mediatek: add BT_MTK module Bluetooth: btmtksido: rely on BT_MTK module Bluetooth: btmtksdio: add .set_bdaddr support Bluetooth: btmtksdio: explicitly set WHISR as write-1-clear Bluetooth: btmtksdio: move interrupt service to work Bluetooth: btmtksdio: update register CSDIOCSR operation Bluetooth: btmtksdio: use register CRPLR to read packet length mmc: add MT7921 SDIO identifiers for MediaTek Bluetooth devices Bluetooth: btmtksdio: add MT7921s Bluetooth support drivers/bluetooth/Kconfig | 6 + drivers/bluetooth/Makefile | 1 + drivers/bluetooth/btmtk.c | 288 ++++++++++++++++++++ drivers/bluetooth/btmtk.h | 101 +++++++ drivers/bluetooth/btmtksdio.c | 496 +++++++++++++++++----------------- drivers/bluetooth/btusb.c | 331 +---------------------- include/linux/mmc/sdio_ids.h | 1 + 7 files changed, 647 insertions(+), 577 deletions(-) create mode 100644 drivers/bluetooth/btmtk.c create mode 100644 drivers/bluetooth/btmtk.h -- 2.25.1