diff options
author | Marek Vasut <marex@denx.de> | 2022-06-13 14:35:25 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-06-15 11:34:38 +0200 |
commit | 1a558fafbbdff80cb6a7c8e883addec7f02fe8e5 (patch) | |
tree | bbe5303c7e153389b9f6e9ac68b6abc3be7a90cc /drivers/spi/nxp_fspi.c | |
parent | 66e54716cfd1be2ca3a2a17749b45b7e3980f050 (diff) |
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>
Diffstat (limited to 'drivers/spi/nxp_fspi.c')
-rw-r--r-- | drivers/spi/nxp_fspi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index 607c953987..579d6bac9b 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) |