From: kettenis Date: Mon, 5 Feb 2024 10:45:47 +0000 (+0000) Subject: Add a 1ms delay before starting the MHI channels. This is a hack; we're X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=43134bb22b62faacd73bc97a29a936e7291f28b1;p=openbsd Add a 1ms delay before starting the MHI channels. This is a hack; we're probably not waiting iproperly for some sort of firmware state transition. But this gets us going on the x13s. ok stsp@, phessler@ --- diff --git a/sys/dev/pci/if_qwx_pci.c b/sys/dev/pci/if_qwx_pci.c index 6b7310d21ad..d307b553cec 100644 --- a/sys/dev/pci/if_qwx_pci.c +++ b/sys/dev/pci/if_qwx_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_qwx_pci.c,v 1.5 2024/02/03 20:07:19 kettenis Exp $ */ +/* $OpenBSD: if_qwx_pci.c,v 1.6 2024/02/05 10:45:47 kettenis Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -3180,6 +3180,9 @@ qwx_mhi_ready_state_transition(struct qwx_pci_softc *psc) void qwx_mhi_ee_amss_state_transition(struct qwx_pci_softc *psc) { + /* XXX without this delay starting the channels may fail */ + delay(1000); + qwx_mhi_start_channels(psc); }