Kernel: Ask for all relevant IRQs in rtl8139 driver

This commit is contained in:
Conrad Pankoff 2019-08-28 10:54:47 +10:00 committed by Andreas Kling
parent 5f86a979ea
commit bed069bd14
Notes: sideshowbarker 2024-07-19 12:28:17 +09:00

View File

@ -263,7 +263,7 @@ void RTL8139NetworkAdapter::reset()
out8(REG_COMMAND, COMMAND_RX_ENABLE | COMMAND_TX_ENABLE);
// choose irqs, then clear any pending
out16(REG_IMR, INT_TXOK | INT_TXERR | INT_RXOK | INT_RXERR);
out16(REG_IMR, INT_RXOK | INT_RXERR | INT_TXOK | INT_TXERR | INT_RX_BUFFER_OVERFLOW | INT_LINK_CHANGE | INT_RX_FIFO_OVERFLOW | INT_LENGTH_CHANGE | INT_SYSTEM_ERROR);
out16(REG_ISR, 0xffff);
}