Skip to content

Commit 35c5fc0

Browse files
andy-shevvinodkoul
authored andcommitted
dmaengine: dmatest: Allow negative timeout value to specify infinite wait
The dmatest module parameter 'timeout' is documented as accepting a -1 to mean "infinite timeout". However, an infinite timeout is not advised, nor possible since the module parameter is an unsigned int, which won't accept a negative value. Change the parameter type to be signed integer. Cc: Gary Hook <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 85f78ce commit 35c5fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/dmatest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ MODULE_PARM_DESC(pq_sources,
6060
"Number of p+q source buffers (default: 3)");
6161

6262
static int timeout = 3000;
63-
module_param(timeout, uint, S_IRUGO | S_IWUSR);
63+
module_param(timeout, int, S_IRUGO | S_IWUSR);
6464
MODULE_PARM_DESC(timeout, "Transfer Timeout in msec (default: 3000), "
6565
"Pass -1 for infinite timeout");
6666

0 commit comments

Comments
 (0)