]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP2+: hwmod: Update the sysc_cache in case module context is lost
authorRajendra Nayak <rnayak@ti.com>
Tue, 14 Dec 2010 19:42:36 +0000 (12:42 -0700)
committerPaul Walmsley <paul@pwsan.com>
Wed, 22 Dec 2010 02:55:13 +0000 (19:55 -0700)
commit9ddd0a6c092f65334f3c908644c456209cda8c44
tree900661a0ec42b088735811240ac4a00516a8d5de
parent8ebe83027d6a1ec27c8586941198164063f05308
OMAP2+: hwmod: Update the sysc_cache in case module context is lost

Do not skip the sysc programming in the hmwod framework based
on the cached value alone, since at times the module might have lost
context (due to the Powerdomain in which the module belongs
transitions to either Open Switch RET or OFF).

Identifying if a module has lost context requires atleast one
register read, and since a register read has more latency than
a write, it makes sense to do a blind write always.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
arch/arm/mach-omap2/omap_hwmod.c