From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0225C433F5 for ; Mon, 25 Oct 2021 13:37:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BFB2A60EDF for ; Mon, 25 Oct 2021 13:37:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232586AbhJYNj7 (ORCPT ); Mon, 25 Oct 2021 09:39:59 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:45084 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbhJYNju (ORCPT ); Mon, 25 Oct 2021 09:39:50 -0400 Received: from smtpclient.apple (p4ff9f2d2.dip0.t-ipconnect.de [79.249.242.210]) by mail.holtmann.org (Postfix) with ESMTPSA id 38B1ACED18; Mon, 25 Oct 2021 15:37:26 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH v2 00/10] Add MT7921 SDIO Bluetooth support From: Marcel Holtmann In-Reply-To: Date: Mon, 25 Oct 2021 15:37:25 +0200 Cc: Johan Hedberg , =?utf-8?B?Ik1hcmstWVcgQ2hlbiAo6Zmz5o+a5paHKSI=?= , Soul.Huang@mediatek.com, YN.Chen@mediatek.com, Leon.Yen@mediatek.com, Eric-SY.Chang@mediatek.com, Deren.Wu@mediatek.com, km.lin@mediatek.com, robin.chiu@mediatek.com, Eddie.Chen@mediatek.com, ch.yeh@mediatek.com, posh.sun@mediatek.com, ted.huang@mediatek.com, Eric.Liang@mediatek.com, Stella.Chang@mediatek.com, Tom.Chou@mediatek.com, steve.lee@mediatek.com, jsiuda@google.com, frankgor@google.com, jemele@google.com, abhishekpandit@google.com, michaelfsun@google.com, mcchou@chromium.org, shawnku@google.com, linux-bluetooth@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Sean Wang Content-Transfer-Encoding: 7bit Message-Id: <63D47354-AEEA-4019-8C12-FEECD860BB85@holtmann.org> References: To: Sean Wang X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sean, > 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. > > The changelog from v1 to v2: > - fix the test failure reported from bluez test bot > - fix the test warning reported from kernel test robot > - rebase onto the up-to-date bluetooth-next/master > - fix the typo from mt7961_data to mt7921_data > - improve the function btsdio_mtk_reg_read with dropping the hard coding > > Mark-yw Chen (1): > Bluetooth: btmtksdio: transmit packet according to 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 | 289 ++++++++++++++++++++ > drivers/bluetooth/btmtk.h | 111 ++++++++ > drivers/bluetooth/btmtksdio.c | 496 +++++++++++++++++----------------- > drivers/bluetooth/btusb.c | 331 +---------------------- > include/linux/mmc/sdio_ids.h | 1 + > 7 files changed, 658 insertions(+), 577 deletions(-) > create mode 100644 drivers/bluetooth/btmtk.c > create mode 100644 drivers/bluetooth/btmtk.h all 10 patches have been applied to bluetooth-next tree. Regards Marcel