]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: atmel: Separate mode clearing between UART and USART
authorSergiu Moga <sergiu.moga@microchip.com>
Thu, 22 Sep 2022 11:33:44 +0000 (14:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 14:31:42 +0000 (16:31 +0200)
commitb0ec9748147c4f11c30f06f504bfca648a6d70fd
treecba7bf50eb5d4462733df8ddc1153394cadc01d4
parentd528ee1dfc4219f071474e7ff06c52d804eca8bb
tty: serial: atmel: Separate mode clearing between UART and USART

When clearing the mode of the serial IP inside the atmel_set_termios()
method, make sure that the difference between the bitfields placement
of the UART IP's and USART IP's is taken into account, as some of
them overlap with each other. For example, ATMEL_UA_BRSRCCK overlaps
with ATMEL_US_NBSTOP and ATMEL_US_USCLKS overlaps with ATMEL_UA_FILTER.

Furthermore, add definitions for the Baud Rate Source Clock and the
Filter bitfields of the Mode Register of UART IP's, since they were
missing.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Link: https://lore.kernel.org/r/20220922113347.144383-7-sergiu.moga@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/atmel_serial.h