Re: [PATCH] serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value

2022-07-16 Thread Kunihiko Hayashi
Hi Michal, On 2022/07/15 19:48, Michal Simek wrote: On 7/13/22 03:38, Kunihiko Hayashi wrote: 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-

Re: [PATCH] serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value

2022-07-15 Thread Michal Simek
On 7/13/22 03:38, Kunihiko Hayashi wrote: 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 --- drivers/serial/serial_zyn

[PATCH] serial: zynq: Use DIV_ROUND_CLOSEST() to calcurate divider value

2022-07-12 Thread Kunihiko Hayashi
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 --- drivers/serial/serial_zynq.c | 2 +- 1 file changed, 1 insertion(+), 1 de