Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on: [pull_request]

jobs:
ci:
runs-on: ubuntu-latest
name: CI for Pull Request
steps:
- name: Checkout the source code
uses: actions/checkout@v3
with:
path: src/src

- name: CI
uses: tedd-an/bzcafe@main
with:
task: ci
base_folder: src
space: kernel
github_token: ${{ secrets.GITHUB_TOKEN }}
email_token: ${{ secrets.EMAIL_TOKEN }}
patchwork_token: ${{ secrets.PATCHWORK_TOKEN }}
patchwork_user: ${{ secrets.PATCHWORK_USER }}

43 changes: 43 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Sync

on:
schedule:
- cron: "*/30 * * * *"

jobs:
sync_repo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: master

- name: Sync Repo
uses: tedd-an/bzcafe@main
with:
task: sync
upstream_repo: 'https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git'
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Cleanup PR
uses: tedd-an/bzcafe@main
with:
task: cleanup
github_token: ${{ secrets.ACTION_TOKEN }}

sync_patchwork:
needs: sync_repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Sync Patchwork
uses: tedd-an/bzcafe@main
with:
task: patchwork
space: kernel
github_token: ${{ secrets.ACTION_TOKEN }}
email_token: ${{ secrets.EMAIL_TOKEN }}
patchwork_token: ${{ secrets.PATCHWORK_TOKEN }}
patchwork_user: ${{ secrets.PATCHWORK_USER }}

32 changes: 16 additions & 16 deletions drivers/bluetooth/btmtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,6 @@
/* It is for mt79xx iso data transmission setting */
#define MTK_ISO_THRESHOLD 264

/* Known MT6639 (MT7927) Bluetooth USB devices.
* Used to scope the zero-CHIPID workaround to real MT6639 hardware,
* since some boards return 0x0000 from the MMIO chip ID register.
*/
static const struct {
u16 vendor;
u16 product;
} btmtk_mt6639_devs[] = {
{ 0x0489, 0xe13a }, /* ASUS ROG Crosshair X870E Hero */
{ 0x0489, 0xe0fa }, /* Lenovo Legion Pro 7 16ARX9 */
{ 0x0489, 0xe10f }, /* Gigabyte Z790 AORUS MASTER X */
{ 0x0489, 0xe110 }, /* MSI X870E Ace Max */
{ 0x0489, 0xe116 }, /* TP-Link Archer TBE550E */
{ 0x13d3, 0x3588 }, /* ASUS ROG STRIX X870E-E */
};

struct btmtk_patch_header {
u8 datetime[16];
u8 platform[4];
Expand Down Expand Up @@ -483,6 +467,22 @@ int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
EXPORT_SYMBOL_GPL(btmtk_process_coredump);

#if IS_ENABLED(CONFIG_BT_HCIBTUSB_MTK)
/* Known MT6639 (MT7927) Bluetooth USB devices.
* Used to scope the zero-CHIPID workaround to real MT6639 hardware,
* since some boards return 0x0000 from the MMIO chip ID register.
*/
static const struct {
u16 vendor;
u16 product;
} btmtk_mt6639_devs[] = {
{ 0x0489, 0xe13a }, /* ASUS ROG Crosshair X870E Hero */
{ 0x0489, 0xe0fa }, /* Lenovo Legion Pro 7 16ARX9 */
{ 0x0489, 0xe10f }, /* Gigabyte Z790 AORUS MASTER X */
{ 0x0489, 0xe110 }, /* MSI X870E Ace Max */
{ 0x0489, 0xe116 }, /* TP-Link Archer TBE550E */
{ 0x13d3, 0x3588 }, /* ASUS ROG STRIX X870E-E */
};

static void btmtk_usb_wmt_recv(struct urb *urb)
{
struct hci_dev *hdev = urb->context;
Expand Down
Loading