Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1640724
| From | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V2] serial: efm32: Fix parity management in 'efm32_uart_console_get_options()' |
| Date | 2017-05-12 22:20 +0200 |
| Message-ID | <tGpcB-1r5-3@gated-at.bofh.it> (permalink) |
| References | <tGjTz-5TF-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, May 12, 2017 at 04:35:45PM +0200, Christophe JAILLET wrote:
> UARTn_FRAME_PARITY_ODD is 0x0300
> UARTn_FRAME_PARITY_EVEN is 0x0200
> So if the UART is configured for EVEN parity, it would be reported as ODD.
> Fix it by correctly testing if the 2 bits are set.
>
> Fixes: 3afbd89c9639 ("serial/efm32: add new driver")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks for picking this topic up again.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V2] serial: efm32: Fix parity management in 'efm32_uart_console_get_options()' Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2017-05-12 16:40 +0200 Re: [PATCH V2] serial: efm32: Fix parity management in 'efm32_uart_console_get_options()' Uwe Kleine-König <u.kleine-koenig@pengutronix.de> - 2017-05-12 22:20 +0200
csiph-web