
On Thu, Nov 1, 2018 at 6:39 PM Marek Vasut marek.vasut@gmail.com wrote:
Switch the driver to using clk_get_rate()/clk_set_rate() instead of caching the mclk frequency in it's private data. This is required on the SDHI variant of the controller, where the upstream mclk need to be adjusted when using UHS modes.
Platforms which do not support clock framework or do not support it in eg. SPL default to 100 MHz clock.
Signed-off-by: Marek Vasut marek.vasut+renesas@gmail.com Cc: Masahiro Yamada yamada.masahiro@socionext.com
V2: Fix build on certain platforms using SPL without clock framework
No. Not fixed.
uniphier_ld4_sld8_defconfig produces the following warning.
drivers/mmc/uniphier-sd.c: In function ‘uniphier_sd_probe’: drivers/mmc/uniphier-sd.c:36:23: warning: unused variable ‘priv’ [-Wunused-variable] struct tmio_sd_priv *priv = dev_get_priv(dev); ^~~~