This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: test-media: update vimc tests
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Tue Oct 1 18:26:07 2019 +0200

The vimc driver is now a monolithic driver, so there are no more
vimc-sensor etc. drivers. The vimc tests are updated accordingly.

This vimc change also fixes some lifetime issues, so the 'unbind
while streaming' test is enabled again.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 contrib/test/test-media | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=3f806630e2ecbcebe31872b865c5c4b42f111a99
diff --git a/contrib/test/test-media b/contrib/test/test-media
index 144dcc9df4f1..981d361cdebf 100755
--- a/contrib/test/test-media
+++ b/contrib/test/test-media
@@ -397,30 +397,20 @@ if [ $vimc -eq 1 ]; then
        echo
        echo second unbind vimc
        echo
+       # Max sleep time is 6 + 8 = 14s
        for i in `v4l2-ctl -z platform:vimc --list-devices`; do
                let "t = 6 + $RANDOM / 4096"
                echo $i: sleep ${t}s
                sleep $t <$i &
        done
-       # There are media controller lifetime issues that will cause a crash if 
this
-       # is enabled. Fixing that is quite a major undertaking so for now 
disable this
-       # test.
-       #v4l2-ctl -z platform:vimc -d "Raw Capture 0" --stream-mmap --sleep 5 &
+       v4l2-ctl -z platform:vimc -d "Raw Capture 0" --stream-mmap --sleep 5 &
        sleep 1
-       for i in /sys/bus/platform/drivers/vimc-*; do
-               for j in $i/vimc-*; do
-                       echo unbind ${j##*/} of $i
-                       echo -n ${j##*/} >$i/unbind
-                done
-       done
-       sleep 5
-       echo
        echo -n vimc.0 >/sys/bus/platform/drivers/vimc/unbind
-       sleep $reunbind_time
+       sleep 14
        echo
        echo rmmod vimc
        echo
-       rmmod vimc vimc_scaler vimc_debayer vimc_capture vimc_sensor 
vimc_streamer vimc_common
+       rmmod vimc
        sleep $rmmod_time
        if [ $kmemleak -eq 1 ]; then
                echo

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to