]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: firmware: Add firmware upload selftests
authorRuss Weight <russell.h.weight@intel.com>
Tue, 26 Apr 2022 16:35:32 +0000 (09:35 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2022 14:49:36 +0000 (16:49 +0200)
commite3ab0d0999ef82be37954a1e761cc9f2b18e5b08
treef2e08d47d3e8b48e7d0024b7d86831bb255ff1d1
parentf0269c1299c99014dbe75100e8de34cdbceffb5f
selftests: firmware: Add firmware upload selftests

Add selftests to verify the firmware upload mechanism. These test
include simple firmware uploads as well as upload cancellation and
error injection. The test creates three firmware devices and verifies
that they all work correctly and independently.

Tested-by: Matthew Gerlach <matthew.gerlach@linux.intel.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Tianfei zhang <tianfei.zhang@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Link: https://lore.kernel.org/r/20220426163532.114961-1-russell.h.weight@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/firmware/Makefile
tools/testing/selftests/firmware/config
tools/testing/selftests/firmware/fw_lib.sh
tools/testing/selftests/firmware/fw_run_tests.sh
tools/testing/selftests/firmware/fw_upload.sh [new file with mode: 0755]