From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH v2] i2c: (algo-pca) Fix mode selection for PCA9665 Date: Fri, 14 Sep 2012 14:48:33 +0200 Message-ID: <20120914124833.GF2630@pengutronix.de> References: <1347549415-6140-1-git-send-email-linux@roeck-us.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sDKAb4OeUBrWWL6P" Return-path: Content-Disposition: inline In-Reply-To: <1347549415-6140-1-git-send-email-linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Guenter Roeck Cc: Jean Delvare , Ben Dooks , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas Kavanagh , Guenter Roeck List-Id: linux-i2c@vger.kernel.org --sDKAb4OeUBrWWL6P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 13, 2012 at 08:16:55AM -0700, Guenter Roeck wrote: > From: Thomas Kavanagh >=20 > The code currently always selects turbo mode for PCA9665, no matter which > clock frequency is configured. This is because it compares the clock freq= uency > against constants reflecting (boundary / 100). Compare against real bound= ary > frequencies to fix the problem. >=20 > Cc: Wolfram Sang > Signed-off-by: Thomas Kavanagh > Signed-off-by: Guenter Roeck > --- > v2: Instead of changing the variable to compare against, change the clock= values > to compare against. Applied to -current, thanks! --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --sDKAb4OeUBrWWL6P 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) iEYEARECAAYFAlBTJ6EACgkQD27XaX1/VRs1kgCdH0z8DbY7Q+atdDukz8mWetol cksAoJ1vlKZLADVfiWtC3OZMFz+RsR8l =zJmy -----END PGP SIGNATURE----- --sDKAb4OeUBrWWL6P--