2024-06-14 08:24:12

by Neeraj Sanjay Kale

[permalink] [raw]
Subject: [PATCH v2] Bluetooth: btnxpuart: Enable Power Save feature on startup

This sets the default power save mode setting to enabled.

The power save feature is now stable and stress test issues, such as the
TX timeout error, have been resolved.
commit c7ee0bc8db32 ("Bluetooth: btnxpuart: Resolve TX timeout error in
power save stress test")

With this setting, the driver will send the vendor command to FW at
startup, to enable power save feature.

User can disable this feature using the following vendor command:
hcitool cmd 3f 23 03 00 00 (HCI_NXP_AUTO_SLEEP_MODE)

Signed-off-by: Neeraj Sanjay Kale <[email protected]>
Reviewed-by: Paul Menzel <[email protected]>
---
v2: Corrected subject line. Added commit reference. (Paul Menzel)
drivers/bluetooth/btnxpuart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 7f88b6f52f26..42e929f0d141 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -281,7 +281,7 @@ static u8 crc8_table[CRC8_TABLE_SIZE];

/* Default configurations */
#define DEFAULT_H2C_WAKEUP_MODE WAKEUP_METHOD_BREAK
-#define DEFAULT_PS_MODE PS_MODE_DISABLE
+#define DEFAULT_PS_MODE PS_MODE_ENABLE
#define FW_INIT_BAUDRATE HCI_NXP_PRI_BAUDRATE

static struct sk_buff *nxp_drv_send_cmd(struct hci_dev *hdev, u16 opcode,
--
2.34.1



2024-06-14 09:00:36

by bluez.test.bot

[permalink] [raw]
Subject: RE: [v2] Bluetooth: btnxpuart: Enable Power Save feature on startup

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=861975

---Test result---

Test Summary:
CheckPatch PASS 1.18 seconds
GitLint PASS 0.29 seconds
SubjectPrefix PASS 0.98 seconds
BuildKernel PASS 30.37 seconds
CheckAllWarning PASS 33.05 seconds
CheckSparse PASS 41.71 seconds
CheckSmatch PASS 106.32 seconds
BuildKernel32 PASS 29.30 seconds
TestRunnerSetup PASS 527.09 seconds
TestRunner_l2cap-tester PASS 18.66 seconds
TestRunner_iso-tester PASS 33.50 seconds
TestRunner_bnep-tester PASS 5.28 seconds
TestRunner_mgmt-tester FAIL 112.58 seconds
TestRunner_rfcomm-tester PASS 7.56 seconds
TestRunner_sco-tester PASS 15.09 seconds
TestRunner_ioctl-tester PASS 8.47 seconds
TestRunner_mesh-tester PASS 6.10 seconds
TestRunner_smp-tester PASS 6.92 seconds
TestRunner_userchan-tester PASS 5.18 seconds
IncrementalBuild PASS 28.41 seconds

Details
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 492, Passed: 489 (99.4%), Failed: 1, Not Run: 2

Failed Test Cases
LL Privacy - Add Device 7 (AL is full) Failed 0.197 seconds


---
Regards,
Linux Bluetooth

2024-06-14 17:00:58

by patchwork-bot+bluetooth

[permalink] [raw]
Subject: Re: [PATCH v2] Bluetooth: btnxpuart: Enable Power Save feature on startup

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <[email protected]>:

On Fri, 14 Jun 2024 13:50:39 +0530 you wrote:
> This sets the default power save mode setting to enabled.
>
> The power save feature is now stable and stress test issues, such as the
> TX timeout error, have been resolved.
> commit c7ee0bc8db32 ("Bluetooth: btnxpuart: Resolve TX timeout error in
> power save stress test")
>
> [...]

Here is the summary with links:
- [v2] Bluetooth: btnxpuart: Enable Power Save feature on startup
https://git.kernel.org/bluetooth/bluetooth-next/c/1db01d15e2da

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html