Re: [PATCH] mmc: core: Fix the incorrect calculation for erase unit size.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/07/2011 10:59 PM, Seungwon Jeon wrote:
Erase unit size of high capacity is multiple of 512KiB not 1024KiB.

I'm just wondering, what are these patches based off of? I have not been able to connect to anything hosted by kernel.org since I came back from vacation due to the security breach on kernel.org.


Signed-off-by: Seungwon Jeon<tgih.jun@xxxxxxxxxxx>
---
  drivers/mmc/core/mmc.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index b148bb1..7991ecf 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -332,7 +332,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
  		card->ext_csd.hc_erase_timeout = 300 *
  			ext_csd[EXT_CSD_ERASE_TIMEOUT_MULT];
  		card->ext_csd.hc_erase_size =
-			ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE]<<  10;
+			ext_csd[EXT_CSD_HC_ERASE_GRP_SIZE]<<  9;

  		card->ext_csd.rel_sectors = ext_csd[EXT_CSD_REL_WR_SEC_C];

--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
J (James/Jay) Freyensee
Storage Technology Group
Intel Corporation
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux