dfu: add 'SKIP' entity
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 22 Dec 2020 10:32:21 +0000 (11:32 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commitb5f3405b9d8666bd0ab627c298cea1c927da081a
treea9601b12649f1d52eead24385a2688a7c492291c
parentf21358ad6cb5d39fff432fa0af0c4fd24288b2b7
dfu: add 'SKIP' entity

Define a new 'SKIP' type for the DFU entities. The flashed data for that
entity is simply ignored without returning any error values.

This allows to have one flashing procedure and images for the different
board types or variants, where each board uses only the images relevant
to it and skips the rest. This is especially usefull for the THOR
protocol, which usually transfers more than one file in a single session.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
[mszyprow: rephrased commit message and docs for easier reading, changed
   subject to "dfu: add 'SKIP' entity"]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
doc/README.dfu
drivers/dfu/dfu.c
drivers/dfu/dfu_mmc.c
include/dfu.h