Commit ce7eb688 authored by Ben Dooks's avatar Ben Dooks Committed by Ulf Hansson

mmc: sh-mmcif: update to print version and bus clock rate on probe

Change the initial print to show chip version and the bus rate it is
working at instead of the driver version. This is more useful information
as we already know which driver version from the kernel it is in.
Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 8a125bad
...@@ -1469,16 +1469,17 @@ static int sh_mmcif_probe(struct platform_device *pdev) ...@@ -1469,16 +1469,17 @@ static int sh_mmcif_probe(struct platform_device *pdev)
mutex_init(&host->thread_lock); mutex_init(&host->thread_lock);
clk_disable_unprepare(host->hclk);
ret = mmc_add_host(mmc); ret = mmc_add_host(mmc);
if (ret < 0) if (ret < 0)
goto emmcaddh; goto emmcaddh;
dev_pm_qos_expose_latency_limit(&pdev->dev, 100); dev_pm_qos_expose_latency_limit(&pdev->dev, 100);
dev_info(&pdev->dev, "driver version %s\n", DRIVER_VERSION); dev_info(&pdev->dev, "Chip version 0x%04x, clock rate %luMHz\n",
dev_dbg(&pdev->dev, "chip ver H'%04x\n", sh_mmcif_readl(host->addr, MMCIF_CE_VERSION) & 0xffff,
sh_mmcif_readl(host->addr, MMCIF_CE_VERSION) & 0x0000ffff); clk_get_rate(host->hclk) / 1000000UL);
clk_disable_unprepare(host->hclk);
return ret; return ret;
emmcaddh: emmcaddh:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment