Skip to content

Commit 01088cd

Browse files
jerome-pouillergregkh
authored andcommitted
staging: wfx: reduce timeout for chip initial start up
The device take a few hundreds of milliseconds to start. However, the current code wait up to 10 second for the chip. We can safely reduce this value to 1 second. Thanks to that change, it is no more necessary to use an interruptible timeout. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200505123757.39506-3-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c7d061a commit 01088cd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/staging/wfx/main.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ int wfx_probe(struct wfx_dev *wdev)
370370
if (err)
371371
goto err1;
372372

373-
err = wait_for_completion_interruptible_timeout(&wdev->firmware_ready,
374-
10 * HZ);
373+
err = wait_for_completion_timeout(&wdev->firmware_ready, 1 * HZ);
375374
if (err <= 0) {
376375
if (err == 0) {
377376
dev_err(wdev->dev, "timeout while waiting for startup indication. IRQ configuration error?\n");

0 commit comments

Comments
 (0)