]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mt7921s: Support wake on bluetooth
authorMark Chen <mark-yw.chen@mediatek.com>
Sun, 9 Jan 2022 19:23:58 +0000 (03:23 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Jan 2022 16:41:38 +0000 (17:41 +0100)
commit605abf71d0d12afe8b484c541d761b1cfb2a73bd
tree68b403daac1757b9f75019b760010518d6fbbeef
parent5484fe764840473cc0332fc03b1cea46c486a2f1
Bluetooth: mt7921s: Support wake on bluetooth

Enable wake on bluetooth on mt7921s that can be supported since the
firmware with version 20211129211059 was added, and the patch would
not cause any harm even when the old firmware is applied.

The patch was tested by setting up an HID or HOGP profile to connect a
Bluetooth keyboard and mouse, then putting the system to suspend, then
trying to wake up the system by moving the Bluetooth keyboard or mouse,
and then checking if the system can wake up and be brought back to
the normal state.

Co-developed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Mark Chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtk.h
drivers/bluetooth/btmtksdio.c