Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp85923ybb; Thu, 19 Mar 2020 17:08:09 -0700 (PDT) X-Google-Smtp-Source: ADFU+vufT1xiZqSgjkM7V4qoaTbUpvEr02XIHim5Am5HvZIKb4tKdsh1n4DXR4gz1eEak4BDqMeO X-Received: by 2002:a05:6830:c5:: with SMTP id x5mr709950oto.302.1584662889107; Thu, 19 Mar 2020 17:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584662889; cv=none; d=google.com; s=arc-20160816; b=Qpjtz8AAxBJ2pM/h0Rs/IXNH2H48JyFhgPCxZdk4ZcdfBXnkcwpahh7rt0quZKzb9w yknfGpc4RIbjhNlGUA3jfgAuFzuTHhCXr8Wa/hPuV+7ZWWtd7fHazj4r0D+h/+L+nwK4 yWIesOE3ai+iA/b9Ie+ve6VwYkZ8u7NlPui6Ca4lWaXIA+ocUelgPOphKELdNbZGetSi ZfrxRm6niiTmL7N8PkwQMBBwqH14hy41/sR//Ys3OZoGfueXzASLRXsr9ZwIoGXVxo5L AeNy4OKwaigBCgJ+cbwNvNt563y7r7XYV4eQXKejoh56+VABBZK9bjyGXzs0sxzgZKtm WSAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kLb0ZW3Gt56un5tXJnGrDhWNvjh5tVVZUmrjKBTkr+I=; b=AoHW5QV+Abo9Q3esfORKvIzm+t5zMMx7IkFXU+2FOhBHI6+bjZTIo+Hifvn4x1s9/B HMPS4n19+w+2rW7qLsVMWmQw/jXDac1dpAt7PWL3M1FdDfqTG3DQOgxpwYTMibJ703my raeQc8oLsy11rBrRg4I0rl1uZXRbGe9L8wecJVRkc6P73qTr/HNG5ceLtpXuDiV2dV6t Rc932z8tGMPQc7kinzrO0LdcPTdYeTAEVM+DyUxq9VSW4IFmj0AwfON3utattNYVL5dc Pt2GJX4FdyLXN9yONtrdDl7qJgXsGvcVv3F+HmD5vB0rm0GhO9QToLJSVI3Xylp/WKru kI0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LY7Fc+nl; 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 105si2392582otu.166.2020.03.19.17.07.32; Thu, 19 Mar 2020 17:08: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; dkim=pass header.i=@chromium.org header.s=google header.b=LY7Fc+nl; 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 S1726663AbgCTAHa (ORCPT + 99 others); Thu, 19 Mar 2020 20:07:30 -0400 Received: from mail-pf1-f172.google.com ([209.85.210.172]:33144 "EHLO mail-pf1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727202AbgCTAHa (ORCPT ); Thu, 19 Mar 2020 20:07:30 -0400 Received: by mail-pf1-f172.google.com with SMTP id n7so2321521pfn.0 for ; Thu, 19 Mar 2020 17:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kLb0ZW3Gt56un5tXJnGrDhWNvjh5tVVZUmrjKBTkr+I=; b=LY7Fc+nlEVtHs0x3b9ctNL+6CrOSlcR+dUMnjqvjQwijmEnKO6WMGSwm7kxpjqqoOP rQrvu1SMuG56ettv/vRNoQUuSnEvkfcvf9DdCO+i+sU1NuOcoAkGsBA2HbbgokioRHFt OUg11p+DIaNLmdcadaLQASLwXes5a1rc+XT9Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kLb0ZW3Gt56un5tXJnGrDhWNvjh5tVVZUmrjKBTkr+I=; b=fYSTKu/mEf33UuWGM+gpxDg4LBXMqt+GPI0UAwkoiZeue774q3gizpYWBzDS4ZGFGf c12fcOgKKBoU8JOb1qu8eU/vO+a+T9uzg/nn5Ed+o7cWtgIr09zknjOhrvDZTolxG4Ne 8tmNu9lg8FO9OqxDUIima8hotN9jBtSFPBL9t5BVvZ6Nt/Fqo8ZTZo4Sj1H8JKaQ0sTT mIXpMvmaVXyitZNSdH/gfNeZ8cTbJGV/3tXnDAp0b+ZmjhnDj1mZ+ezi5TDag363FHKN WWhNVd9i4+WHR+8FhPHzHIs1IeMoJCdDkAOqHjL9oKeqbHxZ8MGXuU+BEWJmQuATpG4l z4Aw== X-Gm-Message-State: ANhLgQ2ay8aViqI7sFyi8rVUV4NqonD/3chpcsMa8JtJZSpouvscxmvN xpNqOmHXlfcNsRrXYvdFHkxJ7g== X-Received: by 2002:a63:c507:: with SMTP id f7mr5766872pgd.278.1584662849286; Thu, 19 Mar 2020 17:07:29 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:e09a:8d06:a338:aafb]) by smtp.gmail.com with ESMTPSA id m12sm2928292pjf.25.2020.03.19.17.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 17:07:28 -0700 (PDT) From: Abhishek Pandit-Subedi To: marcel@holtmann.org, linux-bluetooth@vger.kernel.org Cc: chromeos-bluetooth-upstreaming@chromium.org, Abhishek Pandit-Subedi , "David S. Miller" , Johan Hedberg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jakub Kicinski Subject: [PATCH 0/2] Bluetooth: Suspend related bugfixes Date: Thu, 19 Mar 2020 17:07:11 -0700 Message-Id: <20200320000713.32899-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.25.1.696.g5e7596f4ac-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, 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(-) -- 2.25.1.696.g5e7596f4ac-goog