On Tue, May 20, 2014 at 10:21:45AM +0800, Fugang Duan wrote: > Since IMX serial SOCs support low bus freq mode, some clocks freq > may change to save power. I2C needs to check the clock source and > update the divider. > > For example: > i.MX6SL I2C clk is from IPG_PERCLK which is sourced from IPG_CLK. > Under normal operation, IPG_CLK is 66MHz, ipg_perclk is at 22MHz. > In low bus freq mode, IPG_CLK is at 12MHz and IPG_PERCLK is down > to 4MHz. So the I2C driver must update the divider register for > each transaction when the current IPG_PERCLK is not equal to the > clock of previous transaction. > > Signed-off-by: Fugang Duan <B38611@xxxxxxxxxxxxx> > --- Applied to for-next, thanks! One change, though: > + /* dev_dbg() can't be used, because adapter is not yet registered */ This comment is outdated. I removed it and the __func__ printout.
Attachment:
signature.asc
Description: Digital signature