clk_disable_unused() is bugged

Tero.Kristo
2008-09-24T10:20:27Z

Hi,

clk_disable_unused (in plat-omap/clock.c) is bugged in latest kernel. It
checks whether ck->enable_reg is zero, and in most cases this happens to
be so (CM_FCLKEN = 0.) Seems to be caused by some late change to
clocktree where enable_reg fields are defined as module offsets, not
register addresses. This bug causes several clocks to remain enabled
after boot, and at least on OMAP3 it prevents retention.

Paul, you got a fix coming for this?

-Tero