dm: test: Add test for device removal
authorStefan Roese <sr@denx.de>
Mon, 27 Mar 2017 09:02:43 +0000 (11:02 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Apr 2017 02:15:10 +0000 (20:15 -0600)
commit24f927c527b01a5bce4c23428a008adf6ec052b4
treea2b204f61cd6ea09b7b04e5b5782c17293594ebd
parent1b8220aa2ab09d936c427dae84b40edf51c8b194
dm: test: Add test for device removal

Add a test for the correct device removal. Currently two different ways
for device removal are supported:

- Normal device removal via the device_remove() API
- Removal via selective device driver flags (DM_FLAG_ACTIVE_DMA)

This new test "remove_active_dma" adds tests cases for those both ways
of removal. This is done by adding a new test driver, which has this
flag set.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Simon Glass <sjg@chromium.org>
test/dm/core.c
test/dm/test-driver.c