From 80c394a86ad7a36444515ec3eb67184864f751a0 Mon Sep 17 00:00:00 2001 From: Binbin Wu Date: Wed, 16 Jan 2019 10:32:43 +0800 Subject: [PATCH] dm: passthru: increase the delay after wifi reset Increase the delay to 200ms after wifi reset for link training done. Tracked-On: #2328 Signed-off-by: Binbin Wu --- devicemodel/hw/pci/passthrough.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicemodel/hw/pci/passthrough.c b/devicemodel/hw/pci/passthrough.c index 3ed5b458d..a94271be8 100644 --- a/devicemodel/hw/pci/passthrough.c +++ b/devicemodel/hw/pci/passthrough.c @@ -762,7 +762,7 @@ passthru_gpio_reset(int gpio_pin) return -1; } - usleep(100); + usleep(1000); if(write(fd, "1", 1) < 0) { warnx("failed to set pin %d", gpio_pin); @@ -985,7 +985,7 @@ passthru_deinit(struct vmctx *ctx, struct pci_vdev *dev, char *opts) warnx("Do gpio reset for device %x/%x/%x", bus, slot, func); if (passthru_gpio_reset(ptdev->gpio_reset_pin)) warnx("Failed to do gpio reset for device %x/%x/%x ", bus, slot, func); - usleep(10000); + usleep(200000); } free(ptdev);