Also, forgot to mention that if serial8250_em485_init is called not upon uart startup but elsewhere (upon port register for example), and em485 is set, serial8250_do_startup should call serial8250_em485_rts_after_send, or else RTS might be in wrong state whenever the port device is opened, making it impossible to receive data through RTS-controlled RS232<->RS485 hardware converters.
Regards, Ilyas G.