[PATCH] spi: nxp_fspi: Fix clock imbalance

Peng Fan (OSS) peng.fan at oss.nxp.com
Tue Jun 14 03:51:53 CEST 2022



在 2022/6/13 20:35, Marek Vasut 写道:
> The nxp_fspi_default_setup() is only ever called from nxp_fspi_probe(),
> where the IP clock are initially disabled. Drop the second disabling of
> clock to prevent clock enable/disable imbalance reported by clock core:
>
> "
> clk qspi_root_clk already disabled
> "
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Fabio Estevam <festevam at denx.de>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>

Reviewed-by: Peng Fan <peng.fan at nxp.com>
> ---
>   drivers/spi/nxp_fspi.c | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c
> index 607c953987b..579d6bac9b1 100644
> --- a/drivers/spi/nxp_fspi.c
> +++ b/drivers/spi/nxp_fspi.c
> @@ -866,9 +866,6 @@ static int nxp_fspi_default_setup(struct nxp_fspi *f)
>   	u32 reg;
>   
>   #if CONFIG_IS_ENABLED(CLK)
> -	/* disable and unprepare clock to avoid glitch pass to controller */
> -	nxp_fspi_clk_disable_unprep(f);
> -
>   	/* the default frequency, we will change it later if necessary. */
>   	ret = clk_set_rate(&f->clk, 20000000);
>   	if (ret < 0)



More information about the U-Boot mailing list