From: <yhchuang@realtek.com>
To: <kvalo@codeaurora.org>
Cc: <linux-wireless@vger.kernel.org>, <briannorris@chromium.org>,
<chiu@endlessm.com>
Subject: [PATCH v4 0/7] rtw88: add wowlan support for 8822c
Date: Thu, 19 Dec 2019 16:58:09 +0800 [thread overview]
Message-ID: <20191219085816.20709-1-yhchuang@realtek.com> (raw)
From: Yan-Hsuan Chuang <yhchuang@realtek.com>
Add wake on wireless LAN support for 8822c. When system enters
suspend, wifi driver can enable wowlan mode, and waits for
waking host up by receiving wireless LAN events. Events could
be AP lost, deauthed, magic packets, rekey, or patterns. Also
most of the functions can be shutdown to reduce power consumption.
To enter wowlan mode, Realtek's devices need to swap to another
firmware called wowlan firmware. It can monitor special events
and generate wake up signals if necessary. To swap the firmware,
driver needs to re-configure the HCI link, to make sure that
the link is idle, reset the link for sending H2C commands to
wowlan firmware, and then stop the link.
After wake up signals generated and sent to host, driver needs
to swap back to normal firmware to get to the original state
before suspend. So it should setup the link again and send
H2C commands to firmware to restore the information.
v1 -> v2
* remove duplicated rtw_pci_dma_reset()
v2 -> v3
* include new patch "rtw88: add interface config for 8822c"
v3 -> v4
* mark some functions static
* remove some unnecessary double-underscores
Chin-Yen Lee (6):
rtw88: pci: reset ring index when release skbs in tx ring
rtw88: pci: reset dma when reset pci trx ring
rtw88: load wowlan firmware if wowlan is supported
rtw88: support wowlan feature for 8822c
rtw88: Add wowlan pattern match support
rtw88: Add wowlan net-detect support
Yan-Hsuan Chuang (1):
rtw88: add interface config for 8822c
drivers/net/wireless/realtek/rtw88/Makefile | 1 +
drivers/net/wireless/realtek/rtw88/debug.h | 1 +
drivers/net/wireless/realtek/rtw88/fw.c | 384 +++++++-
drivers/net/wireless/realtek/rtw88/fw.h | 186 ++++
drivers/net/wireless/realtek/rtw88/hci.h | 6 +
drivers/net/wireless/realtek/rtw88/mac.c | 2 +
drivers/net/wireless/realtek/rtw88/mac80211.c | 44 +
drivers/net/wireless/realtek/rtw88/main.c | 76 +-
drivers/net/wireless/realtek/rtw88/main.h | 67 ++
drivers/net/wireless/realtek/rtw88/pci.c | 55 +-
drivers/net/wireless/realtek/rtw88/reg.h | 29 +
drivers/net/wireless/realtek/rtw88/rtw8822c.c | 18 +
drivers/net/wireless/realtek/rtw88/util.h | 2 +
drivers/net/wireless/realtek/rtw88/wow.c | 890 ++++++++++++++++++
drivers/net/wireless/realtek/rtw88/wow.h | 58 ++
15 files changed, 1786 insertions(+), 33 deletions(-)
create mode 100644 drivers/net/wireless/realtek/rtw88/wow.c
create mode 100644 drivers/net/wireless/realtek/rtw88/wow.h
--
2.17.1
next reply other threads:[~2019-12-19 8:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-19 8:58 yhchuang [this message]
2019-12-19 8:58 ` [PATCH v4 1/7] rtw88: pci: reset ring index when release skbs in tx ring yhchuang
2020-01-26 15:37 ` Kalle Valo
2019-12-19 8:58 ` [PATCH v4 2/7] rtw88: pci: reset dma when reset pci trx ring yhchuang
2019-12-19 8:58 ` [PATCH v4 3/7] rtw88: add interface config for 8822c yhchuang
2019-12-19 8:58 ` [PATCH v4 4/7] rtw88: load wowlan firmware if wowlan is supported yhchuang
2019-12-19 8:58 ` [PATCH v4 5/7] rtw88: support wowlan feature for 8822c yhchuang
2019-12-19 8:58 ` [PATCH v4 6/7] rtw88: Add wowlan pattern match support yhchuang
2020-02-22 0:52 ` Brian Norris
2020-02-24 21:21 ` Johannes Berg
2020-02-24 21:33 ` Brian Norris
2020-02-24 21:35 ` Johannes Berg
2019-12-19 8:58 ` [PATCH v4 7/7] rtw88: Add wowlan net-detect support yhchuang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191219085816.20709-1-yhchuang@realtek.com \
--to=yhchuang@realtek.com \
--cc=briannorris@chromium.org \
--cc=chiu@endlessm.com \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).