Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755146Ab0KRJCW (ORCPT ); Thu, 18 Nov 2010 04:02:22 -0500 Received: from mga14.intel.com ([143.182.124.37]:64153 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752593Ab0KRJCV (ORCPT ); Thu, 18 Nov 2010 04:02:21 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,216,1288594800"; d="scan'208";a="350291543" Date: Thu, 18 Nov 2010 16:59:51 +0800 From: Chuanxiao Dong To: cjb@laptop.org Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, alan@linux.intel.com, arjan@linux.intel.com Subject: [PATCH v2 0/3]mmc: set a suitable max_discard_sectors value for HC Message-ID: <20101118085951.GA18161@intel.com> Reply-To: Chuanxiao Dong MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1469 Lines: 34 Hello Chris, These are the version 2 patches of setting a suitable max_discard_sectors value for sdhci host controller. The max_discard_sectors determines how many sectors will be passed down to host controller for erasing. The default value is UNIT_MAX which means the block layer can pass down unlimited sectors one time to host controller. But for some kinds of SDHCI host controller, like MFLD SDHCI host controller cannot erase so many sectors one time. It will generate a timeout interrupt since the erasing time is longer than the host controller waiting timeout time. This should be a hardware architecture issue. So in these patches, add a new quirk to work around this. The new quirk can help host controllers to set a safe max_discard_sectors value for them. patch1: Add a new quirk for SDHCI host controller and a new mmc capability which will help mmc core layer to set a suitable max_discard_sectors value for it. patch2: Set the sdhci host controller timeout value to be the maximum one for each erase command. This will be safe for this kind of SDHCI host controller. patch3: Add the new quirk to MFLD SDHCI host controller. Thanks Chuanxiao -- 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/