mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
lx_emul: init pci_dev::error_state
pci_channel_offline() checks if this member is set to pci_channel_io_normal (which is 1). The former value of 0 is invalid. This change fixes pc_nic_drv link down-up in cases that require an e1000 reset.
This commit is contained in:
parent
e691af4e97
commit
c54e8ec3e2
@ -119,6 +119,7 @@ static void pci_add_single_device_callback(void * data,
|
||||
dev->revision = revision;
|
||||
dev->class = class_code;
|
||||
dev->current_state = PCI_UNKNOWN;
|
||||
dev->error_state = pci_channel_io_normal;
|
||||
|
||||
lx_emul_pci_for_each_resource(name, dev,
|
||||
pci_add_resource_to_device_callback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user