summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2020-12-15 03:05:31 +0000
committerdlg <dlg@openbsd.org>2020-12-15 03:05:31 +0000
commit834686d2a1a6fca7cb31269c32279e842495c6b3 (patch)
tree08d559fd8fadfd821f923251aad1b743b6eecfc6
parentthe name aux is a reserved filename on windows (diff)
downloadwireguard-openbsd-834686d2a1a6fca7cb31269c32279e842495c6b3.tar.xz
wireguard-openbsd-834686d2a1a6fca7cb31269c32279e842495c6b3.zip
neuter the shutdown hooks for now, they seem to crash the fw on some boards.
grumble grumble
-rw-r--r--sys/dev/pci/mfii.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c
index 3d3fa6bf8f2..bd403813001 100644
--- a/sys/dev/pci/mfii.c
+++ b/sys/dev/pci/mfii.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfii.c,v 1.82 2020/09/22 19:32:53 krw Exp $ */
+/* $OpenBSD: mfii.c,v 1.83 2020/12/15 03:05:31 dlg Exp $ */
/*
* Copyright (c) 2012 David Gwynne <dlg@openbsd.org>
@@ -974,6 +974,7 @@ mfii_detach(struct device *self, int flags)
static void
mfii_flush_cache(struct mfii_softc *sc, struct mfii_ccb *ccb)
{
+#if 0
union mfi_mbox mbox = {
.b[0] = MR_FLUSH_CTRL_CACHE | MR_FLUSH_DISK_CACHE,
};
@@ -986,11 +987,13 @@ mfii_flush_cache(struct mfii_softc *sc, struct mfii_ccb *ccb)
printf("%s: unable to flush cache\n", DEVNAME(sc));
return;
}
+#endif
}
static void
mfii_shutdown(struct mfii_softc *sc, struct mfii_ccb *ccb)
{
+#if 0
int rv;
mfii_scrub_ccb(ccb);
@@ -1000,6 +1003,7 @@ mfii_shutdown(struct mfii_softc *sc, struct mfii_ccb *ccb)
printf("%s: unable to shutdown controller\n", DEVNAME(sc));
return;
}
+#endif
}
static void