Re: [PATCH 2/2] serial: a37xx: Do not call get_ref_clk() in _debug_uart_init()

Pali Rohár
2021-07-26T14:58:25Z

On Monday 26 July 2021 16:55:22 Marek Behun wrote:
> On Mon, 26 Jul 2021 14:58:59 +0200
> Pali Rohár <pali@kernel.org> wrote:
>
> > Static inline function _debug_uart_init() should avoid calling external
> > (non-inline) functions.
>
> Why?

Function is called in stage when stack is not fully initialized and
documentation suggest to avoid stack usage and other functions.