]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerKamal Mostafa <kamal@canonical.com>
Mon, 16 May 2016 17:25:16 +0000 (10:25 -0700)
commit1b27c7621f139fdae98156afd6c86aa4d4f1f734
tree0f606a164b41429155d57605947a47395e55e5b4
parent7ce1f27acabbeda6896bebe35fdcbe65b71c6246
ARM: OMAP2+: hwmod: Fix updating of sysconfig register

BugLink: http://bugs.launchpad.net/bugs/1578798
commit 3ca4a238106dedc285193ee47f494a6584b6fd2f upstream.

Commit 127500ccb766f ("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>
Fixes: commit 127500ccb766 "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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
arch/arm/mach-omap2/omap_hwmod.c