Bluetooth: btmtksdio: run sleep mode by default
authorSean Wang <sean.wang@mediatek.com>
Wed, 12 Jan 2022 07:39:16 +0000 (15:39 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 21 Jan 2022 22:49:27 +0000 (23:49 +0100)
Apply sleep mode by default and a smaller idle time to reduce power
consumption further.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtksdio.c

index 3e8f19556e2c8c0a0ce723829dac421332c86434..491f029452ca8ce77aba56043f6560970606cf07 100644 (file)
@@ -31,9 +31,9 @@
 
 #define VERSION "0.1"
 
-#define MTKBTSDIO_AUTOSUSPEND_DELAY    8000
+#define MTKBTSDIO_AUTOSUSPEND_DELAY    1000
 
-static bool enable_autosuspend;
+static bool enable_autosuspend = true;
 
 struct btmtksdio_data {
        const char *fwname;