Commit afbf7250 authored by Rui Miguel Silva's avatar Rui Miguel Silva Committed by Greg Kroah-Hartman

greybus: sdio: increase maximum segment size

Adjust maximum segment size of the sg list to meet the maximum request
size, this will allow to have less segments which increase the
performance of data movement during transfer operations.

Test Done: using mmc_test with best-case read/write performance and see
that only one segment is used and that the results are better (288KiB vs
300KiB in read operation).
Signed-off-by: default avatarRui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 64f28ada
...@@ -802,11 +802,11 @@ static int gb_sdio_probe(struct gbphy_device *gbphy_dev, ...@@ -802,11 +802,11 @@ static int gb_sdio_probe(struct gbphy_device *gbphy_dev,
mmc->ops = &gb_sdio_ops; mmc->ops = &gb_sdio_ops;
/* for now we just make a map 1:1 between max blocks and segments */
mmc->max_segs = host->mmc->max_blk_count; mmc->max_segs = host->mmc->max_blk_count;
mmc->max_seg_size = host->mmc->max_blk_size;
/* for now we make a map 1:1 between max request and segment size */
mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count; mmc->max_req_size = mmc->max_blk_size * mmc->max_blk_count;
mmc->max_seg_size = mmc->max_req_size;
mutex_init(&host->lock); mutex_init(&host->lock);
spin_lock_init(&host->xfer); spin_lock_init(&host->xfer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment