mbox series

[0/2] spi: add wakeup handling to SPI core

Message ID 20191112055412.192675-1-dmitry.torokhov@gmail.com (mailing list archive)
Headers show
Series spi: add wakeup handling to SPI core | expand

Message

Dmitry Torokhov Nov. 12, 2019, 5:54 a.m. UTC
These patches add wakeup handling for SPI devices to SPI core, mirroring
I2C subsystem. Users can mark devices as "wakeup-source" in device tree
(or using static device properties) and SPI core will mark the primary
interrupt line as wakeirq and mark the device as wakeup enabled.

There is also an option to define a dedicated wake irq.


Dmitry Torokhov (2):
  spi: dt-bindings: spi-controller: add wakeup-source and interrupts
  spi: wire up wakeup-source/wakeirq handling

 .../bindings/spi/spi-controller.yaml          | 23 ++++++++++++++++
 drivers/spi/spi.c                             | 27 ++++++++++++++++++-
 2 files changed, 49 insertions(+), 1 deletion(-)