Message ID | e26167a3fcefdeae1151162e8676c9a467a8100d.1652390894.git.objelf@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | baabb7f530e8a3f0085d12f4ea0bada4115515d3 |
Headers | show |
Series | [1/2] Bluetooth: btmtksdio: fix the reset takes too long | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/checkpatch | success | Checkpatch PASS |
tedd_an/gitlint | success | Gitlint PASS |
tedd_an/subjectprefix | success | PASS |
tedd_an/buildkernel | success | Build Kernel PASS |
tedd_an/buildkernel32 | success | Build Kernel32 PASS |
tedd_an/incremental_build | success | Pass |
tedd_an/testrunnersetup | success | Test Runner Setup PASS |
tedd_an/testrunnerl2cap-tester | success | Total: 40, Passed: 40 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnerbnep-tester | success | Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnermgmt-tester | success | Total: 493, Passed: 493 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnerrfcomm-tester | success | Total: 10, Passed: 10 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnersco-tester | success | Total: 12, Passed: 12 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunnersmp-tester | success | Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0 |
tedd_an/testrunneruserchan-tester | success | Total: 4, Passed: 4 (100.0%), Failed: 0, Not Run: 0 |
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=641161 ---Test result--- Test Summary: CheckPatch PASS 3.34 seconds GitLint PASS 2.14 seconds SubjectPrefix PASS 1.72 seconds BuildKernel PASS 30.44 seconds BuildKernel32 PASS 30.25 seconds Incremental Build with patchesPASS 45.84 seconds TestRunner: Setup PASS 493.42 seconds TestRunner: l2cap-tester PASS 17.46 seconds TestRunner: bnep-tester PASS 6.12 seconds TestRunner: mgmt-tester PASS 106.15 seconds TestRunner: rfcomm-tester PASS 9.66 seconds TestRunner: sco-tester PASS 9.65 seconds TestRunner: smp-tester PASS 10.44 seconds TestRunner: userchan-tester PASS 7.15 seconds --- Regards, Linux Bluetooth
Hello: This series was applied to bluetooth/bluetooth-next.git (master) by Marcel Holtmann <marcel@holtmann.org>: On Fri, 13 May 2022 05:38:11 +0800 you wrote: > From: Sean Wang <sean.wang@mediatek.com> > > Sending WMT command during the reset in progress is invalid and would get > no response from firmware until the reset is complete, so we ignore the WMT > command here to resolve the issue which causes the whole reset process > taking too long. > > [...] Here is the summary with links: - [1/2] Bluetooth: btmtksdio: fix the reset takes too long https://git.kernel.org/bluetooth/bluetooth-next/c/baabb7f530e8 - [2/2] Bluetooth: btmtksdio: fix possible FW initialization failure https://git.kernel.org/bluetooth/bluetooth-next/c/7469720563e0 You are awesome, thank you!
Il 12/05/22 23:38, sean.wang@mediatek.com ha scritto: > From: Sean Wang <sean.wang@mediatek.com> > > Sending WMT command during the reset in progress is invalid and would get > no response from firmware until the reset is complete, so we ignore the WMT > command here to resolve the issue which causes the whole reset process > taking too long. > > Fixes: 8fafe702253d ("Bluetooth: mt7921s: support bluetooth reset mechanism") > Co-developed-by: Yake Yang <yake.yang@mediatek.com> > Signed-off-by: Yake Yang <yake.yang@mediatek.com> > Signed-off-by: Sean Wang <sean.wang@mediatek.com> It may be too late but, in any case, for the entire series: Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c index 4ae6631a7c29..26e27fd79a21 100644 --- a/drivers/bluetooth/btmtksdio.c +++ b/drivers/bluetooth/btmtksdio.c @@ -1189,6 +1189,10 @@ static int btmtksdio_shutdown(struct hci_dev *hdev) */ pm_runtime_get_sync(bdev->dev); + /* wmt command only works until the reset is complete */ + if (test_bit(BTMTKSDIO_HW_RESET_ACTIVE, &bdev->tx_state)) + goto ignore_wmt_cmd; + /* Disable the device */ wmt_params.op = BTMTK_WMT_FUNC_CTRL; wmt_params.flag = 0; @@ -1202,6 +1206,7 @@ static int btmtksdio_shutdown(struct hci_dev *hdev) return err; } +ignore_wmt_cmd: pm_runtime_put_noidle(bdev->dev); pm_runtime_disable(bdev->dev);