Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1422377pxb; Wed, 12 Jan 2022 14:31:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5jhoKsIaCEBVgv2SZQGMc5+gonWqQ4RsL+G2w/r60+BovdAzKwqkoSL2jjDCmSXIBsHO1 X-Received: by 2002:a17:90a:e7d2:: with SMTP id kb18mr1887781pjb.111.1642026706876; Wed, 12 Jan 2022 14:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642026706; cv=none; d=google.com; s=arc-20160816; b=F1zOKYIPyzEjBSyDIUt8BQeq97pbEzC9vFKfybNhTpEAaE/dE+Nq5q+a0HaVPw09Da dKEpk7eDjwrjTuMAmGCuOAB7vV51wWmVJlN95VqxGSQI3V81Yd/cEJ6jg+KbYKg0VGua mlwf1QQy4bzKKqnIZaPS+UXZK4R/FDbDYsb6nYu77OZmfm89fgvjTF7UPbDjXxJO3cOd tuPTx761GPr656G1RBDc1Mrbo8I9XsKUM/OYlwC9UmkWwfFzjc1mlcXPme7F9YKvwivT /61IzhNm7FJ73dOSM9fcwChON2YNPYhvBs6cYC06LlxkFhfTgvG3WNaJvHEGm/qKwIaf SH/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=ri/4xErxWYydZIrbT0LC+mpz0fQCQ4/MHmR8L6e7Krg=; b=Uq6gCGEwLFsxCgO+XkliOVZA6gDY2QirLM1Gk186hKf3f135HGLH9wwLMC0RCxE5Er XCV7Yt2giukAnjXSbsgzrHYSp/ZOVZY4lsqq5S6PVaYqtZm2yGzJEJABD20mb2yNxwph O3VQ7Fes7ugLILDAAtTMOyUZFXEkAFXoEZFtE3YodKMD4mAcX1Uv6TIlE2bsFP6LRqFG XKVVz3euw9ddeiljCgw3DHERpuD3vKeX/vYfoQLT8zEspeCz7zKFQ4xSd95+ckE/Muhj dZkLelzczT/3dNalCez4/rR/uX5pesgtKzFT/liHBpW60iLtuntxQTFbcw8U5U6vjfqg buIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si1122470plx.120.2022.01.12.14.31.34; Wed, 12 Jan 2022 14:31:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351251AbiALHjd (ORCPT + 99 others); Wed, 12 Jan 2022 02:39:33 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:38286 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1351267AbiALHjc (ORCPT ); Wed, 12 Jan 2022 02:39:32 -0500 X-UUID: f58b5cd259ad49a3a7d031d6a98f96cb-20220112 X-UUID: f58b5cd259ad49a3a7d031d6a98f96cb-20220112 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1094068246; Wed, 12 Jan 2022 15:39:29 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 12 Jan 2022 15:39:27 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 12 Jan 2022 15:39:27 +0800 From: To: , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH 6/7] Bluetooth: btmtksdio: run sleep mode by default Date: Wed, 12 Jan 2022 15:39:16 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Sean Wang Apply sleep mode by default and a smaller idle time to reduce power consumption further. Signed-off-by: Sean Wang --- drivers/bluetooth/btmtksdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c index 3e8f19556e2c..491f029452ca 100644 --- a/drivers/bluetooth/btmtksdio.c +++ b/drivers/bluetooth/btmtksdio.c @@ -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; -- 2.25.1