Re: [PATCH v3 4/4] serial: 8250_dw: Fix common clocks usage race condition

2020-05-15 Thread Serge Semin
On Fri, May 15, 2020 at 05:10:46PM +0300, Andy Shevchenko wrote: > On Thu, May 07, 2020 at 02:31:35AM +0300, Serge Semin wrote: > > The race condition may happen if the UART reference clock is shared with > > some other device (on Baikal-T1 SoC it's another DW UART port). In this > > case if that d

Re: [PATCH v3 4/4] serial: 8250_dw: Fix common clocks usage race condition

2020-05-15 Thread Andy Shevchenko
On Thu, May 07, 2020 at 02:31:35AM +0300, Serge Semin wrote: > The race condition may happen if the UART reference clock is shared with > some other device (on Baikal-T1 SoC it's another DW UART port). In this > case if that device changes the clock rate while serial console is using > it the DW 82

[PATCH v3 4/4] serial: 8250_dw: Fix common clocks usage race condition

2020-05-06 Thread Serge Semin
The race condition may happen if the UART reference clock is shared with some other device (on Baikal-T1 SoC it's another DW UART port). In this case if that device changes the clock rate while serial console is using it the DW 8250 UART port might not only end up with an invalid uartclk value save