From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH] mxc i2c: let time to generate stop bit Date: Thu, 21 Jan 2010 19:09:03 +0100 Message-ID: <20100121180903.GA2675@pengutronix.de> References: <20100121114216.GA3738@pengutronix.de> <1264096532-23580-1-git-send-email-valentin.longchamp@epfl.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9jxsPFA5p3P2qPhR" Return-path: Content-Disposition: inline In-Reply-To: <1264096532-23580-1-git-send-email-valentin.longchamp-p8DiymsW2f8@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Valentin Longchamp Cc: s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, augulis.darius-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 21, 2010 at 06:55:32PM +0100, Valentin Longchamp wrote: > After generating the stop bit by changing MSTA from 1 to 0, > the i2c_imx->stopped was immediatly set to 1. The second test > on i2c_imx->stopped then is correct and the controller never > waits if the bus is busy. This patch corrects this. >=20 > On mx31moboard, stop bit was not generated on single write transfers. > This was kept unnoticed as other transfers are made afterwards that > help the write recipient to resynchronize. >=20 > Thanks to Philippe and Michael for the debugging. >=20 > Signed-off-by: Valentin Longchamp > Signed-off by: Philippe R=E9tornaz > Reported-by: Michael Bonani Acked-by: Wolfram Sang --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --9jxsPFA5p3P2qPhR 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) iEYEARECAAYFAktYmD8ACgkQD27XaX1/VRtlJQCdEpDKuPTie5jGTJ/WPscqPFU+ gTEAoLg1QQ0YaC7cFUJucUQ64z5Kwge9 =Ope4 -----END PGP SIGNATURE----- --9jxsPFA5p3P2qPhR--