mmc: dw_mmc: split out preparation of desc for IDMAC32 and IDMAC64
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 2 Sep 2016 04:14:36 +0000 (12:14 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:35 +0000 (21:31 +0200)
commitec0baaa6b33932a25432e17e0bca8d96083caffa
tree2234ceb302d97bdf746b33de836571b9dcdcd236
parent1712c9373f98ae8ed41599a8d7841a6fba29c264
mmc: dw_mmc: split out preparation of desc for IDMAC32 and IDMAC64

We intend to add more check for descriptors when
preparing desc. Let's spilt out the separate body
to make the dw_mci_translate_sglist not so lengthy.
After spliting out these two functions, we could
remove dw_mci_translate_sglist and call both of them
when staring idmac.

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.c