• L
    ARM: OMAP2+: hwmod: Fix updating of sysconfig register · 3ca4a238
    Lokesh Vutla 提交于
    Commit 127500cc ("ARM: OMAP2+: Only write the sysconfig on idle
    when necessary") talks about verification of sysconfig cache value before
    updating it, only during idle path. But the patch is adding the
    verification in the enable path. So, adding the check in a proper place
    as per the commit description.
    
    Not keeping this check during enable path as there is a chance of losing
    context and it is safe to do on idle as the context of the register will
    never be lost while the device is active.
    Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
    Acked-by: NTero Kristo <t-kristo@ti.com>
    Cc: Jon Hunter <jonathanh@nvidia.com>
    Cc: <stable@vger.kernel.org> # 3.12+
    Fixes: commit 127500cc "ARM: OMAP2+: Only write the sysconfig on idle when necessary"
    [paul@pwsan.com: appears to have been caused by my own mismerge of the
     originally posted patch]
    Signed-off-by: NPaul Walmsley <paul@pwsan.com>
    3ca4a238
omap_hwmod.c 111.0 KB