Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp750037ybg; Tue, 28 Jul 2020 18:44:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTIKhCJ2sGurHlwiecB6ZsDDTHDjOat+Uug2jLhqR+V4gzv/IkAI+n3vdPq+pda0FeXGsK X-Received: by 2002:a17:906:1911:: with SMTP id a17mr18875656eje.431.1595987082863; Tue, 28 Jul 2020 18:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595987082; cv=none; d=google.com; s=arc-20160816; b=sJCasrQ6csR79us4j4DMZyzESsrC7rEMCGi/XNCX5R0i8H6egT/QnvhnvmMA92G/1f wcfe9AlyVo61JZlnXN1l2Q13BCNjRZ2yQiuZvg7B+ZnVpLP9Q5eHL8X43kZa3bqt8Mzo ai1wLlCnA9Z9E3EMNhGhdHlNynVB7QzBoafpTHG3zC4Rd5wSMKmWOvfoTGwx9vIv8EcR BXYi2NfXvdI6qr1EhJFM/eULkNrAkx1OdJQ9k04wm7cpT3AkFpqoSKQ3+vEkfcnY0Ul5 0+o4mIec0WmnWCo3LXcL/ob6TvzDhtSeKMHLa9VG7/oVO3bg0D1tnUWI41r+ER9vvbsQ Finw== 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=2JREyKdWiZay/mV18M1Axh+euiqXpqs5sXmHMc+iAKQ=; b=sBpWbPBQwMQmIkIA/UypDxmtWjmXzfZzo4rtm5rjw6OZTUrGDGnEbZh8hJrdngTjra dDzbR4MNAzPz2H+ulK+x1Lp+KraXSeK9EgbMzMCvEtZ3UI1O6i+31nkggpRq2UuJU2Q7 NNY49ZJvQQI+b33DHCud6J3GzbZMlGP7Mf37dByejqKDcZgiLuZU3fABTG4DjEgjW8Rx apOD9EopTgBpNhHqhlBHD1wZE2KWQHxfXxGS2cLPHfKjDkSJrLKE4s8IeEG/qZ9sSdqB csngCgo917SgOkUTyXJo0bYqZkpKo+seDrdGnQtgXV6qymhvFI1N0H2UMQGqCx7iV3YN xxJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mv5ftazH; 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 g6si337884edl.330.2020.07.28.18.44.19; Tue, 28 Jul 2020 18:44:42 -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=mv5ftazH; 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 S1730524AbgG2Bmk (ORCPT + 99 others); Tue, 28 Jul 2020 21:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730436AbgG2Bmj (ORCPT ); Tue, 28 Jul 2020 21:42:39 -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 8C8BDC0619D4 for ; Tue, 28 Jul 2020 18:42:39 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id y206so1797501pfb.10 for ; Tue, 28 Jul 2020 18:42:39 -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=2JREyKdWiZay/mV18M1Axh+euiqXpqs5sXmHMc+iAKQ=; b=mv5ftazHEBjQoDdXHQUpaVOF1CD/lzXNM9zfmJde18RJxukAT2Wx8L0bZBp7YGKNbx e9uphKZyPXLxsThr5ua9lbNWsAvEOrbDPDh4SnRUsxEj3KepOa5d2jGbyXpTAdsRCcXu 1xfJpH55O0nvsvyiDtieZSWOaXnVXd5BD95m0= 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=2JREyKdWiZay/mV18M1Axh+euiqXpqs5sXmHMc+iAKQ=; b=LTYqa2JZNexIe+klDrezaNCDdL703vhu5nDLi+vWvrkmWWOjeyawvkBWp079AH/cIO 9Ho/PWlxUmzdRtuslrQIQ7uw0ancVFw5gT8gEF9/hChhDJUHT8lnB9a25TRZBfIJcpqv H3SS/KW24KPfFjOwSDPhVJ+2LAQltjRGmCUZwov7Vgfy+/bwlLlDp80O0dHwuWpBZYTr saprdhIJtdxd7LiVshESExQf/HanWIi3PZloucOOMTDNoCbamvWuPgUSJY2ozTEqT2lT DCNy+iht+jiz9EhWwxy9SvBhK/nlPCsUxe6YUwwlL6gRIYdtWp5hFlSl3nCUWINkFxTo UbxQ== X-Gm-Message-State: AOAM531udwwNg1i5ZuhzuiJiQxLU8IfesLsOUxqT2+4cYLdn+cdZAm9H kteUD1GWY8ToZ2IHADQ1yne23Q== X-Received: by 2002:a63:935c:: with SMTP id w28mr26269597pgm.174.1595986958935; Tue, 28 Jul 2020 18:42:38 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:7220:84ff:fe09:2b94]) by smtp.gmail.com with ESMTPSA id e124sm280678pfe.176.2020.07.28.18.42.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 18:42:38 -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 0/3] Bluetooth: Emit events for suspend/resume Date: Tue, 28 Jul 2020 18:42:22 -0700 Message-Id: <20200729014225.1842177-1-abhishekpandit@chromium.org> X-Mailer: git-send-email 2.28.0.rc0.142.g3c755180ce-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/11663455/. 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. 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.rc0.142.g3c755180ce-goog