]> git.karo-electronics.de Git - mv-sheeva.git/commit
OMAP2+ clock: remove DEFAULT_RATE clksel_rate flag
authorPaul Walmsley <paul@pwsan.com>
Wed, 19 May 2010 00:40:24 +0000 (18:40 -0600)
committerPaul Walmsley <paul@pwsan.com>
Thu, 20 May 2010 18:31:06 +0000 (12:31 -0600)
commitd74b4949714741f4c58cd1801a6a92737b89a61c
treea0e838fff3cab45bfba0c319fcdf7f1ea594686f
parent275f675c24a16ea45cc78bc03ff73fd06be8bffb
OMAP2+ clock: remove DEFAULT_RATE clksel_rate flag

The DEFAULT_RATE clksel_rate flag is essentially useless.  It was set
on some of the lowest divisors, which, when switching to a much
higher-rate parent, could have potentially resulted in rates that
exceeded the hardware specifications for downstream clocks in the
window between the clk_set_parent(), and a subsequent clk_set_rate().
It seems much safer to just remove the flag and always use the highest
available divisor (resulting in the lowest possible rate) after the
switch, and this patch does so.

Ideally, it would be best to first attempt to switch to a divisor that
matches the clock's rate with the previous parent, if at all possible.
But that is a project for some other day or some other person.  The
parent changing code is rarely used.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clkt_clksel.c
arch/arm/mach-omap2/clock2420_data.c
arch/arm/mach-omap2/clock2430_data.c
arch/arm/mach-omap2/clock3xxx_data.c
arch/arm/mach-omap2/clock_common_data.c
arch/arm/plat-omap/include/plat/clock.h