]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc-rockchip: parse rockchip, desired-num-phases from DT
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 16 May 2017 06:28:54 +0000 (14:28 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 29 Jun 2017 15:13:59 +0000 (17:13 +0200)
commitea5cca82f58fe1b88d2b94465435057d43f0c839
tree1099b339a26dce99cb1386eb903fadcaf2ac424c
parent9b838c3962c3f39ccb825475ee63d2f564dbcad4
mmc: dw_mmc-rockchip: parse rockchip, desired-num-phases from DT

Currently we unconditionally do tuning for each degree, which
costs 900ms for each boot and resume.

May someone argue that this is a question of accuracy VS time. But I
would say it's a trick of how we need to do decision for our boards.
If we don't care the time we spend at all, we could definitely do tuning
for each degree. But when we need to improve the user experience, for
instance, speed up resuming from S3, we should also have the right to
do that. This patch add parsing "rockchip,desired-num-phases", for folks
to specify the number of doing tuning. If not specified, 360 will be used
as before.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc-rockchip.c