Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp554291pxk; Fri, 11 Sep 2020 14:08:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8+4r+FTxaLS1r6cq3z4gCeZUXVkyAalt4PIpfmCyKjoV1ccip2fKfHIPKvNUVprf57N69 X-Received: by 2002:a50:d78e:: with SMTP id w14mr4517777edi.229.1599858495853; Fri, 11 Sep 2020 14:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599858495; cv=none; d=google.com; s=arc-20160816; b=mX696BRypX0sZRnDts9aoQ+KjAJ12uUooKrdLRlqHbe0gCiTaXC/BZRL0gRt98yAwN C5HkYQDv6FD4Y6XPCg4XfkYO3SUnWgq0CFNJpvRQ11oDlBi4MrZu2w2e6mBZC0ci5hW4 C4Twm6F0SNuLrkFju1qUB4YkzbBpkrpYjiYKn1vWwxWYIzrxAAHUPdgkqR/twXDjtvs4 ERMXWUKDZG71JOVMJwsqOFuPoq/fhLYOqD/vRdlNItzrJNnR2dTlLypGITam4dPloRd9 QhfrP6VAzLT5rOzR1kllX5jx+E9G6DrZ/YNmwb0XlkxLRFmuaNUVVUQyiSv+1jeAqkL8 IGtg== 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=jgFgQZn5QUo1XXE/gnomBtbR6UbPde/+9+WpoRrQOPw=; b=iwGNSEqCLmJYFLdJEoddQd4RYySx+7mwN0ibGyeQWrj275PAkNlAwT5ERL86yMmCJe uPQXplmANWBSpXl+9fs0JJ+yTS/TSmT+hkD3fuZV6hGyat73TZUlr9gPadhqN76hQuMq 9GIPu3yGpzMpO6aT0blTnxnxnHqz7QJG5xjG9971v2m7mmYYHiK88Mzv3mnnOfSPz2cL dT+08GWGM00R3q6lUemAsGvlc5U/hKsOOVdlRDo5iDpA3r+/n5Nd14cqMWx4csUP6uCo yAfR9ahjuyttDDAP4oR0gsdL99refu/CVrRAm32SwcgAUiT3V+rUCNfKWxE5w4QwY7et 5ydQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q4u5rcfP; 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; 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 do18si2157349ejc.13.2020.09.11.14.07.32; Fri, 11 Sep 2020 14:08:15 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Q4u5rcfP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725841AbgIKVH0 (ORCPT + 99 others); Fri, 11 Sep 2020 17:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbgIKVHY (ORCPT ); Fri, 11 Sep 2020 17:07:24 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8A2C061573 for ; Fri, 11 Sep 2020 14:07:23 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id z19so8265008pfn.8 for ; Fri, 11 Sep 2020 14:07:23 -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=jgFgQZn5QUo1XXE/gnomBtbR6UbPde/+9+WpoRrQOPw=; b=Q4u5rcfPt7QTOe1vp5gVHput9CRbaDUMGiQLJKMd3JvvKLhJd/6okyvWJ+Y87FeDgD 61cHLgCITFeG4q7KdUqlzC1VCy7kPPEKuphbwB9zz+WvBD2BRCLVH8yCVxTXvYxC7f2J +Koa3GNxLfZaGRyAzkTafgMeDasWx9LGxrE4c= 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=jgFgQZn5QUo1XXE/gnomBtbR6UbPde/+9+WpoRrQOPw=; b=nN0X2bsMJgNea3+IA3UFLl4tSsPmqG/w68VOByg1TP93kqjuSE4bSu6WmoPK3l+WbS SwpaHf3D6TQgCG5iXk1i1td3F4WsKVZdaP6ndcpIEwk4N/FQSDW8NWbg6dWyrmdi/CIh qQ93J74biZodU4qGqhWttkW7CyECFIxSOHv+xbinFwJGRsHoHwRBatJKKz7QkqneYRI6 au4TgJOo3BUkMJakf3s6sDc6dNJirb/zIB7OPjI0Nr6oN0VO4WRk25eYgJY2U+OzVoaB 8K41YA/7Q2YSjeK8PxqqfsaqcHSwvUKigchjdPOtTr7692PK0T1WTsvUnAaAkiLi9Liw 5cbw== X-Gm-Message-State: AOAM532UIcXvOPOx/izqPmYSZce2sIekN1NB4hI0z457KuRXbVyZd/zd 2t1Pa1rz01OUtoUlQL3zAG1Arw== X-Received: by 2002:a62:e90b:0:b029:13e:b622:3241 with SMTP id j11-20020a62e90b0000b029013eb6223241mr3834613pfh.12.1599858442536; Fri, 11 Sep 2020 14:07:22 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:7220:84ff:fe09:2b94]) by smtp.gmail.com with ESMTPSA id c128sm3308764pfb.126.2020.09.11.14.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 14:07:22 -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: [PATCH v2 0/3] Bluetooth: Emit events for suspend/resume Date: Fri, 11 Sep 2020 14:07:10 -0700 Message-Id: <20200911210713.4066465-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-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@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 Changes in v2: - Added suspend/resume events to list of mgmt events 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 | 30 +++++++++++++ 5 files changed, 150 insertions(+), 1 deletion(-) -- 2.28.0.618.gf4bc123cb7-goog