Staging: iio: Move evgen interrupt generation to irq_work
authorCristina Opriceana <cristina.opriceana@gmail.com>
Fri, 11 Sep 2015 13:59:30 +0000 (16:59 +0300)
committerJonathan Cameron <jic23@kernel.org>
Wed, 23 Sep 2015 19:23:26 +0000 (20:23 +0100)
commitfd2bb310ca3d3621a0f201e018e1292dca95df6e
tree891c87fa0946432783b628da4694acaede193839
parentcd8d97774f23c601d0ed66b5035bcc77dd665b10
Staging: iio: Move evgen interrupt generation to irq_work

Enhance interrupt generation in the dummy driver and expand its usage
by introducing the irq_work infrastructure to trigger an interrupt.

This way, the irq_work_queue() wrapper permits calling both of the top
half and threaded part from a hard irq context, unlike handle_nested_irq(),
which only calls the threaded part.

As an outcome, the driver succeeds in simulating real hardware
interrupts, while keeping the normal interrupt flow.

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/iio_dummy_evgen.c
drivers/staging/iio/iio_simple_dummy.h
drivers/staging/iio/iio_simple_dummy_events.c