Re: [PATCH] serial: mvebu-uart: Fix reporting of effective CSIZE to userspace

2018-08-26 Thread Jan Kiszka
t;c_cflag &= CREAD | CBAUD; > termios->c_cflag |= old->c_cflag & ~(CREAD | CBAUD); > + termios->c_cflag |= CS8; > } > > spin_unlock_irqrestore(&port->lock, flags); > FWIW, below is the analogous fix for stable trees <= 4.14. Jan

[PATCH] serial: mvebu-uart: Fix reporting of effective CSIZE to userspace

2018-08-26 Thread Jan Kiszka
From: Jan Kiszka Apparently, this driver (or the hardware) does not support character length settings. It's apparently running in 8-bit mode, but it makes userspace believe it's in 5-bit mode. That makes tcsetattr with CS8 incorrectly fail, breaking e.g. getty from busybox, thus the login shell o