commit | 49622a12f438798c351dbf1bab2761992b616dae | [log] [tgz] |
---|---|---|
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | Wed Jul 13 10:38:59 2022 +0900 |
committer | Michal Simek <michal.simek@amd.com> | Tue Jul 26 08:23:55 2022 +0200 |
tree | 0ae75743c33c6898f5b727a5f028289e8396139d | |
parent | 5a691910639fbc2885688a65abb38af6d4545fd1 [diff] |
serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value Since the calulation of "bgen" is rounded down, using a higher baudrate will result in a larger difference from the actual baudrate. Should use DIV_ROUND_CLOSEST() like the Linux driver. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Link: https://lore.kernel.org/r/1657676339-6055-1-git-send-email-hayashi.kunihiko@socionext.com Signed-off-by: Michal Simek <michal.simek@amd.com>