From mboxrd@z Thu Jan 1 00:00:00 1970 From: paul@pwsan.com (Paul Walmsley) Date: Thu, 2 Feb 2012 03:05:00 -0700 (MST) Subject: [PATCH 1/2] ARM: OMAP3: PM: remove superfluous calls to pwrdm_clear_all_prev_pwrst() In-Reply-To: References: <20120130093931.11027.31048.stgit@dusk> <20120130094312.11027.31050.stgit@dusk> <878vkopw2o.fsf@ti.com> <87mx93ok5y.fsf@ti.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, 2 Feb 2012, Shilimkar, Santosh wrote: > Yes, we do have issue with below APIs for OMAP4 and onwards design > because of the PRCM change. > > pwrdm_clear_all_prev_pwrst > pwrdm_*_mem_* > > There use to be a single power state and memory state register till OMAP3 > at power domain level which can give you the logic and memory last test > which is needed for OSWR. > > On OMAP4, we have registers per modules and it becomes difficult to model > this difference in APIs. Initially we tried to fix that with [1] and > then later realized > that's not going to work on OMAP4 + devices because of mentioned issue. If the registers are per-module, it seems like the best place for those would be the hwmod layer. Do you think that makes sense? So, something like omap_hwmod_clear_all_prev_pwrst(), etc.? Seems like that should be pretty efficient. - Paul