Commit f98205c7e44ad6919cc22451cf25eb216d14d25e

Authored by Heiner Kallweit
Committed by Jaehoon Chung
1 parent aae78fa774

mmc: meson: increase max block number per request

Number of blocks is a 9 bit field where 0 stands for a unlimited
number of blocks. Therefore the max number of blocks which can
be set is 511.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/mmc/meson_gx_mmc.c
... ... @@ -244,7 +244,7 @@
244 244 MMC_MODE_HS_52MHz | MMC_MODE_HS;
245 245 cfg->f_min = DIV_ROUND_UP(SD_EMMC_CLKSRC_24M, CLK_MAX_DIV);
246 246 cfg->f_max = 100000000; /* 100 MHz */
247   - cfg->b_max = 256; /* max 256 blocks */
  247 + cfg->b_max = 511; /* max 512 - 1 blocks */
248 248 cfg->name = dev->name;
249 249  
250 250 mmc->priv = pdata;