summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-02-28 01:27:24 +0000
committerimp <imp@FreeBSD.org>2005-02-28 01:27:24 +0000
commit7642aaf23928cc3da5627406ed47894e8ffb7372 (patch)
treecb9c6e7d15ff512cd8adc62c7d69944031bc8052 /sbin
parent5c73f481a5420fa02179be700201327c5dcb8406 (diff)
downloadFreeBSD-src-7642aaf23928cc3da5627406ed47894e8ffb7372.zip
FreeBSD-src-7642aaf23928cc3da5627406ed47894e8ffb7372.tar.gz
There were two calls to cardbus_do_cis when cardbus_do_cis changed,
yet I only changed one of them. So when we loaded drivers, we'd fail to allocate resources correct. This pointed out that we were doing the wrong thing when we failed to attach a child. We released all the resources and almost deleted the child. Instead, we should keep the resources allocated so when/if a driver is loaded, we can go w/o having to allocate them. We use pci_cfg_save/restore to restore the BARs with these resources. This seems to fix the problems that we were seeing that I thought might have magically gone away in the last revision of cardbus.c (but really didn't). Noticed by: avatar (nicely done!)
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud