summaryrefslogtreecommitdiff
path: root/drivers/edgetpu/edgetpu-kci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/edgetpu/edgetpu-kci.c')
-rw-r--r--drivers/edgetpu/edgetpu-kci.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/edgetpu/edgetpu-kci.c b/drivers/edgetpu/edgetpu-kci.c
index 0f9ca8d..e56eb9a 100644
--- a/drivers/edgetpu/edgetpu-kci.c
+++ b/drivers/edgetpu/edgetpu-kci.c
@@ -29,9 +29,12 @@
#define QUEUE_SIZE MAX_QUEUE_SIZE
/* Timeout for KCI responses from the firmware (milliseconds) */
-#ifdef CONFIG_EDGETPU_FPGA
+#if IS_ENABLED(CONFIG_EDGETPU_FPGA)
/* Set extra ludicrously high to 60 seconds for (slow) Palladium emulation. */
#define KCI_TIMEOUT (60000)
+#elif IS_ENABLED(CONFIG_EDGETPU_TEST)
+/* fake-firmware could respond in a short time */
+#define KCI_TIMEOUT (200)
#else
/* 5 secs. */
#define KCI_TIMEOUT (5000)