From: kettenis Date: Thu, 10 Nov 2022 12:14:05 +0000 (+0000) Subject: We need to turn a few more things on in the resume path. This makes it X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=19ad97d5bfcde8c1fda070c4830e3d48fb2c81b9;p=openbsd We need to turn a few more things on in the resume path. This makes it possible to ifconfig down the interface suspend/resume and ifconfig up the interface again afterwards in most cases. Suspend/resume with the interface up is still busted. ok patrick@, stsp@ --- diff --git a/sys/dev/pci/if_bwfm_pci.c b/sys/dev/pci/if_bwfm_pci.c index a2ff1de73d6..d3fa4143b5c 100644 --- a/sys/dev/pci/if_bwfm_pci.c +++ b/sys/dev/pci/if_bwfm_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_pci.c,v 1.73 2022/11/08 18:28:10 kettenis Exp $ */ +/* $OpenBSD: if_bwfm_pci.c,v 1.74 2022/11/10 12:14:05 kettenis Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2017 Patrick Wildt @@ -979,6 +979,10 @@ bwfm_pci_activate(struct device *self, int act) BWFM_PCI_H2D_HOST_D0_INFORM) != 0) { bwfm_cleanup(bwfm); bwfm_pci_cleanup(sc); + } else { + bwfm_pci_select_core(sc, BWFM_AGENT_CORE_PCIE2); + bwfm_pci_intr_enable(sc); + bwfm_pci_hostready(sc); } } error = bwfm_activate(bwfm, act);