Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp21638rdb; Thu, 21 Dec 2023 01:21:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrAvrvedmZujoV6JUUc/iipFlf+xWRsoPyOPwDatf5dD1wHG2mZ+b1+298hONBNzpI+PpE X-Received: by 2002:a17:90a:2c0f:b0:28b:44a7:48d with SMTP id m15-20020a17090a2c0f00b0028b44a7048dmr5448689pjd.56.1703150501117; Thu, 21 Dec 2023 01:21:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703150501; cv=none; d=google.com; s=arc-20160816; b=gPXhJnRT/jCVxX8ggaKoP/8z7CiLKKdCLhQIpBOFsOGsRyv/M7L0cilJgekEjSuIv+ Zd0QKcragP7ruogYXVxkiqB/vD/lv85Gd3ehoLWZCVLmAEoFvdzpCGRWdO58mIV3ic1o sk7EYBFF7bt9eLe1BrdE9JiqFKly+j/WoZvx6DDGY4VQi0rmn7tZGQe17RjvzgOHQT4h crTNWKXSqj7uIK0JRIn2wL3dO1AMgbv3OqMmVIqVGTqSDldzE6MqTJBncPKRtH2p/A+n 6EZGuGeJAz+39hGohvOO4/NvGrr2JfXikwv7p0xCjDckN74tgK+mgG5y+REM7obuUaCi LwpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=lfWsfa2Y9IypjNfGKu8EpvTyPGp8NXcgiBG6x5YbJ+4=; fh=4UGT/W4ScPbKe9ShNmcBo/4nU+a7MO9MYPWewKztn0E=; b=IUPABYXfrywkJiTrspKiSCkBCmkPxH4CNyRjb/+kFWQcsyGU3o44pdyVPYx4lFKUQO f2zAqPpOXCQERlCgngRLsWynUTkqCBRuEgm01Kfr9P4CvusAlUscLZ8ifganKb4pRsXx FA8TSOHL0BGocCSxUu8Su/ZESzyKz184aWk4XGOyGQ3ji+gvntH0GyhU3qg1e+SkcRi/ HkOg+/MDqGwjf75915Q8zDYFXCCDl10xrrSiUP+D7BFdmBp7F6DWlhPfh5w10Z4QiToB eD/7kEq1HKUSaXVSe5CKlI8ad5lV3F0Iq7fnH2VOoXEQkGW2jhjDiObd0uff2hp0e1sq 42pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-693-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e88-20020a17090a6fe100b0028bdcdf80a2si2013921pjk.157.2023.12.21.01.21.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:21:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-693-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-693-linux.lists.archive=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 C767B283E8E for ; Thu, 21 Dec 2023 09:21:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 037243398E; Thu, 21 Dec 2023 09:06:08 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mx3.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) (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 D965D4E60F; Thu, 21 Dec 2023 09:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=molgen.mpg.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=molgen.mpg.de Received: from [192.168.0.4] (ip5f5af5c1.dynamic.kabel-deutschland.de [95.90.245.193]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id B47F161E5FE3B; Thu, 21 Dec 2023 10:05:19 +0100 (CET) Message-ID: Date: Thu, 21 Dec 2023 10:05:18 +0100 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Bluetooth: hci_sync: fix hogp device suspend bug To: 15013537245@163.com Cc: marcel@holtmann.org, johan.hedberg@gmail.com, luiz.dentz@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, zhongjun.yu@quectel.com, Clancy Shang References: <20231221071621.1154462-1-15013537245@163.com> Content-Language: en-US From: Paul Menzel In-Reply-To: <20231221071621.1154462-1-15013537245@163.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Clancy, Thank you for your patch. Am 21.12.23 um 08:16 schrieb 15013537245@163.com: > From: clancy shang Not important, but you might want to start your name with a capital letter. > when Bluetooth enter suspend, and disconnect everything with the diconnect 1. enter*s* 2. disconnect*s* 3. … the di*s*connect … > reason code of 0x15,the hogp device could not into sleep and continued Please add a space after the comma. > advertizing. when use the diconnect reason code of 0x13, the hogp device 1. adverti*s*ing 2. di*s*connect > into sleep succeeded. going into What device is it exactly? > Signed-off-by: clancy shang > --- > net/bluetooth/hci_sync.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c > index d85a7091a116..16b5420c32d0 100644 > --- a/net/bluetooth/hci_sync.c > +++ b/net/bluetooth/hci_sync.c > @@ -5927,7 +5927,7 @@ int hci_suspend_sync(struct hci_dev *hdev) > > if (hci_conn_count(hdev)) { > /* Soft disconnect everything (power off) */ > - err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_POWER_OFF); > + err = hci_disconnect_all_sync(hdev, HCI_ERROR_REMOTE_USER_TERM); > if (err) { > /* Set state to BT_RUNNING so resume doesn't notify */ > hdev->suspend_state = BT_RUNNING; Kind regards, Paul