Re: [PATCH v2 2/2] serial: 8250: Add Airoha SoC UART and HSUART support
From: Andy Shevchenko
Date: Thu Aug 06 2026 - 18:57:20 EST
On Fri, Aug 07, 2026 at 01:54:04AM +0300, Andy Shevchenko wrote:
> On Fri, Jul 24, 2026 at 08:30:06PM +0200, Christian Marangi wrote:
...
> > + /* Set DLAB to access the baud rate divider registers (BRDH, BRDL) */
> > + serial_port_out(port, UART_LCR, up->lcr | UART_LCR_DLAB);
> > +
> > + /* Set baud rate calculation defaults (BRDIV ([BRDH,BRDL]) to 1) */
> > + serial_port_out(port, UART_AIROHA_BRDL, UART_BRDL_20M);
> > + serial_port_out(port, UART_AIROHA_BRDH, UART_BRDH_20M);
>
> The above three calls repeat serial8250_do_set_divisor(), don't they?
>
> /* Set baud rate calculation defaults (BRDIV ([BRDH,BRDL]) to 1) */
> serial8250_do_set_divisor(port, baud, 1);
Or with the united definition
serial8250_do_set_divisor(port, baud, UART_BRD_20M);
--
With Best Regards,
Andy Shevchenko