trs80: fix baud rate setting on serial
authorAlan Cox <alan@linux.intel.com>
Wed, 16 May 2018 21:17:34 +0000 (22:17 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 16 May 2018 21:17:34 +0000 (22:17 +0100)
Kernel/platform-trs80/devtty.c

index 018a092..919dcf3 100644 (file)
@@ -146,6 +146,7 @@ void tty_setup(uint8_t minor)
         ttydata[3].termios.c_cflag |= B19200;
         baud = B19200;
     }
+    baud = trsbaud[baud];
     tr1865_baud = baud | (baud << 4);
 
     ctrl = 3;