Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752895Ab2HRS3y (ORCPT ); Sat, 18 Aug 2012 14:29:54 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:57804 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665Ab2HRS3v (ORCPT ); Sat, 18 Aug 2012 14:29:51 -0400 Date: Sat, 18 Aug 2012 20:29:40 +0200 From: Wolfram Sang To: Laxman Dewangan Cc: "khali@linux-fr.org" , Stephen Warren , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "olof@lixom.net" Subject: Re: [PATCH REBASE 1/2] i2c: tegra: I2_M_NOSTART functionality not supported in Tegra20 Message-ID: <20120818182940.GA19802@pengutronix.de> References: <1345230155-4252-1-git-send-email-ldewangan@nvidia.com> <20120818124703.GC12839@pengutronix.de> <502F8F83.5030902@nvidia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <502F8F83.5030902@nvidia.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c 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: 1833 Lines: 56 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > >>- clk_prepare_enable(i2c_dev->div_clk); > >>+ /* Support I2C_M_NOSTART only if HW support continue xfer. */ > >>+ for (i =3D 0; i< num - 1; i++) { > >>+ if ((msgs[i + 1].flags& I2C_M_NOSTART)&& > >>+ !i2c_dev->has_continue_xfer_support) { > >>+ dev_err(i2c_dev->dev, > >>+ "mesg %d have illegal flag\n", i + 1); > >>+ return -EINVAL; > >>+ } > >>+ } > >Drivers are requested to explicitly check for features of the I2C bus > >(like M_NOSTART) before using them, so I'd skip this extra check. > > >=20 > Ok, I kept this as part of flag checking so illegal flag should not > be passed. I will remove this on next version patch. >=20 > >>+ > >>+ clk_prepare_enable(i2c_dev->clk); > > From a glimpse, this change looks unrelated at least. Even wrong, no? > > >=20 > It was already there, just before above check. Due to insertion of > check, this code shifted, otherwise it is not a new code. It used to be ->div_clk and now it is ->clk? --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlAv3xQACgkQD27XaX1/VRuMSwCgwWBZ/GTWIGew9JIPPT1F+OJW QOIAoKnHdvNb2jtx3suvGHm+WNAro7p9 =SQ3A -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO-- -- 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/