mbox series

[v2,0/5] wfx: add support for WoWLAN on Silabs WF200

Message ID 20250302144731.117409-1-jerome.pouiller@silabs.com
Headers show
Series wfx: add support for WoWLAN on Silabs WF200 | expand

Message

Jérôme Pouiller March 2, 2025, 2:47 p.m. UTC
This is the initial support for Wake-on-WLAN of Silicon WF200 chipset. This
version focus on the power management control. For now, the filtering
capabilities of the chip are not exposed. So any multicast frame (= any ARP
request) will wake up the host.

I have this series of patches in my git tree for a while. I hesitated to
send it because the code is based on a proof of concept and I don't have
access to the hardware anymore.

Therefore, this feature is experimental. However, the only way to reach
this code is to run "iw phy phy0 wowlan enable" or explicitly enable it in
/sys. So, I believe it makes sense to merged it in the stable tree. Thus, I
hope some users will be able to report their success (or their failure).

v2:
  - Fix compilation issue reported by "kernel test robot"[1]. Member
    'wowlan' only exist if CONFIG_PM.

[1] https://lore.kernel.org/oe-kbuild-all/202503021057.5qCOqraa-lkp@intel.com/

Jérôme Pouiller (5):
  wifi: wfx: align declarations between bus_spi.c and bus_sdio.c
  wifi: wfx: declare support for WoWLAN
  wifi: wfx: allow SPI device to wake up the host
  wifi: wfx: allow SDIO device to wake up the host
  wifi: wfx: allow to enable WoWLAN using NL80211

 drivers/net/wireless/silabs/wfx/bus.h      |  1 +
 drivers/net/wireless/silabs/wfx/bus_sdio.c | 52 ++++++++++++++++++++++
 drivers/net/wireless/silabs/wfx/bus_spi.c  | 45 +++++++++++++++++--
 drivers/net/wireless/silabs/wfx/main.c     | 12 +++++
 drivers/net/wireless/silabs/wfx/sta.c      | 25 +++++++++++
 drivers/net/wireless/silabs/wfx/sta.h      |  3 ++
 6 files changed, 134 insertions(+), 4 deletions(-)

Comments

Johannes Berg March 3, 2025, 8:20 a.m. UTC | #1
On Sun, 2025-03-02 at 15:47 +0100, Jérôme Pouiller wrote:
> This is the initial support for Wake-on-WLAN of Silicon WF200 chipset. This
> version focus on the power management control. For now, the filtering
> capabilities of the chip are not exposed. So any multicast frame (= any ARP
> request) will wake up the host.
> 
> I have this series of patches in my git tree for a while. I hesitated to
> send it because the code is based on a proof of concept and I don't have
> access to the hardware anymore.
> 
> Therefore, this feature is experimental. However, the only way to reach
> this code is to run "iw phy phy0 wowlan enable" or explicitly enable it in
> /sys. So, I believe it makes sense to merged it in the stable tree. Thus, I
> hope some users will be able to report their success (or their failure).
> 
> v2:
>   - Fix compilation issue reported by "kernel test robot"[1]. Member
>     'wowlan' only exist if CONFIG_PM.

You should probably check patchwork too - now that we're running some
checks, a missing 'static' jumped out:

https://patchwork.kernel.org/project/linux-wireless/list/?series=939353

johannes