Message ID | 1421832908.6920.7.camel@merveille.lan |
---|---|
State | Rejected |
Headers | show |
On 21/01/2015 10:35, Ben Mulvihill wrote: > Hello, > > This is a patch to go in target/linux/lantiq/patches-3.14/ please send a patch that adds the file instead of just sending the file > > It corrects the fpi clock value on lantiq ar9. See this discussion > for further details: > > https://lists.openwrt.org/pipermail/openwrt-devel/2015-January/030688.html > > > --- a/arch/mips/lantiq/xway/clk.c 2015-01-21 10:15:44.000000000 +0100 > +++ b/arch/mips/lantiq/xway/clk.c 2015-01-21 10:17:29.000000000 +0100 > @@ -104,8 +104,9 @@ unsigned long ltq_ar9_fpi_hz(void) > unsigned long sys = ltq_ar9_sys_hz(); > > if (ltq_cgu_r32(CGU_SYS) & BIT(0)) > - return sys; > - return sys >> 1; > + return sys / 3; > + else > + return sys / 2; > } > > unsigned long ltq_ar9_cpu_hz(void) >
On Thu, 2015-01-22 at 08:34 +0100, John Crispin wrote: > > On 21/01/2015 10:35, Ben Mulvihill wrote: > > Hello, > > > > This is a patch to go in target/linux/lantiq/patches-3.14/ > > please send a patch that adds the file instead of just sending the file > > Sure, will do. I would have done, but I remembered you replying to someone else a little while ago that you preferred to "roll your own". Ben
On 22/01/2015 10:11, Ben Mulvihill wrote: > On Thu, 2015-01-22 at 08:34 +0100, John Crispin wrote: >> >> On 21/01/2015 10:35, Ben Mulvihill wrote: >>> Hello, >>> >>> This is a patch to go in target/linux/lantiq/patches-3.14/ >> >> please send a patch that adds the file instead of just sending the file >> >> > Sure, will do. I would have done, but I remembered you replying to > someone else a little while ago that you preferred to "roll your own". > > Ben > not sure which mail you mean but i guess it was related to the time when we moved some of the code from patches/ to files/
--- a/arch/mips/lantiq/xway/clk.c 2015-01-21 10:15:44.000000000 +0100 +++ b/arch/mips/lantiq/xway/clk.c 2015-01-21 10:17:29.000000000 +0100 @@ -104,8 +104,9 @@ unsigned long ltq_ar9_fpi_hz(void) unsigned long sys = ltq_ar9_sys_hz(); if (ltq_cgu_r32(CGU_SYS) & BIT(0)) - return sys; - return sys >> 1; + return sys / 3; + else + return sys / 2; } unsigned long ltq_ar9_cpu_hz(void)