• Paul Walmsley's avatar
    OMAP3 clock: disable DPLL autoidle while waiting for DPLL to lock · 3b7de4be
    Paul Walmsley authored
    During _omap3_noncore_dpll_lock(), if a DPLL has no active downstream
    clocks and DPLL autoidle is enabled, the DPLL may never lock, since it
    will enter autoidle immediately.  To resolve this, disable DPLL
    autoidle while locking the DPLL, and unconditionally wait for the DPLL
    to lock.  This fixes some bugs where the kernel would hang when returning
    from retention or return the wrong rate for the DPLL.
    
    This patch is a collaboration with Peter de Schrijver
    <peter.de-schrijver@nokia.com> and Kevin Hilman
    <khilman@deeprootsystems.com>.
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    Cc: Peter de Schrijver <peter.de-schrijver@nokia.com>
    Cc: Kevin Hilman <khilman@deeprootsystems.com>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    3b7de4be
clock34xx.c 18.8 KB