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)
commitce64b3e949195768361b0e4111e0837e5e46930d
tree68b403daac1757b9f75019b760010518d6fbbeef
parent4b6858797229fc787d1b737cace469ad146aaaf0
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