mmc: block: Allow disabling 512B sector size emulation
authorSaugata Das <saugata.das@linaro.org>
Thu, 17 May 2012 11:02:21 +0000 (16:02 +0530)
committerMandar Padmawar <mpadmawar@nvidia.com>
Mon, 11 Mar 2013 09:42:56 +0000 (02:42 -0700)
commit57e3cedd0518e121d0c9b81b540525036a3f8c7f
tree57a2f6f2cad20efc5149338d4d2a62d8b3680082
parent8aa86487a5d51a52e68c39de8529babfd3e77c2b
mmc: block: Allow disabling 512B sector size emulation

This patch adds support for large sector size of 4KB by disabling
emulation.  This patch passes eMMC DATA_SECTOR_SIZE as the logical
block size during mmc_blk_alloc_req.

In order to use this patch for 4KB sector size, ensure that
USE_NATIVE_SECTOR is enabled, partition table is 4KB sector size
aligned and file system block and sector size are 4KB multiples.

Signed-off-by: Saugata Das <saugata.das@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
(cherry picked from commit a5075eb94837edde6833fd5e0277fc2370cf8b39)

Bug 1242730

Change-Id: Ie99b9c44dcdd84238e1d518caeac0800e697d2ce
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/206931
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
drivers/mmc/card/block.c
drivers/mmc/core/mmc.c