mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
spi: nxp_fspi: Fix clock imbalance
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@denx.de> Cc: Fabio Estevam <festevam@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
66e54716cf
commit
1a558fafbb
@ -866,9 +866,6 @@ static int nxp_fspi_default_setup(struct nxp_fspi *f)
|
|||||||
u32 reg;
|
u32 reg;
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(CLK)
|
#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. */
|
/* the default frequency, we will change it later if necessary. */
|
||||||
ret = clk_set_rate(&f->clk, 20000000);
|
ret = clk_set_rate(&f->clk, 20000000);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user