Subject: Re: sdpmem(4) reporting DDR2 speed/type incorrectly
To: Juan RP <juan@xtrarom.org>
From: Paul Goyette <paul@whooppee.com>
List: current-users
Date: 09/17/2007 21:33:31
Hmmm.  If you're going to report 667 vs 666, you should also plan on 
reporting 1667 vs 1666!  It will happen someday, probably sooner than
any of us think.  :)

> @@ -308,6 +308,8 @@ spdmem_attach(struct device *parent, str
> 				bits -= 8;
> 		}
> 		d_clk /= cycle_time;
> +		if ((d_clk % 1000) == 666)
> +			d_clk++;
> 		p_clk = d_clk * bits / 8;
> 		if ((p_clk % 100) >= 50)
> 			p_clk += 50;
>