Re: [PATCH 0/3] Bluetooth: Emit events for suspend/resume
From: Abhishek Pandit-Subedi
Date: Tue Aug 18 2020 - 19:34:39 EST
Hi Marcel,
Please review this patch. A newer series for how the controller resume
event will be used is available at
https://patchwork.kernel.org/project/bluetooth/list/?series=334811
Besides usage in bluez, these events will also make debugging and
testing suspend/resume for Bluez easier (i.e. finding spurious wakes
due to BT in suspend stress tests, asserting that wakeup from peers
occurred as expected in tests)
Abhishek
On Tue, Aug 4, 2020 at 10:11 AM Abhishek Pandit-Subedi
<abhishekpandit@xxxxxxxxxxxx> wrote:
>
> Hi,
>
> Gentle reminder that this is waiting for feedback. Related userspace
> changes are here to see how we plan on using it:
> https://patchwork.kernel.org/project/bluetooth/list/?series=325777
>
> Thanks
> Abhishek
>
> On Tue, Jul 28, 2020 at 6:42 PM Abhishek Pandit-Subedi
> <abhishekpandit@xxxxxxxxxxxx> wrote:
> >
> >
> > 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
> >