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

2022-08-08 Thread Simon Glass
Hi Weijie, On Sun, 7 Aug 2022 at 20:36, Weijie Gao wrote: > > On Thu, 2022-08-04 at 07:56 -0600, Simon Glass wrote: > > Hi Weijie, > > > > On Wed, 3 Aug 2022 at 21:36, Weijie Gao > > wrote: > > > > > > The baud clock on some platform may change due to assigned-clock- > > > parent > > > set in DT

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

2022-08-07 Thread Weijie Gao
On Thu, 2022-08-04 at 07:56 -0600, Simon Glass wrote: > Hi Weijie, > > On Wed, 3 Aug 2022 at 21:36, 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.

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

2022-08-04 Thread Simon Glass
Hi Weijie, On Wed, 3 Aug 2022 at 21:36, 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

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

2022-08-03 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