From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH] sdhci: always use max timeout for xfers Date: Fri, 25 Feb 2011 19:22:06 +0100 Message-ID: <20110225182206.GC15491@pengutronix.de> References: <20110225180248.GA15491@pengutronix.de> <9C437661-BFCC-4F73-989E-06589E0D37CA@marvell.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Return-path: Received: from metis.ext.pengutronix.de ([92.198.50.35]:45830 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932173Ab1BYSWO (ORCPT ); Fri, 25 Feb 2011 13:22:14 -0500 Content-Disposition: inline In-Reply-To: <9C437661-BFCC-4F73-989E-06589E0D37CA@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" --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > >> - return count; > >> + return 0xE; > >=20 > > Why don't you remove the function entirely? >=20 > better to rename it --- to set_maximum_timeout since a little clearer. > left the old name for historical reasons -- if no need I will change it I'd suggest... >=20 > >=20 > >> } > >>=20 > >> static void sdhci_set_transfer_irqs(struct sdhci_host *host) > >> @@ -671,7 +633,7 @@ static void sdhci_prepare_data(struct sdhci_host *= host, struct mmc_data *data) > >> host->data =3D data; > >> host->data_early =3D 0; > >>=20 > >> - count =3D sdhci_calc_timeout(host, data); > >> + count =3D sdhci_calc_timeout(); > >> sdhci_writeb(host, count, SDHCI_TIMEOUT_CONTROL); using SDHCI_TIMEOUT_MAX here instead of count with a proper define in sdhci.h. --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --NKoe5XOeduwbEQHU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAk1n804ACgkQD27XaX1/VRtr1wCgsMBJ+4Y/OK/bUhfoGRVuE+zA qgQAoK2dz5OxAbfzPw28b2oNou38z9xZ =ECrS -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--