Home
last modified time | relevance | path

Searched hist:"812 df22a142e8ba661e725f85c18f0140b50a54f" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mmc/
H A Dmmc_write.c812df22a142e8ba661e725f85c18f0140b50a54f Wed Jul 18 12:47:17 UTC 2018 Jason Zhu <jason.zhu@rock-chips.com> dm: mmc: add trim erase mode

BUG: If erase is set as MMC_ERASE_ARG, the erase command
perform an erase on erase group(s). If so, when the start
address is close to the next partition address and the
blkcnt is less than erase group size, the mmc_berase()
will recalculate the end address and may exceed the next
partition start address. This will erase the other partition
useful data.

Solve: Set erase mode as trim, the erase command perform an
erase on the sector(s).

The erase command of SD card perform an erase on the sector(s).
We can just send the start and end address to erase SD card
and send CMD38 with argument MMC_ERASE_ARG.

Change-Id: Ic4251b77e9f9feb6a087324c0241625ff013a0a0
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>