lkml.org 
[lkml]   [2012]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH REBASE 1/2] i2c: tegra: I2_M_NOSTART functionality not supported in Tegra20

> >>- clk_prepare_enable(i2c_dev->div_clk);
> >>+ /* Support I2C_M_NOSTART only if HW support continue xfer. */
> >>+ for (i = 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.
> >
>
> Ok, I kept this as part of flag checking so illegal flag should not
> be passed. I will remove this on next version patch.
>
> >>+
> >>+ clk_prepare_enable(i2c_dev->clk);
> > From a glimpse, this change looks unrelated at least. Even wrong, no?
> >
>
> 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?

--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-08-18 21:21    [W:0.084 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site