• Rajendra Nayak's avatar
    OMAP2+: hwmod: Disable clocks when hwmod enable fails · f2dd7e09
    Rajendra Nayak authored
    In cases where a module (hwmod) does not become accesible on enabling
    the main clocks (can happen if there are external clocks needed
    for the module to become accesible), make sure the clocks are not
    left enabled.
    This ensures that when the requisite external dependencies are met
    a omap_hwmod_enable and omap_hwmod_idle/shutdown would rightly enable
    and disable clocks using clk framework. Leaving the clocks enabled in
    the error case causes additional usecounting at the clock framework
    level leaving the clock enabled forever.
    Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
    Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    Cc: Kevin Hilman <khilman@deeprootsystems.com>
    f2dd7e09
omap_hwmod.c 58.1 KB