Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3966524ybb; Mon, 23 Mar 2020 11:00:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtC9g6pysOrv9GeXvvr8JX0ndKUjPA7j5jfDIjW2FW2GssRhkt6KjtpW3u6kpewjex9X6Dv X-Received: by 2002:a4a:a126:: with SMTP id i38mr769722ool.11.1584986412729; Mon, 23 Mar 2020 11:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584986412; cv=none; d=google.com; s=arc-20160816; b=fw3DtaPLh96rSb0sJB9tFBZJhtiXE9ti1UYZJOjUCG7RRN0oorLIQOv1WnI/n7B+V4 NltPq3GXxgYTot/sM1qLvTiP4S/aeupnGPVY2141D1T8MiEPsF4UpeuU1YujoYFS89dr aYHyX7Y8hphnoyDA4LADEmMIwAex/dSsur1ecuTKfSZZ2vTpiKtkztQlE5+DMQRlCOhy LkRfoy2N+4xcOuZo7Kl/zaqzHK+1rvuvw88//ktVxbwBfs/SZUR3SeM2hfCV3BPagCza CilPe5Lau8PkaSTCe+XDD42kPP++CxXL5nWjmStH/UXYmaSeEdIlwKH7MegytTynVFw/ 0Rmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=N1lNiHO6xPgUYO8vpSF+umT+MsS9oLeQwMA1IUK4msY=; b=U49GwBbolGn5sQu3dYq2PBPKP6kV1U7Y23KN90nnilNGZu9oDwn2Ec/ujCV9n4ZfZ5 EFT3eNvayFy07VN5erT6UJ8o2bHlz0wia2rXjrIRGJQ5O4mH6QAVP8cgZy4g3NS20DHd JExH14hM2R2j1qkNJThduyJoge1AV46hcrkNHWJiKzFxjjefUIadaniwv8H7w+MIht9R pf12fXRVehXtBGYCz9DVlBHvO1iAKIZtd3AXZFrgjBj7SVCozkxHKzRq9WyYuCBX7ipH Wie5sImNIivbgADNw6SinQTwNKGClZbkpSspSRpb9Hef14WpUtV1Z/DAEHD9gUXSh8mN m0uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oac+Na4Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l5si976082oic.3.2020.03.23.11.00.00; Mon, 23 Mar 2020 11:00:12 -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; dkim=pass header.i=@chromium.org header.s=google header.b=oac+Na4Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727135AbgCWR7u (ORCPT + 99 others); Mon, 23 Mar 2020 13:59:50 -0400 Received: from mail-vk1-f195.google.com ([209.85.221.195]:36211 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727011AbgCWR7u (ORCPT ); Mon, 23 Mar 2020 13:59:50 -0400 Received: by mail-vk1-f195.google.com with SMTP id m131so4058880vkh.3 for ; Mon, 23 Mar 2020 10:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=N1lNiHO6xPgUYO8vpSF+umT+MsS9oLeQwMA1IUK4msY=; b=oac+Na4QF5JdaT66BiopNbxc1KdXssKfiBlw2slQLPbJQBivpZ0EN0e6Sgvlv3MlYt LFkGEQSOGmkteEnbM8Sa5xhzWzDoK40s+TbvrvTQ4l0I2NLeiOBlHX3V2ZDM+gX9fHCA dE2zVE+twtdZnNDIfr1GiogTDw8RQHAcUZxP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=N1lNiHO6xPgUYO8vpSF+umT+MsS9oLeQwMA1IUK4msY=; b=bX20n1HL6fyly7rSSokOu09NmMwIYqGTC4heOxQUlV4s/mCSvtft0p4J3tEDw0E5MC mp7By9QXB5R7glIyG1sJroDjQXHjF5sbuewZfgJRD3ByLj4ssqP0LMLQTqZgKuRdRmKA 1JpIiT51WkvCIQjSFVZ4qyQL6iDmr0hT2fCLA+HxaFJuF8YEkMI5ORO3EiYhIb5d5Ub/ f/nlO8K7G8L5rcQtxxlSV/C9PT1PJU2YNFIMb6697HMOZhEthYLc1WVPdX/BLgF/a83u k/Pp0oALeiHO3X8+LJ3HiRpthgJxm9E4wUrlQtHKqpuSMQeVsA5PmS3suxX17YluWt7z uEYQ== X-Gm-Message-State: ANhLgQ1oGGUvxrdyPlIRAHLyuZAet1ibc8CByV7V37PFN8Szl7pXy2gW DAbHs2rcCs2ioIJxXP2QEJ+SqR6kxneEpwcDgOUPBQ== X-Received: by 2002:a1f:43:: with SMTP id 64mr15772046vka.100.1584986389210; Mon, 23 Mar 2020 10:59:49 -0700 (PDT) MIME-Version: 1.0 References: <20200320000713.32899-1-abhishekpandit@chromium.org> In-Reply-To: From: Abhishek Pandit-Subedi Date: Mon, 23 Mar 2020 10:59:37 -0700 Message-ID: Subject: Re: [PATCH 0/2] Bluetooth: Suspend related bugfixes To: Marcel Holtmann Cc: Bluez mailing list , ChromeOS Bluetooth Upstreaming , "David S. Miller" , Johan Hedberg , Network Development , LKML , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Thanks Marcel. On Mon, Mar 23, 2020 at 10:50 AM Marcel Holtmann wrote: > > 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 >