]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: dw_mmc: Extract waiting for data busy into a separate routine
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:09 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
commit2015f24f78c4b21ab9fbd83ee1954eff13fa1dea
tree84a967a334358defbbb3681eb77317ecd9d2bb21
parent96ea89000f3f2b395daeef9401dd3fab6d7c62b7
mmc: dw_mmc: Extract waiting for data busy into a separate routine

Waiting for data busy is a logically separate operation and should be
implemented as a separate routine. Follow Linux kernel example and
extract it from dwmci_send_cmd(). This way it doesn't clutter
dwmci_send_cmd() function, and can be reused later in other cases.

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/dw_mmc.c