[U-Boot] [PATCH 4/4 v4] dm: test: Add test for device removal

Simon Glass sjg at chromium.org
Wed Apr 5 03:28:00 UTC 2017


On 27 March 2017 at 03:02, Stefan Roese <sr at denx.de> wrote:
> 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 at denx.de>
> Cc: Simon Glass <sjg at chromium.org>
> ---
> v4:
> - Added explicit test that a device without the active DMA flags is not
>   removed upon the active DMA remove call. For this, a new test driver
>   is added (test_act_dma_drv).
>
> v2:
> - New patch in patchset
>
>  test/dm/core.c        | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++
>  test/dm/test-driver.c | 11 +++++++++
>  2 files changed, 77 insertions(+)
>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list