]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: hwmod: Fix updating of sysconfig register
authorLokesh Vutla <lokeshvutla@ti.com>
Sun, 27 Mar 2016 05:08:55 +0000 (23:08 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 27 Mar 2016 05:08:55 +0000 (23:08 -0600)
commit960f3edb434f8873a8e829a14afda0dbe9476df9
treea41b2aac6b1ddaee8f351fe1eb439f0737d61fb8
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
ARM: OMAP2+: hwmod: Fix updating of sysconfig register

Commit c4ce71ed912fe ("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: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Cc: Jon Hunter <jonathanh@nvidia.com>
Cc: <stable@vger.kernel.org> # 3.12+
Fixes: commit c4ce71ed912f "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: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c