Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-19 Thread Tom Rini
On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > The timer being used by this driver may have already been used by first > stage bootloader (e.g. ATF/preloader), and it's settings may differ from > what this driver is going to use. > > This may cause issues, such as inaccurate timer

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-19 Thread Matthias Brugger
On Mon, Jan 18, 2021 at 08:44:42AM +0800, Weijie Gao wrote: > On Fri, 2021-01-15 at 17:36 +0100, Matthias Brugger wrote: > > On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > > > The timer being used by this driver may have already been used by first > > > stage bootloader (e.g. ATF/pre

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-17 Thread Weijie Gao
On Fri, 2021-01-15 at 17:36 +0100, Matthias Brugger wrote: > On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > > The timer being used by this driver may have already been used by first > > stage bootloader (e.g. ATF/preloader), and it's settings may differ from > > what this driver is g

Re: [PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-15 Thread Matthias Brugger
On Tue, Jan 12, 2021 at 01:44:02PM +0800, Weijie Gao wrote: > The timer being used by this driver may have already been used by first > stage bootloader (e.g. ATF/preloader), and it's settings may differ from > what this driver is going to use. > > This may cause issues, such as inaccurate timer f

[PATCH 1/2] timer: mtk_timer: initialize the timer before use

2021-01-11 Thread Weijie Gao
The timer being used by this driver may have already been used by first stage bootloader (e.g. ATF/preloader), and it's settings may differ from what this driver is going to use. This may cause issues, such as inaccurate timer frequency due to incorrect clock divider. This patch adds the initiali