mbox series

[00/15] staging: wfx: fix Out-Of-Band IRQ

Message ID 20200505123757.39506-1-Jerome.Pouiller@silabs.com
Headers show
Series staging: wfx: fix Out-Of-Band IRQ | expand

Message

Jérôme Pouiller May 5, 2020, 12:37 p.m. UTC
From: Jérôme Pouiller <jerome.pouiller@silabs.com>

The WF200 can be used on SPI and SDIO. When using SDIO bus, the driver
normally use the in band IRQ provided by the SDIO bus. However, WF200
also provides support for a dedicated IRQ line. This feature is used
when in-band IRQ does not work or to allows some kind of Wake-On-Wlan.
There already was an implementation of Out-Of-Band (OOB) IRQ in the
driver. However, it did not work correctly. This series mainly aims to
fix that. It add, it allows to use edge or level IRQ and unify the IRQ
handling in SPI and SDIO.

The 6 last patches are cosmetic.

Jérôme Pouiller (15):
  staging: wfx: add support for hardware revision 2 and further
  staging: wfx: reduce timeout for chip initial start up
  staging: wfx: fix double free
  staging: wfx: drop useless check
  staging: wfx: repair external IRQ for SDIO
  staging: wfx: use threaded IRQ with SPI
  staging: wfx: introduce a way to poll IRQ
  staging: wfx: poll IRQ during init
  staging: wfx: fix missing 'static' statement
  staging: wfx: fix missing 'static' keyword
  staging: wfx: prefer ARRAY_SIZE instead of a magic number
  staging: wfx: remove useless header inclusions
  staging: wfx: fix alignements of function prototypes
  staging: wfx: remove spaces after cast operator
  staging: wfx: use kernel types instead of c99 ones

 drivers/staging/wfx/bh.c         | 29 +++++++++++++++
 drivers/staging/wfx/bh.h         |  1 +
 drivers/staging/wfx/bus.h        |  2 +
 drivers/staging/wfx/bus_sdio.c   | 64 ++++++++++++++++----------------
 drivers/staging/wfx/bus_spi.c    | 50 ++++++++++++-------------
 drivers/staging/wfx/data_rx.h    |  3 +-
 drivers/staging/wfx/data_tx.c    | 11 +++---
 drivers/staging/wfx/fwio.c       |  6 +--
 drivers/staging/wfx/hif_rx.c     |  2 +-
 drivers/staging/wfx/hif_tx.c     | 30 ++++++++-------
 drivers/staging/wfx/hif_tx.h     |  7 ++--
 drivers/staging/wfx/hif_tx_mib.c |  2 +-
 drivers/staging/wfx/hif_tx_mib.h |  4 +-
 drivers/staging/wfx/hwio.c       | 16 ++++----
 drivers/staging/wfx/key.c        |  2 +-
 drivers/staging/wfx/main.c       | 43 +++++++++++++--------
 drivers/staging/wfx/main.h       |  4 +-
 drivers/staging/wfx/queue.h      |  2 -
 drivers/staging/wfx/sta.c        | 40 +++++++++-----------
 drivers/staging/wfx/sta.h        |  2 -
 drivers/staging/wfx/wfx.h        |  4 +-
 21 files changed, 175 insertions(+), 149 deletions(-)