From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH V2] sdhci: always use max timeout for xfers Date: Fri, 25 Feb 2011 21:07:22 +0100 Message-ID: <20110225200722.GA2192@pengutronix.de> References: <20110225180248.GA15491@pengutronix.de> <9C437661-BFCC-4F73-989E-06589E0D37CA@marvell.com> <20110225182206.GC15491@pengutronix.de> <62F39533-530F-4DF4-BBC6-AF8E9AB9E751@marvell.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:41741 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932644Ab1BYUH0 (ORCPT ); Fri, 25 Feb 2011 15:07:26 -0500 Content-Disposition: inline In-Reply-To: <62F39533-530F-4DF4-BBC6-AF8E9AB9E751@marvell.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Philip Rakity Cc: "linux-mmc@vger.kernel.org" , Kyungmin Park , Jae hoon Chung , Chuanxiao Dong , "linux-kernel@vger.kernel.org" --vkogqOf2sHV7VnPd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 25, 2011 at 10:49:25AM -0800, Philip Rakity wrote: > v2 >=20 > use define for max timeout. remove subroutine call and just > set the register directly The generic description goes above the "---" line, the incremental history of the patch usually below. >=20 > v1 >=20 > The card/host controller may sometimes return a value that is > too low and cause the h/w to timeout a transfer that would have > worked. Using the maximum value avoids this. >=20 > Signed-off-by: Philip Rakity What is there seems ok, but it is not enough yet. The quirks can also go =66rom the users. After that, it gets even more complicated; after this patch 'host->timeout_clk' becomes obsolete which should probably cleaned up in a later patch together with host->ops->get_timeout_clk. Hmmmm, that needs careful auditing. Regards, Wolfram --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --vkogqOf2sHV7VnPd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1oC/oACgkQD27XaX1/VRvRtQCfaLEwCQ5I9tn3GkBGqwhzX/R5 w24AnihN2wYpvuXmuEFYTH+D0loPe2GV =A6Ps -----END PGP SIGNATURE----- --vkogqOf2sHV7VnPd--