Accept Rockchip signed images in the update handler. This is necessary to be able to use the update handler to flash a signed image to an SD card or eMMC.
Signed-off-by: Michael Tretter <[email protected]> --- arch/arm/mach-rockchip/bbu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-rockchip/bbu.c b/arch/arm/mach-rockchip/bbu.c index b4d2a5280fab9f8bf6357948f2188afcb8cc89a5..2067af7b1d231e00ec436d50686cb252e9c96dbd 100644 --- a/arch/arm/mach-rockchip/bbu.c +++ b/arch/arm/mach-rockchip/bbu.c @@ -46,10 +46,10 @@ static int rockchip_bbu_mmc_handler(struct bbu_handler *handler, struct cdev *cdev; filetype = file_detect_type(data->image, data->len); - if (filetype != filetype_rockchip_rkns_image) { - if (!bbu_force(data, "incorrect image type. Expected: %s, got %s", - file_type_to_string(filetype_rockchip_rkns_image), - file_type_to_string(filetype))) + if (filetype != filetype_rockchip_rkns_image && + filetype != filetype_rockchip_rkss_image) { + if (!bbu_force(data, "incorrect image type. Got %s", + file_type_to_string(filetype))) return -EINVAL; } -- 2.39.5
