Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp415199pxk; Fri, 11 Sep 2020 10:14:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyF5rRPC9Goftj3XQSaOnqCm0936YE0Hv7Rip9e4O5ZOXvHYoLnHWFWikJr6rs8X++qBQw X-Received: by 2002:a05:6402:305a:: with SMTP id bu26mr3334279edb.262.1599844492693; Fri, 11 Sep 2020 10:14:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599844492; cv=none; d=google.com; s=arc-20160816; b=0cOMUy+kMqysX2ycbyzBqM7AijAz5jvaHBypYlPZmNeYSfZEgQge7F2fUENlC1hUT7 W5T4bHS+H62ImuPqryy7ie1TLrJz7phZZGMmRKKNR7uF7ZCa2t/XU3CDtr7vhk2E9rgA VMDE0Uy45JoCfMrSrdCaKmeCw6IIDZCkM3LHOGw1Cl+rcpB4tcOgesDWSwHFmPCleemH lA7j4skz0QvI5c1jAnZcFHDo74nKDFkhBBD/B7ppFLixBqSN1Nh2hS9WuP7nyaYgpq32 s+/YI7PvvudEtJYE3Lw2q2FxdXoq8MWRuoZHyu0ZWpK/TvE639+8P6xZ2daOgBkU6PxZ +mYg== 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=9xx/aNqVyo8F+vwS35kGQGZUtQETH2qUMc7jEIvGGiw=; b=R/4w0vCiNCx5JcPy5PqG9BLxJonCweaDm/Ocu59s+B2WzeR/T5AkqV844AGyRym6Wt ByqRTRC/WPaRiHMMXOAz9sBmX7WJyiYkCbqKTKd9kR0ttOIVWCr0i0ak7O9be5FSF7XG lAuAZJthYvKWkM683EjCDPJGBnh3sXlPdyeP8nvv4b7v1nn7CBs1Ibxq38Sa4vHiJ+N9 i54Lp/xgGQazKMTjsYFLIK0OvZEKVhRV3TZyEwvOkIoP+CcMbFG725ZWNbcy+wDEMT3E aThaB9F8ePLwOGWEY4t5DHUhudg5u8GkZ1JoBS8b5Uz5141n17F4DPqMhJysdX/iBmtd swhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GZDyuoKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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. [23.128.96.18]) by mx.google.com with ESMTP id y4si1674908edt.161.2020.09.11.10.14.29; Fri, 11 Sep 2020 10:14:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GZDyuoKH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726348AbgIKRNl (ORCPT + 99 others); Fri, 11 Sep 2020 13:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbgIKRNM (ORCPT ); Fri, 11 Sep 2020 13:13:12 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 966B7C0613ED for ; Fri, 11 Sep 2020 10:13:11 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id w7so7866844pfi.4 for ; Fri, 11 Sep 2020 10:13:11 -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=9xx/aNqVyo8F+vwS35kGQGZUtQETH2qUMc7jEIvGGiw=; b=GZDyuoKHjUGYRo0q4YPBblihRY7pVBrudliixlJ7RLgVwDc+Kb5t+Undpb8QD8ma1k LxcEc4G4bBSIQ2egiR316Cnaz8Lb6jVplZhJXxXv4s5AQPe7Bhs1z9tnzvyqBP56gnxi fxVvfLI3EnCu4SpB/ycK4W7PuhQE1S57liyYA= 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=9xx/aNqVyo8F+vwS35kGQGZUtQETH2qUMc7jEIvGGiw=; b=MHIq8cxCA1bYEyHjGg5INmD43+BtlhtTPwE5WHDacr8zCFg3+VBoGeIDiG8L9Tu5P/ cLmjsKUt5+jQf8wEC8qgrxL4JwbrSFS71AU+KA75dIkhaEkRS9KSgyzn5NAVvJaQ60xt FCm2hoKsrpbOdm6+mTDK12+RA+FvH10+K8+1qVwiJjRQAPi4BXidZv2hVjoWqOrgLh/I atWDMXevPY9WoLO1pkKjPI75UX2J3B6JjBVykxTH1FjyXa4gFJ9+rhEQzZ1Dk42kQA3Y OUevzwkxT2AnstBkIlKgecaleYgCTYYVdYz6SPAD/66/mtY2WsRgxfWgjtQuC2SzOyfX tKAQ== X-Gm-Message-State: AOAM5320Ad2PtiWV1fxxZhLyyWEqQp1/I77UUmkpcRSee4hbQtOKuP3t GK0v3Dipd4KJHDuTeBMcjB1DCA== X-Received: by 2002:a63:4d5:: with SMTP id 204mr2422300pge.0.1599844391141; Fri, 11 Sep 2020 10:13:11 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:7220:84ff:fe09:2b94]) by smtp.gmail.com with ESMTPSA id h9sm2787452pfc.28.2020.09.11.10.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 10:13:10 -0700 (PDT) From: Abhishek Pandit-Subedi To: marcel@holtmann.org, luiz.dentz@gmail.com Cc: chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi , "David S. Miller" , Johan Hedberg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jakub Kicinski Subject: [RESEND PATCH 0/3] Bluetooth: Emit events for suspend/resume Date: Fri, 11 Sep 2020 10:13:03 -0700 Message-Id: <20200911171306.3758642-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, This series adds the suspend/resume events suggested in https://patchwork.kernel.org/patch/11771001/. I have tested it with some userspace changes that monitors the controller resumed event to trigger audio device reconnection and verified that the events are correctly emitted. Patch for btmon changes: https://patchwork.kernel.org/patch/11743863/ Please take a look. Abhishek Abhishek Pandit-Subedi (3): Bluetooth: Add mgmt suspend and resume events Bluetooth: Add suspend reason for device disconnect Bluetooth: Emit controller suspend and resume events include/net/bluetooth/hci_core.h | 6 +++ include/net/bluetooth/mgmt.h | 16 +++++++ net/bluetooth/hci_core.c | 26 +++++++++++- net/bluetooth/hci_event.c | 73 ++++++++++++++++++++++++++++++++ net/bluetooth/mgmt.c | 28 ++++++++++++ 5 files changed, 148 insertions(+), 1 deletion(-) -- 2.28.0.618.gf4bc123cb7-goog