Re: [RFC 5/9] i2c: rcar: honor additional i2c timings from DT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Geert,

> > -       round = (ick + 500000) / 1000000 * 285;
> > +       sum = t->scl_fall_ns + t->scl_rise_ns + t->scl_int_delay_ns;
> > +       round = (ick + 500000) / 1000000 * sum;
> 
> If you're sure it cannot overflow, doing the "* sum" before the division
> improves accuracy.

Thanks for the input. In this patch, however, I intentionally did not
change the formula but only replaced the constants with the now user
supplied values. Everything else should be a separate patch IMO.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux