Only perform bind/unbind testing on VSPs which expose a media-device. Unbinding a VSP which is connected to a DU causes the display pipeline to fail, and is not currently supported. Signed-off-by: Kieran Bingham <kieran.bingham@xxxxxxxxxxxxxxxx> --- tests/vsp-unit-test-0026.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/vsp-unit-test-0026.sh b/tests/vsp-unit-test-0026.sh index 88038f3fdebf..4185bb23d05b 100755 --- a/tests/vsp-unit-test-0026.sh +++ b/tests/vsp-unit-test-0026.sh @@ -10,7 +10,14 @@ features="rpf.0 wpf.0" vsp1_driver=/sys/bus/platform/drivers/vsp1 -vsps=$(cd /sys/bus/platform/devices/; ls | grep vsp) + +# List all VSPs with a media device. +# This exludes VSP devices used by the DU. +list_vsps() { + for mdev in /dev/media* ; do + echo -n $(vsp1_device $mdev) | grep vsp + done +} unbind_vsp() { echo $1 > $vsp1_driver/unbind @@ -48,7 +55,7 @@ test_main() { fi # Unbind and rebind VSPs individually - for v in $vsps; do + for v in $(list_vsps); do unbind_vsp $v bind_vsp $v done -- 2.25.1