Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751563Ab1DCJmL (ORCPT ); Sun, 3 Apr 2011 05:42:11 -0400 Received: from p15132773.pureserver.info ([217.160.209.225]:54470 "EHLO smtp.chost.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988Ab1DCJmJ (ORCPT ); Sun, 3 Apr 2011 05:42:09 -0400 Cc: linux-mmc , cjb , linux-kernel , akpm , adrian.hunter@flatty.sascha.silbe.org, Subject: Re: [PATCH v4 2/3]mmc: enable TRIM/ERASE caps for SDHCI host To: Chuanxiao Dong In-reply-to: <20110212062220.GC25519@intel.com> References: <20110212062220.GC25519@intel.com> Date: Sun, 03 Apr 2011 11:41:41 +0200 Message-Id: <1301823199-sup-1704@twin.sascha.silbe.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Sascha Silbe Content-Type: multipart/signed; boundary="=-1301823731-978476-32191-9345-4-="; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1789 Lines: 56 --=-1301823731-978476-32191-9345-4-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Tested-By: Sascha Silbe 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/ --=-1301823731-978476-32191-9345-4-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1.0-git7d24ffa (GNU/Linux) iQEcBAEBCgAGBQJNmEDWAAoJELpz82VMF3DaTFQIAI2UGYeSRoU0ij4tYcL0RFl3 mg5XShD730DNdNfA1AUTNy1tcEmToQ3v8ngF2wUCOuahTOBw2OnwNBw4fLVGi6cF x62A4Y05Uqx2lVTzQcCD2icCvQdUa4zm4gLA7jRkRl/LXbNiNEvrMoOxu+VYrh/S LYL/V1fKC0L6F3+XB+OVA9wu2AQfHaPolAboLFYhGK0Ugsf+qqesVL9i18yCbZvr iGnQPpaJlacSJoyeBXpDPs8vIXN7AEi3za20F1dK1if+2ncIqoG02YdgqR4YsOSb /YykP5SXwt3yBMs6HFUVq6jRpfMA0IH7V/UcRBOD04yseGOgza9VIk9ZY+uUrG4= =5yzw -----END PGP SIGNATURE----- --=-1301823731-978476-32191-9345-4-=-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/