stm class: dummy_stm: Add link callback for fault injection
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Mon, 15 Feb 2016 17:12:10 +0000 (19:12 +0200)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:28:49 +0000 (15:28 -0600)
commita2fc3f7248b75b8cdbf54590e41874aebd19303d
tree08de03b65e0874f951c16af3ead7fbc886198aa3
parentd3b187f9c7bc7f9f73e4064041890fd71de9f5b3
stm class: dummy_stm: Add link callback for fault injection

STM device's link callback has the power to abort master/channel
assignment by returning a negative error code. Use this in dummy
stm device to optionally abort assigning certain channel IDs.
This is useful as fault injection into the stm class core, for
testing purposes.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit adcde635f5d6b77e9f11087af09c6f62da2bf108)
drivers/hwtracing/stm/dummy_stm.c