Partially revert 222753: If a CardBus card stores its CIS in a BAR, delete

the BAR after parsing the CIS.  This forces the resource range to be
reallocated if the BAR is reused by the device.

Submitted by:	deischen
Reviewed by:	imp
Approved by:	re (kib)
This commit is contained in:
John Baldwin 2011-09-12 15:21:52 +00:00
parent 91907fbbda
commit 06c9ee053d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225515

View File

@ -441,6 +441,7 @@ cardbus_read_tuple_finish(device_t cbdev, device_t child, int rid,
{
if (res != CIS_CONFIG_SPACE) {
bus_release_resource(child, SYS_RES_MEMORY, rid, res);
bus_delete_resource(child, SYS_RES_MEMORY, rid);
}
}