OSDN Git Service

mmc: tmio: enable odd number size access
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 10 Sep 2014 07:23:24 +0000 (00:23 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 19 Sep 2014 18:36:15 +0000 (20:36 +0200)
commitb9bd7ff8069a7125da897de657da421c497d4f15
tree32e6f0a4ae9fee954c2dfb48370bdc69445e75d6
parent5e1344eb3f4804d2d50195e197fcbcdbd60ad049
mmc: tmio: enable odd number size access

Current tmio is using sd_ctrl_read16/write16_rep()
for data transfer.
It works if transfer size was even number,
but, last 1 byte will be ignored if
transfer size was odd number.
This patch adds new tmio_mmc_transfer_data()
and solve this issue.

Tested-by: Shinobu Uehara <shinobu.uehara.xc@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/tmio_mmc_pio.c