Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3959984ybb; Mon, 23 Mar 2020 10:51:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt63oiVHi4aU/PvpfMTBpSkDb0SbiZx65fesriVm3atVwnj88biashZ31xzRoQjM2UtwPfm X-Received: by 2002:aca:5d83:: with SMTP id r125mr438476oib.8.1584985869313; Mon, 23 Mar 2020 10:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584985869; cv=none; d=google.com; s=arc-20160816; b=CiHrzpY9znqp3UUL1uEDlLOfIeJPkWa1XyG9HhneG63xwigpSoczit4xcDSK6aQnaF tBn6OI2/EcFDy9cv5zHtCsaXo0xTw0GjlQPnJgO1AwnuvuL4iHE+tt6ug4wL2P6YIpo/ env8RnDHIBEffjHtE3Zm3VXJtCFGBmsTdnpAyGGgjpdrjYPq5vliqjl02+0CXm4nY/qK vLMLFicXZ3LNtoNqTj2sCVtq/Dwii6LR3rPYzrdB/JSRLBDme+3TqG94eiWuXYMXBd/f CfdaWIx46kv/cppofHGCfT/hpRJVuwDfPCZ2ybZKNjqUxq/mGro7l2xpKbPdmhVBoAZ1 +1zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=c56/U3551QzhlDVRAtgjUkSplSIAAjSQ3x4Zh4V+pRg=; b=npXS6xFTMfw97kfhTliY2T3dmMRtLLxXXk5oph0F7XF0ZDoDK3zgzr44Y7D1z5z0OV SS/njAvARpXYZ3g9CUq+8fVjSPWQsDHbyWK/EzVS4j27AzSudvvBaY8S9NbdJpc8hguk 0VwYICw9b8Tu1hhpRb+BXkegKCyLPp5XdsdwLh+LDjXCD3An59+BayX1twS+kVsjI2no iWYL1J664IKMf8o7bJAOeHIuk1zGoEmIKeBQr7pL2RfKVZ3l4AHIgvCW6eUTkSjddJ/A 4dJ8Eldl1YxRq4UIkAZ3sTqW+mCjVKdVJRRZMcmgJCnFyRYn3Vq4cad0xpfV0aEM2lhN cJMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si247165oos.54.2020.03.23.10.50.54; Mon, 23 Mar 2020 10:51:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727257AbgCWRur (ORCPT + 99 others); Mon, 23 Mar 2020 13:50:47 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:60799 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbgCWRur (ORCPT ); Mon, 23 Mar 2020 13:50:47 -0400 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id BE1EBCECFF; Mon, 23 Mar 2020 19:00:16 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [PATCH 0/2] Bluetooth: Suspend related bugfixes From: Marcel Holtmann In-Reply-To: <20200320000713.32899-1-abhishekpandit@chromium.org> Date: Mon, 23 Mar 2020 18:50:45 +0100 Cc: Bluez mailing list , ChromeOS Bluetooth Upstreaming , "David S. Miller" , Johan Hedberg , Network Development , linux-kernel@vger.kernel.org, Jakub Kicinski Content-Transfer-Encoding: 7bit Message-Id: References: <20200320000713.32899-1-abhishekpandit@chromium.org> To: Abhishek Pandit-Subedi X-Mailer: Apple Mail (2.3608.60.0.2.5) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Abhishek, > After further automated testing of the upstreamed suspend patches, > I found two issues: > - A failure in PM_SUSPEND_PREPARE wasn't calling PM_POST_SUSPEND. > I misread the docs and thought it would call it for all notifiers > already run but it only does so for the ones that returned > successfully from PM_SUSPEND_PREPARE. > - hci_conn_complete_evt wasn't completing on auto-connects (an else > block was removed during a refactor incorrectly) > > With the following patches, I've run a suspend stress test on a couple > of Chromebooks for several dozen iterations (each) successfully. > > Thanks > Abhishek > > > > Abhishek Pandit-Subedi (2): > Bluetooth: Restore running state if suspend fails > Bluetooth: Fix incorrect branch in connection complete > > net/bluetooth/hci_core.c | 39 ++++++++++++++++++++------------------- > net/bluetooth/hci_event.c | 17 +++++++++-------- > 2 files changed, 29 insertions(+), 27 deletions(-) both patches have been applied to bluetooth-next tree. Regards Marcel