diff --git a/drivers/gpu/nvgpu/os/linux/pci_power.c b/drivers/gpu/nvgpu/os/linux/pci_power.c index cd352cc1c..a8ebc55d0 100644 --- a/drivers/gpu/nvgpu/os/linux/pci_power.c +++ b/drivers/gpu/nvgpu/os/linux/pci_power.c @@ -258,7 +258,7 @@ static int nvgpu_disable_pci_rail(struct nvgpu_pci_gpios *pgpios) gpio_set_value(pci_vbat_pwr_on_gpio, 0); - mdelay(PCI_VBAR_PWR_ON_DELAY_MS); + mdelay(PCI_VBAR_PWR_OFF_DELAY_MS); return 0; } @@ -285,7 +285,7 @@ static int nvgpu_deassert_pci_pwr_on(struct nvgpu_pci_gpios *pgpios) gpio_set_value(pci_pwr_on, 0); - mdelay(PCI_PWR_ON_DELAY_MS); + mdelay(PCI_PWR_OFF_DELAY_MS); return 0; } diff --git a/drivers/gpu/nvgpu/os/linux/platform_gk20a.h b/drivers/gpu/nvgpu/os/linux/platform_gk20a.h index 3ba1bc847..c6ec007ec 100644 --- a/drivers/gpu/nvgpu/os/linux/platform_gk20a.h +++ b/drivers/gpu/nvgpu/os/linux/platform_gk20a.h @@ -51,6 +51,8 @@ struct nvgpu_pci_gpios { /* delays in milliseconds (ms) */ #define PCI_VBAR_PWR_ON_DELAY_MS 15 #define PCI_PWR_ON_DELAY_MS 150 +#define PCI_VBAR_PWR_OFF_DELAY_MS 2 +#define PCI_PWR_OFF_DELAY_MS 2 struct gk20a_platform { /* Populated by the gk20a driver before probing the platform. */