Re: [PATCH v4 2/3]mmc: enable TRIM/ERASE caps for SDHCI host

Sascha Silbe
2011-04-03T09:41:41Z

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Excerpts from Chuanxiao Dong's message of Sat Feb 12 07:22:20 +0100 2011:
> SDHCI host controller has TRIM/ERASE capability, enable these caps for erasing
> purpose.
>
> ERASE command needs R1B response. So for such command with busy signal, before
> sending command, SDHCI host driver will simply set a maximum value for timeout
> control register which is safe to use.
>
> Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>

Tested-By: Sascha Silbe <sascha-pgp@silbe.org>

Tested on an OLPC XO-1 using a SanDisk 4GB class 4 card (retail). The
BLKDISCARD ioctl (range 0..card size) returned immediately, no timeout
issue encountered.

Sascha

--
http://sascha.silbe.org/
http://www.infra-silbe.de/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 500 bytes --]