From patchwork Sun Jan 7 18:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jonas_Dre=C3=9Fler?= X-Patchwork-Id: 185752 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp646077dyq; Sun, 7 Jan 2024 10:03:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IH1Ic+b9f4byTX2hxklTrlsFtWkl5sWAxiPstPx10/lvcT/xOoupL/Qv7o5m8HHNhWOu9l/ X-Received: by 2002:a05:6871:331e:b0:1fa:fc26:7f81 with SMTP id nf30-20020a056871331e00b001fafc267f81mr3622311oac.14.1704650630990; Sun, 07 Jan 2024 10:03:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704650630; cv=none; d=google.com; s=arc-20160816; b=jA/zADTf3BGXGL+0p+wdki8flV18nuILKkA/0WIlwiv7ikAytYTgjUzTEzYDh+taxB SYa+9JQ29PE2YTGq2p2yfS8LzNhFixQjNyexjrQauk1TU/4jG0HyJaFvnxfZDSspKAIp OldV2hoPOgpoFWaDjcfetiz1qvwPZRF3haiZsjQCREHwLgspuRSVZSQNTtiDE+QkC1+R QGUlRWRFRmmQp11eo/wfTnQZ8APbEI11EnS8+gJhfCVElEFXfC5GN206DtqfL+u1S1iq 4WRxPtD/QKEl/iwuUea9++QgkS7h/RmABmi4lMyndAt60A8MysAOxF3tIvApwMWtpfPp em0g== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=BRBLKvI85gKxwt/MZ0dWAOM6hKHOZ1H0DLsqRVmVE7o=; fh=S5rf2bc7VLlSXYQ0EqFAIodb1qEiUfsxulvZhQKZRws=; b=iIz+KKso++lXYs8oHXGrkc2wGMRo+aNDIcmmJaLLPlQgXGBJseX4LzvaiLU52bU9vu LUcZ+Y1swb6Z129pjqNZcCeiaZ7nGklEWfU4RmwXCFJPaklG5ROr01uvVifS6rfM7krm enVp0BwxBW0haGCT9RMwJPvEnVAyA1wkYuNDJ1u737vRzwmR7jJUVLCUI4oIWa93Loy/ Lo+LIgqx+gIDTmjPi8UY/L9+gNhzV7Xz/h3pa+EAhToZipPMF9yCXBnClMTg3/skIDRo hpTVl9cEylPKGdBFRX3SgqeqMlvzINFqhMh2TzErfgbgAEemI0QgQxsZizdANtaq1REZ eXdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18941-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18941-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h191-20020a636cc8000000b005cd84895879si4940414pgc.789.2024.01.07.10.03.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 10:03:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18941-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-18941-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18941-ouuuleilei=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9B4BE28209D for ; Sun, 7 Jan 2024 18:03:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BF57714A84; Sun, 7 Jan 2024 18:03:14 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (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 6405F13FEB; Sun, 7 Jan 2024 18:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=v0yd.nl Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=v0yd.nl Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4T7Q5x1MFpz9svQ; Sun, 7 Jan 2024 19:03:01 +0100 (CET) From: =?utf-8?q?Jonas_Dre=C3=9Fler?= To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: =?utf-8?q?Jonas_Dre=C3=9Fler?= , asahi@lists.linux.dev, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v3 1/4] Bluetooth: Remove HCI_POWER_OFF_TIMEOUT Date: Sun, 7 Jan 2024 19:02:47 +0100 Message-ID: <20240107180252.73436-2-verdre@v0yd.nl> In-Reply-To: <20240107180252.73436-1-verdre@v0yd.nl> References: <20240107180252.73436-1-verdre@v0yd.nl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787455739898071871 X-GMAIL-MSGID: 1787455739898071871 With commit cf75ad8b41d2 ("Bluetooth: hci_sync: Convert MGMT_SET_POWERED"), the power off sequence got refactored so that this timeout was no longer necessary, let's remove the leftover define from the header too. Signed-off-by: Jonas Dreßler --- include/net/bluetooth/hci.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h index 111e8f8e5..cf5d6230c 100644 --- a/include/net/bluetooth/hci.h +++ b/include/net/bluetooth/hci.h @@ -426,7 +426,6 @@ enum { #define HCI_NCMD_TIMEOUT msecs_to_jiffies(4000) /* 4 seconds */ #define HCI_ACL_TX_TIMEOUT msecs_to_jiffies(45000) /* 45 seconds */ #define HCI_AUTO_OFF_TIMEOUT msecs_to_jiffies(2000) /* 2 seconds */ -#define HCI_POWER_OFF_TIMEOUT msecs_to_jiffies(5000) /* 5 seconds */ #define HCI_LE_CONN_TIMEOUT msecs_to_jiffies(20000) /* 20 seconds */ #define HCI_LE_AUTOCONN_TIMEOUT msecs_to_jiffies(4000) /* 4 seconds */