mmc: dw_mmc: call the dw_mci_prep_stop_abort() by default
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 17 Nov 2016 07:40:37 +0000 (16:40 +0900)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:37:28 +0000 (08:37 -0400)
commit14ec14b6e795a193203f41b4e661bf37075459f3
tree7461471524765a1d56fd45e3d1d2e6d3a788069c
parentafe3fbc1db2fcaa0d18bf5603c4c8b250bc32fad
mmc: dw_mmc: call the dw_mci_prep_stop_abort() by default

[ Upstream commit e13c3c081845b51e8ba71a90e91c52679cfdbf89 ]

stop_cmdr should be set to values relevant to stop command.
It migth be assigned to values whatever there is mrq->stop or not.
Then it doesn't need to use dw_mci_prepare_command().
It's enough to use the prep_stop_abort for preparing stop command.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/host/dw_mmc.c