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:
François Revol 2014-08-29 12:48:03 +02:00
parent 9bc823ff5c
commit 9ab497059d

View File

@ -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);