From ee3c87014fda26b81b8f347de9bc36c4d2b34b1b Mon Sep 17 00:00:00 2001 From: Patrick Wildt Date: Sat, 23 May 2020 22:16:40 +0000 Subject: Increase chances of getting a successful PCIe link on the i.MX8MM. Hold the reset GPIO for 100ms instead of 20ms, and also directly continue setting up the link instead of waiting for another 20ms. This brings us in line with what Linux is doing and removes the 10% risk of em(4) not showing up on my HummingBoard Pulse. ok kettenis@ --- sys/dev/fdt/dwpcie.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/fdt/dwpcie.c b/sys/dev/fdt/dwpcie.c index 5a4b1f29e2f..cb91df25940 100644 --- a/sys/dev/fdt/dwpcie.c +++ b/sys/dev/fdt/dwpcie.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwpcie.c,v 1.20 2020/04/27 12:17:29 patrick Exp $ */ +/* $OpenBSD: dwpcie.c,v 1.21 2020/05/23 22:16:39 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -768,9 +768,8 @@ dwpcie_imx8mq_init(struct dwpcie_softc *sc) if (reset_gpiolen > 0) { gpio_controller_set_pin(reset_gpio, 1); - delay(20000); + delay(100000); gpio_controller_set_pin(reset_gpio, 0); - delay(20000); } reset_deassert(sc->sc_node, "pciephy"); -- cgit v1.2.3