Bluetooth: btmtksdio: Prevent enabling interrupts after IRQ handler removal
Subsystems (2)
PATCH 1/1 Bluetooth: btmtksdio: Prevent enabling interrupts after IRQ handler removal
From: Sean Wang <[email protected]>
Ensure interrupts are not re-enabled when the IRQ handler has already been removed. This prevents unexpected IRQ handler execution due to stale or unhandled interrupts.
Modify btmtksdio_txrx_work to check if bdev->func->irq_handler exists before calling sdio_writel to enable interrupts.
--- drivers/bluetooth/btmtksdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/bluetooth/btmtksdio.c +2 -1
@@ -610,7 +610,8 @@ static void btmtksdio_txrx_work(struct work_struct *work) }while (int_status ||time_is_before_jiffies (txrx_timeout));/* Enable interrupt */ -sdio_writel (bdev->func,C_INT_EN_SET ,MTK_REG_CHLPCR ,NULL ); +if (bdev->func->irq_handler) +sdio_writel (bdev->func,C_INT_EN_SET ,MTK_REG_CHLPCR ,NULL );sdio_release_host (bdev->func);
Signature · 1 line
2.25.1
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=942910
---Test result---
Test Summary:
CheckPatch PENDING 0.23 seconds GitLint PENDING 0.20 seconds SubjectPrefix PASS 0.12 seconds BuildKernel PASS 24.48 seconds CheckAllWarning PASS 26.76 seconds CheckSparse PASS 31.00 seconds BuildKernel32 PASS 24.02 seconds TestRunnerSetup PASS 429.93 seconds TestRunner_l2cap-tester PASS 23.08 seconds TestRunner_iso-tester PASS 32.61 seconds TestRunner_bnep-tester PASS 4.79 seconds TestRunner_mgmt-tester FAIL 119.44 seconds TestRunner_rfcomm-tester PASS 7.98 seconds TestRunner_sco-tester PASS 16.30 seconds TestRunner_ioctl-tester PASS 8.46 seconds TestRunner_mesh-tester PASS 6.02 seconds TestRunner_smp-tester PASS 7.28 seconds TestRunner_userchan-tester PASS 5.03 seconds IncrementalBuild PENDING 0.89 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner Output:
Total: 490, Passed: 484 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
LL Privacy - Add Device 2 (2 Devices to AL) Failed 0.175 seconds LL Privacy - Set Flags 2 (Enable RL) Failed 0.150 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 10 lines · On Tue, 11 Mar 2025 18:25:22 -0700 you wrote:
From: Sean Wang <[email protected]>
Ensure interrupts are not re-enabled when the IRQ handler has already been removed. This prevents unexpected IRQ handler execution due to stale or unhandled interrupts.
Modify
btmtksdio_txrx_workto check ifbdev->func->irq_handlerexists before callingsdio_writelto enable interrupts.[...]
Here is the summary with links:
- Bluetooth: btmtksdio: Prevent enabling interrupts after IRQ handler removal
https://git.kernel.org/bluetooth/bluetooth-next/c/01c13f057bb7
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html