Hi! > > +#define DEBUG > > + > > #include <linux/device.h> > > #include <linux/gcd.h> > > #include <linux/lcm.h> > > @@ -457,6 +459,10 @@ int smiapp_pll_calculate(struct device *dev, > > i = gcd(pll->pll_op_clk_freq_hz, pll->ext_clk_freq_hz); > > mul = div_u64(pll->pll_op_clk_freq_hz, i); > > div = pll->ext_clk_freq_hz / i; > > + if (!mul) { > > Something must be very wrong if you get here. > > What are the values of pll->pll_op_clk_freq_hz and pll->ext_clk_freq_hz? > Or... what does dmesg say? Yep, it was very wrong. I mismerged the stuff, and hwcfg->lanes initialization was missing. Now it appears to work. (I have pushed the changes to camera-v4.9 branch). Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature