Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966142Ab2B2Sp0 (ORCPT ); Wed, 29 Feb 2012 13:45:26 -0500 Received: from metis.ext.pengutronix.de ([92.198.50.35]:43201 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965939Ab2B2SpY (ORCPT ); Wed, 29 Feb 2012 13:45:24 -0500 Date: Wed, 29 Feb 2012 19:45:23 +0100 From: Wolfram Sang To: Zhao Chenhui Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Li Yang Subject: Re: [PATCH] i2c-mpc: avoid I2C abnormal after resuming from deep sleep Message-ID: <20120229183436.GA30545@pengutronix.de> References: <1330511961-22498-1-git-send-email-chenhui.zhao@freescale.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DiL7RhKs8rK9YGuF" Content-Disposition: inline In-Reply-To: <1330511961-22498-1-git-send-email-chenhui.zhao@freescale.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:215:17ff:fe12:23b0 X-SA-Exim-Mail-From: wsa@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1884 Lines: 62 --DiL7RhKs8rK9YGuF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 29, 2012 at 06:39:21PM +0800, Zhao Chenhui wrote: > When entering deep sleep, the value in the registers I2CFDR and > I2CDFSRR are lost. This causes I2C access to fail after resuming. >=20 > Add suspend/resume routines to save/restore the registers > I2CFDR and I2CDFSRR. >=20 > Signed-off-by: Zhao Chenhui > Signed-off-by: Li Yang > --- > drivers/i2c/busses/i2c-mpc.c | 34 +++++++++++++++++++++++++++++++++- > 1 files changed, 33 insertions(+), 1 deletions(-) >=20 > diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c > index a8ebb84..f95a647 100644 > --- a/drivers/i2c/busses/i2c-mpc.c > +++ b/drivers/i2c/busses/i2c-mpc.c > @@ -1,7 +1,9 @@ > /* > * (C) Copyright 2003-2004 > * Humboldt Solutions Ltd, adrian@humboldt.co.uk. > - > + * > + * Copyright 2012 Freescale Semiconductor, Inc. > + * I'd think the change is too trivial to claim copyright on the file. Thanks for the contribution, Wolfram --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --DiL7RhKs8rK9YGuF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9OckMACgkQD27XaX1/VRs2XACfQQbveoJtm/WnfrQckyPPPsfA y6UAoJpeCjnmJNx18U8q0SMkraFDmwmv =pAbL -----END PGP SIGNATURE----- --DiL7RhKs8rK9YGuF-- -- 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/