Skip to content

[PW_SID:1071561] Bluetooth: btmtk: add USB autopm support to btmtk_usb_setup()#3395

Open
BluezTestBot wants to merge 2 commits intoworkflowfrom
1071561
Open

[PW_SID:1071561] Bluetooth: btmtk: add USB autopm support to btmtk_usb_setup()#3395
BluezTestBot wants to merge 2 commits intoworkflowfrom
1071561

Conversation

@BluezTestBot
Copy link
Copy Markdown
Owner

btmtk_usb_setup() accesses the device without first ensuring that it
is awake, so it may fail if the device has been autosuspended, e.g.:

Bluetooth: hci0: Failed to get device id (-108)
Bluetooth: hci0: Failed to get fw version (-108)

Add usb_autopm_get_interface()/usb_autopm_put_interface() around the
entire setup process, mirroring what commit 67dba2c ("Bluetooth:
btmtk: Fix failed to send func ctrl for MediaTek devices.") already
did for btmtk_usb_shutdown().

Link: https://bugzilla.kernel.org/show_bug.cgi?id=217475
Signed-off-by: Alberto Garcia berto@igalia.com

drivers/bluetooth/btmtk.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

tedd-an and others added 2 commits March 23, 2026 19:56
This patch adds workflow files for ci:

[sync.yml]
 - The workflow file for scheduled work
 - Sync the repo with upstream repo and rebase the workflow branch
 - Review the patches in the patchwork and creates the PR if needed

[ci.yml]
 - The workflow file for CI tasks
 - Run CI tests when PR is created

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
btmtk_usb_setup() accesses the device without first ensuring that it
is awake, so it may fail if the device has been autosuspended, e.g.:

    Bluetooth: hci0: Failed to get device id (-108)
    Bluetooth: hci0: Failed to get fw version (-108)

Add usb_autopm_get_interface()/usb_autopm_put_interface() around the
entire setup process, mirroring what commit 67dba2c ("Bluetooth:
btmtk: Fix failed to send func ctrl for MediaTek devices.") already
did for btmtk_usb_shutdown().

Link: https://bugzilla.kernel.org/show_bug.cgi?id=217475
Signed-off-by: Alberto Garcia <berto@igalia.com>
@github-actions
Copy link
Copy Markdown

CheckPatch
Desc: Run checkpatch.pl script
Duration: 0.44 seconds
Result: PENDING

@github-actions
Copy link
Copy Markdown

GitLint
Desc: Run gitlint
Duration: 0.25 seconds
Result: PENDING

@github-actions
Copy link
Copy Markdown

SubjectPrefix
Desc: Check subject contains "Bluetooth" prefix
Duration: 0.11 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

BuildKernel
Desc: Build Kernel for Bluetooth
Duration: 26.35 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

CheckAllWarning
Desc: Run linux kernel with all warning enabled
Duration: 28.76 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

CheckSparse
Desc: Run sparse tool with linux kernel
Duration: 27.75 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

BuildKernel32
Desc: Build 32bit Kernel for Bluetooth
Duration: 25.28 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunnerSetup
Desc: Setup kernel and bluez for test-runner
Duration: 562.72 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunner_l2cap-tester
Desc: Run l2cap-tester with test-runner
Duration: 27.55 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunner_iso-tester
Desc: Run iso-tester with test-runner
Duration: 38.48 seconds
Result: FAIL
Output:

BUG: KASAN: slab-use-after-free in le_read_features_complete+0x7e/0x2b0
Total: 141, Passed: 141 (100.0%), Failed: 0, Not Run: 0

@github-actions
Copy link
Copy Markdown

TestRunner_bnep-tester
Desc: Run bnep-tester with test-runner
Duration: 6.23 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunner_mgmt-tester
Desc: Run mgmt-tester with test-runner
Duration: 114.01 seconds
Result: FAIL
Output:

Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4

Failed Test Cases
Read Exp Feature - Success                           Failed       0.103 seconds

@github-actions
Copy link
Copy Markdown

TestRunner_rfcomm-tester
Desc: Run rfcomm-tester with test-runner
Duration: 9.83 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunner_sco-tester
Desc: Run sco-tester with test-runner
Duration: 14.12 seconds
Result: FAIL
Output:

WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0

@github-actions
Copy link
Copy Markdown

TestRunner_ioctl-tester
Desc: Run ioctl-tester with test-runner
Duration: 10.23 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunner_mesh-tester
Desc: Run mesh-tester with test-runner
Duration: 11.48 seconds
Result: FAIL
Output:

Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0

Failed Test Cases
Mesh - Send cancel - 1                               Timed out    1.908 seconds
Mesh - Send cancel - 2                               Timed out    2.006 seconds

@github-actions
Copy link
Copy Markdown

TestRunner_smp-tester
Desc: Run smp-tester with test-runner
Duration: 8.44 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

TestRunner_userchan-tester
Desc: Run userchan-tester with test-runner
Duration: 6.52 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

IncrementalBuild
Desc: Incremental build with the patches in the series
Duration: 0.83 seconds
Result: PENDING

@github-actions github-actions bot force-pushed the workflow branch 9 times, most recently from c6e7062 to 0e0806d Compare April 2, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants