dmaengine/dmatest: Pass timeout via module params
authorViresh Kumar <viresh.kumar@st.com>
Tue, 22 Mar 2011 11:57:25 +0000 (17:27 +0530)
committerDan Williams <dan.j.williams@intel.com>
Tue, 22 Mar 2011 18:12:29 +0000 (11:12 -0700)
commitd42efe6bfb4eed8314c8ce3547f21954a4140399
tree180057c663bf6bbfdbdcc7561254d9b86db5c0a1
parent5b9a4f98b2e29fb92a4a54ef12b2e3940f941ed9
dmaengine/dmatest: Pass timeout via module params

When we try to test all channels present on our controller together, some
channels of lower priority may be very slow as compared to others. If number of
transfers is unlimited, some channels may timeout and will not finish within 3
seconds. Thus, while doing such regress testing we may need to have higher value
of timeouts. This patch adds support for passing timeout value via module
parameters. Default value is 3 msec, a negative value means max timeout
possible.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmatest.c