summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2017-02-07 22:35:02 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2017-02-14 09:10:57 +0100
commit4136fcb547d2baec31179aa0ce3466f4040b193c (patch)
tree6001a648416a2f43fb38712e165ac4b79f42065e /drivers/mmc
parentefe0b669716314072f0467368c2be2f501f04afc (diff)
downloadop-kernel-dev-4136fcb547d2baec31179aa0ce3466f4040b193c.zip
op-kernel-dev-4136fcb547d2baec31179aa0ce3466f4040b193c.tar.gz
mmc: meson-gx: reduce bounce buffer size
A bounce buffer of 512K isn't needed as the max request size is 511 * 512 byte. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Reviewed-by: Kevin Hilman <khilman@baylibre.com> Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/meson-gx-mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index c9f2517..4feb897 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -782,7 +782,7 @@ static int meson_mmc_probe(struct platform_device *pdev)
mmc->max_req_size = mmc->max_blk_count * mmc->max_blk_size;
/* data bounce buffer */
- host->bounce_buf_size = SZ_512K;
+ host->bounce_buf_size = mmc->max_req_size;
host->bounce_buf =
dma_alloc_coherent(host->dev, host->bounce_buf_size,
&host->bounce_dma_addr, GFP_KERNEL);
OpenPOWER on IntegriCloud