Re: [PATCH v2 10/32] serial: mtk: add support for using dynamic baud clock souce

2022-08-31 Thread Daniel Golle
On Wed, Aug 31, 2022 at 07:04:32PM +0800, Weijie Gao wrote: > The baud clock on some platform may change due to assigned-clock-parent > set in DT. In current flow the baud clock is only retrieved during probe > stage. If the parent of the source clock changes after probe stage, the > setbrg will se

[PATCH v2 10/32] serial: mtk: add support for using dynamic baud clock souce

2022-08-31 Thread Weijie Gao
The baud clock on some platform may change due to assigned-clock-parent set in DT. In current flow the baud clock is only retrieved during probe stage. If the parent of the source clock changes after probe stage, the setbrg will set wrong baudrate. To get the right clock rate, this patch records t