Bluetooth: btnxpuart: Enable Power Save feature on startup
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Fri, 14 Jun 2024 08:20:39 +0000 (13:50 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 28 Jun 2024 18:30:37 +0000 (14:30 -0400)
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 <neeraj.sanjaykale@nxp.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btnxpuart.c

index 9d0c7e278114b229f7cc2155e7cc57a2cbfa9c54..9bfa9a6ad56c8c62c3aea6165cf9250c8b023a85 100644 (file)
@@ -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,
This page took 0.060684 seconds and 4 git commands to generate.