]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: loopback_test: Use timeout argument
authorAxel Haslam <ahaslam@baylibre.com>
Tue, 8 Mar 2016 09:03:40 +0000 (10:03 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 8 Mar 2016 14:22:53 +0000 (06:22 -0800)
commit4b82dd7be3d3ea62c634bda6bd01666912bc7e79
tree450dd8290b8ce996504dedb257e064155b8deb60
parent7fe9301422444a1fca71bb8c4c0673fb44eb0f2d
greybus: loopback_test: Use timeout argument

Patch "c3b0a32 Loopback_test: use poll instead of inotify"
added a optional argument for the user to specify a timeout value,
but did not use this parameter in the actual poll function. The
default of 30 seconds is always used.

Fix this by actually using the the poll_timeout parameter so the user
can run long tests.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Reviewed-by: Patrick Titiano <ptitiano@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/tools/loopback_test.c