From: Tero Kristo Date: Mon, 1 Dec 2008 07:43:58 +0000 (-0700) Subject: OMAP2/3 clock: fix DPLL rate calculation X-Git-Tag: v2.6.28-davinci1-diff-base~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18a550088456d3c39e4eccf901ddd8669dbe6ee3;p=pandora-kernel.git OMAP2/3 clock: fix DPLL rate calculation Noncore dpll can enter autoidle state, in which case the rate calculation fails. Fixed by checking dpll mode instead of idle status. Also, previously, the OMAP2xxx code returned the wrong value for the DPLL rate under some conditions. Move the CORE_CLK rate recalculation to clock24xx.c:omap2xxx_clk_get_core_rate(). This patch is a collaboration between Tero Kristo and Paul Walmsley . Thanks to Peter de Schrijver for help debugging and Kevin Hilman for reporting the OMAP2 build problems with an earlier version of this patch. Signed-off-by: Tero Kristo Signed-off-by: Paul Walmsley Cc: Kevin Hilman Cc: Peter de Schrijver Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed