Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp657306lqs; Fri, 14 Jun 2024 01:24:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXz1ZHonURY11EWKmjyFAJN222RlfZDaibwlDO7gDxfjuWUrVM5NNjDPefVVqvADpLEU/ln/Y39sHMxUDC8tYsRhaeGIitu7sMLgEf8AQ== X-Google-Smtp-Source: AGHT+IGpdlNriS7G6Lm/W5nlgfZpcpaIAvFTzgB039WnXkETIpKMVJwPUgDrvsTTwJCbwaTo1ppa X-Received: by 2002:a2e:95cf:0:b0:2eb:850d:a53d with SMTP id 38308e7fff4ca-2ec0e46e67fmr12767661fa.16.1718353452326; Fri, 14 Jun 2024 01:24:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718353452; cv=pass; d=google.com; s=arc-20160816; b=n4ZhrrnqSCk5DC8t4ue5dS9G4tXlxvcQDhuKojf0rob+3zRgrU4cESB7Rl7dYRbfkq GNP73CBhLCbxiFo2WuHc+Gvd91ab66ULm6+oEBmgJIde/DX065uQjdfVDQ3VXhFUbKng 7+thdXH9LIBVOrq0bi/FogVcHa5Gor0epjWCrnAsydtNYkyPDQYsBL469B48232H+sL8 hP3rMNLYWnnnjeqWAbZOd2lvXOmUjqoEly/w6lrdoH108+ariEW4B2IRKjJP6FqlUDML 4a/iEQ1QXjsYdFuZ4dLXRb2JplLHw6m8l26vMuSwRMgTki6nUpNXDCUX1qRvO79Uoiog 4YaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=2sGkO49KLFONWfFdi6QmW1EeesHZpy/3bqd+R/nBwTo=; fh=jQ5WhQ7D240g5cMA531jgN8TDQBEvBFiS/zbNVHHlic=; b=0EfvIqrlSraMTzhc7B9cMD7T78emE/5G1+sOPfYkFXerw4RqtKcwug1+JSo2nKA/Io ay41BHilWj0mXNl6+LZhbvzSsvh0DOHZFpDeLqv4Xkp/BZBtUuSJAjIk7aKXNuq6hbfQ i8OyKc2Tn+TgeuuQdK7GC/tpKLDrsc9g46KdodauMa/sxEoXAxIeNnP0o3xwT2P5I8CT tNBtorrOBjb7YA/nNcw4l5B1ZL+sGSsePX5bW8OOSqe6ZzjgJVy6OJQm2WC5oax/VvSu PX50I/TKqfphhrXP1AQE3vrjAju3mYPu1FMuHJSEXTJlaA9h+eoDzpO3hPbQ6S/4NIW0 Mipg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-5309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d61a7si1500695a12.121.2024.06.14.01.24.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 01:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-5309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-bluetooth+bounces-5309-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-5309-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 07B421F21BA8 for ; Fri, 14 Jun 2024 08:24:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1D1718FC65; Fri, 14 Jun 2024 08:22:51 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B71A218FC6B; Fri, 14 Jun 2024 08:22:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718353371; cv=none; b=tvmRDEL070xB2GiowIH7cc7eSWVPaDV3zrkHrXT9+NiqMuUx+4GaEB+P/w4CSDUVKmbc6leNZCPPQNsPe4bOMSHTKrt3vNzMUGWzgeBLu13NQopn5WnZlZ0kmbHp2gcKgZv7irn0sPy7yrDwk4kOZjWG9rbN7uQBbalB2bNvJmc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718353371; c=relaxed/simple; bh=DN8MJhZE/6ABuaOgDNbrslUWBDHWkr4DQN1q02HGp+I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=E5lUOc3G4eHKxAdag2aETPAp1z8ExdaKNRKaxqgHT/lRFbz+pJgt7uE55Ccx+AJOKzjSG4O+SHuUOgQHzjClwqWJtBd/RCKZNH2iUQD0mIv1m8KeFdNI3SiF5Y7aCFq5WDx4xVieeyCZplyi5N12o06rmi1IBlbcufNI3dRObhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id DEA92201744; Fri, 14 Jun 2024 10:22:47 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6A202201742; Fri, 14 Jun 2024 10:22:47 +0200 (CEST) Received: from pe-lt8779.in-pnq01.nxp.com (pe-lt8779.in-pnq01.nxp.com [10.17.104.141]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 2E67D183ACAD; Fri, 14 Jun 2024 16:22:46 +0800 (+08) From: Neeraj Sanjay Kale To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, amitkumar.karwar@nxp.com, rohit.fule@nxp.com, neeraj.sanjaykale@nxp.com, sherry.sun@nxp.com, ziniu.wang_1@nxp.com, haibo.chen@nxp.com, LnxRevLi@nxp.com Subject: [PATCH v2] Bluetooth: btnxpuart: Enable Power Save feature on startup Date: Fri, 14 Jun 2024 13:50:39 +0530 Message-Id: <20240614082039.6465-1-neeraj.sanjaykale@nxp.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Paul Menzel --- 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