From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Dooks Subject: Re: [PATCH] i2c: tegra: add I2C_FUNC_SMBUS_EMUL to adapter functionality Date: Wed, 4 May 2011 22:51:33 +0100 Message-ID: <20110504215133.GY15795@trinity.fluff.org> References: <1302691521-19096-1-git-send-email-mike@compulab.co.il> <4DBFBEAD.2080103@compulab.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4DBFBEAD.2080103-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mike Rapoport Cc: Ben Dooks , Colin Cross , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-i2c@vger.kernel.org On Tue, May 03, 2011 at 11:37:01AM +0300, Mike Rapoport wrote: > Hi Ben, > Any comments on this? > > On 04/13/11 13:45, Mike Rapoport wrote: > > as there are a lot of i2c device drivers that require it. > > > > Signed-off-by: Mike Rapoport > > --- > > drivers/i2c/busses/i2c-tegra.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c > > index b4ab39b..7e68f2c 100644 > > --- a/drivers/i2c/busses/i2c-tegra.c > > +++ b/drivers/i2c/busses/i2c-tegra.c > > @@ -495,7 +495,7 @@ static int tegra_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], > > > > static u32 tegra_i2c_func(struct i2c_adapter *adap) > > { > > - return I2C_FUNC_I2C; > > + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; > > } I think this is ok, but will check tomorrow -- Ben Dooks, ben-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org, http://www.fluff.org/ben/ Large Hadron Colada: A large Pina Colada that makes the universe disappear.