Commit e6e1b821 authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

mmc: msm_sdcc: use BAM for smaller SDCC transfers as well



BAM (DMA) can transfer the data of any length or alignment.
Currenly we are using the BAM only if SDCC transfer size
is less than FIFO_SIZE (64 bytes) and only if it's in multiple
of FIFO_SIZE.

As BAM doesn't have any limitation on the minimunm size of the
request, we can use the BAM even for transfers of less than
FIFO_SIZE but performance profiling has proved that using PIO
mode (no DMA) for transfers <= FIFO_SIZE is better compared to
BAM mode.

So this change uses the BAM only if transfer size is greater than
FIFO_SIZE but removes the restriction that transfer size must be
in multiple of FIFO_SIZE.

Change-Id: I41e4e43303200aac3860e33c96aeb78caf6031b5
Signed-off-by: default avatarKrishna Konda <kkonda@codeaurora.org>
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 5a73273f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment