]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmatest: return actual state in 'run' file
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 4 Mar 2013 09:09:31 +0000 (11:09 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 1 Apr 2013 16:42:11 +0000 (22:12 +0530)
commit851c8e4f3c0283758c5f0946276a5c9cc4653d86
treed4254ce8025ac2b5df27a18a27ee987533c7b05a
parent9208c6223bd1cf0c98ca1b91ec87d385711cf264
dmatest: return actual state in 'run' file

The following command should return actual state of the test.
% cat /sys/kernel/debug/dmatest/run

To wait for test done the user may perform a busy loop that checks the state.
% while [ $(cat /sys/kernel/debug/dmatest/run) = "Y" ]
> do
>  echo -n "."
>  sleep 1
> done
> echo

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Documentation/dmatest.txt
drivers/dma/dmatest.c