pc_serial: apply lcr parameters even when unmasking latch reg
No need to change line params even more if it was already the same before.
This commit is contained in:
parent
9bc823ff5c
commit
9ab497059d
@ -161,7 +161,7 @@ SerialDevice::SetModes(struct termios *tios)
|
||||
WriteReg8(FCR, fcr);
|
||||
|
||||
// unmask the divisor latch regs
|
||||
WriteReg8(LCR, LCR_DLAB);
|
||||
WriteReg8(LCR, lcr | LCR_DLAB);
|
||||
// set divisor
|
||||
WriteReg8(DLLB, divisor & 0x00ff);
|
||||
WriteReg8(DLHB, divisor >> 8);
|
||||
|
Loading…
Reference in New Issue
Block a user