summaryrefslogtreecommitdiffstats
path: root/drivers/ddr/imx/imx8m/ddr_init.c
diff options
context:
space:
mode:
authorEugen Hristev <eugen.hristev@microchip.com>2020-11-09 13:02:17 +0200
committerEugen Hristev <eugen.hristev@microchip.com>2020-11-26 10:12:47 +0200
commit7eace38d5418a6330f6d0918ed319ff605d3020b (patch)
tree6ac3ee06f703b25e7c4391641a07c86e532cdf5d /drivers/ddr/imx/imx8m/ddr_init.c
parent1ae955e3a58f46918ef99b0b6c562967ba1bf39e (diff)
downloadu-boot-7eace38d5418a6330f6d0918ed319ff605d3020b.tar.gz
u-boot-7eace38d5418a6330f6d0918ed319ff605d3020b.tar.xz
u-boot-7eace38d5418a6330f6d0918ed319ff605d3020b.zip
mmc: atmel-sdhci: fix the clk_enable call in case of no ops
If the clock driver does not offer a clk_enable ops, then the system will return -ENOSYS. The clk_enable works with CCF (common clock framework). Some clocks in some cases (like the generic clock for some products: sama5d2) do not have the clk_enable primitive, and in this case probing of the driver will fail. This patch changes the behavior to return an error in case there is really an error, and not a missing primitive. If the clock driver does not have an enable primitive, most likely clocks are always enabled or enabled in the set_rate primitives. Fixes: 81f16438d4 ("mmc: atmel-sdhci: enable the required generic clock") Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com> Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers/ddr/imx/imx8m/ddr_init.c')
0 files changed, 0 insertions, 0 deletions