Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1354719pxb; Fri, 24 Sep 2021 02:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUvJ6fawohDs2k4Y6ihtaELSMyOwHkxNmiWsxxGFRSK/mN/S5IbBXeQ9EalQ0Czh/ukns4 X-Received: by 2002:a05:6638:2405:: with SMTP id z5mr8462893jat.124.1632476326453; Fri, 24 Sep 2021 02:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632476326; cv=none; d=google.com; s=arc-20160816; b=hVX6U3MPMFjIeJ9NNjFUf4wb1yYRzpkft/Wb1yy4xiHtqX1k9KABwEbBv1k07x2vOy 0Ld4O5+mMNh3H7bCTy0mfvOMzIlhGVFrbh1BlDfQ4dKhXufZXiSKQZnHDdiJKtnf9epe 1aBI2iJsqaB5zcBPfvPor0wlCt1RLtxmPkkVjf1bXH2bhwpCnO1skBb4Ftir3Tz58eGb M/n/MFfrsWt7/6EKSNuvquOFzptIySKdJ5rCmp55FTbcd97+BZ6WmBvEoNbBP97Z/qoC 2/M2tv90zjkAVYxr8EYXO8vQtACaSxqO5b1vapvhoKG3ATjcbAEA4viJAdoDo0NEzA0F ih3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=tazYD6u0qrXeHIDnYmGXW6lj4qk7YWMp4Qz7xgC/GRQ=; b=Wha6lyb9fHMBwMPMvNcUU8VEwHaEWym30Sy2WKTxL8wwAIxTZK6SsYgzrQRTadaDJb BceZQAWs9ag/GSKA2OUEtPOU7aC3U8rpYTMZtvmHEsgzGPRqFwKNVWZCc/nNcZQLW4w7 oWWgkx/Pr3YrzDvg6I6pbnvB601blzjMI1RxcqLGQJh0gSgptio17sWkn8zUal2CMWYP UXSmti1BJOPp1tJpv2E0w0fCfxFNMGa0+iGLuAZjwbNCBiYxyghK8K/xUp2npy877Ey2 EsAQKB2DY4rt2aEh+GS+shBojTFWFmoFyW00oVdwzAuq7VyBlaIVcgfCzFXWJOl9ka+M OzEg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si10193670ilv.102.2021.09.24.02.38.08; Fri, 24 Sep 2021 02:38:46 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245185AbhIXJij (ORCPT + 99 others); Fri, 24 Sep 2021 05:38:39 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:33970 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245054AbhIXJii (ORCPT ); Fri, 24 Sep 2021 05:38:38 -0400 Received: from smtpclient.apple (p5b3d2185.dip0.t-ipconnect.de [91.61.33.133]) by mail.holtmann.org (Postfix) with ESMTPSA id 59F6ACECF2; Fri, 24 Sep 2021 11:37:04 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: [PATCH 5.15 regression fix] Bluetooth: hci_h5: Fix (runtime)suspend issues on RTL8723BS HCIs From: Marcel Holtmann In-Reply-To: <20210920125739.111846-1-hdegoede@redhat.com> Date: Fri, 24 Sep 2021 11:37:03 +0200 Cc: Johan Hedberg , Luiz Augusto von Dentz , linux-bluetooth , Archie Pusaka Content-Transfer-Encoding: 7bit Message-Id: <5B663F6D-3856-4CC8-93D7-A16AE3F50C95@holtmann.org> References: <20210920125739.111846-1-hdegoede@redhat.com> To: Hans de Goede X-Mailer: Apple Mail (2.3654.120.0.1.13) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Hans, > The recently added H5_WAKEUP_DISABLE h5->flags flag gets checked in > h5_btrtl_open(), but it gets set in h5_serdev_probe() *after* > calling hci_uart_register_device() and thus after h5_btrtl_open() > is called, set this flag earlier. > > Also on devices where suspend/resume involves fully re-probing the HCI, > runtime-pm suspend should not be used, make the runtime-pm setup > conditional on the H5_WAKEUP_DISABLE flag too. > > This fixes the HCI being removed and then re-added every 10 seconds > because it was being reprobed as soon as it was runtime-suspended. > > Cc: Archie Pusaka > Fixes: 66f077dde749 ("Bluetooth: hci_h5: add WAKEUP_DISABLE flag") > Fixes: d9dd833cf6d2 ("Bluetooth: hci_h5: Add runtime suspend") > Signed-off-by: Hans de Goede > --- > drivers/bluetooth/hci_h5.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel