mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
When writing to PCI configuration registers, don't immediately
read the same register back. It can cause hangs or machine checks in certain cases. One particular case is with bge(4) when a reset is initiated for the controller. MFC after: 1 month
This commit is contained in:
parent
304168a8af
commit
37402373e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168200
@ -303,15 +303,12 @@ uninorth_write_config(device_t dev, u_int bus, u_int slot, u_int func,
|
||||
switch (width) {
|
||||
case 1:
|
||||
out8rb(caoff, val);
|
||||
(void)in8rb(caoff);
|
||||
break;
|
||||
case 2:
|
||||
out16rb(caoff, val);
|
||||
(void)in16rb(caoff);
|
||||
break;
|
||||
case 4:
|
||||
out32rb(caoff, val);
|
||||
(void)in32rb(caoff);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user