]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: 8250_dw: Add Sophgo SG2044 quirk
authorInochi Amaoto <inochiama@gmail.com>
Thu, 24 Oct 2024 06:21:03 +0000 (14:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:04:09 +0000 (20:04 +0100)
commit1648c7000f9dd128cafc6c157fdf77cf3481cae3
tree8add0aaefa5c9ce2d66d749f8b5a0b89886fcfa1
parentf43324df566a29cf48b466584bd127663f3fe0a4
serial: 8250_dw: Add Sophgo SG2044 quirk

[ Upstream commit cad4dda82c7eedcfc22597267e710ccbcf39d572 ]

SG2044 relys on an internal divisor when calculating bitrate, which
means a wrong clock for the most common bitrates. So add a quirk for
this uart device to skip the set rate call and only relys on the
internal UART divisor.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Link: https://lore.kernel.org/r/20241024062105.782330-4-inochiama@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/8250/8250_dw.c