mmc: mediatek: refine msdc timeout api
authorChun-Hung Wu <chun-hung.wu@mediatek.com>
Mon, 20 Jul 2020 00:42:37 +0000 (08:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jul 2020 10:53:33 +0000 (12:53 +0200)
commit557011b6b8c87c10d8bd2ec4366d4b2a0614ffc8
tree21425d96b6ac7cf9f23ceeb5e2b920befaa46a76
parent7d176b0ea6f0d45e32564770316df6671183136e
mmc: mediatek: refine msdc timeout api

Extract msdc timeout api common part to have
better code architecture and avoid redundant code.

Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/1595205759-5825-3-git-send-email-chun-hung.wu@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c