RE: [PATCH] OMAP3: hwmod: Adding flag to prevent caching of sysconfig register.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>>-----Original Message-----
>>From: Paul Walmsley [mailto:paul@xxxxxxxxx]
>>Sent: Wednesday, January 06, 2010 6:02 AM
>>To: Gopinath, Thara
>>Cc: linux-omap@xxxxxxxxxxxxxxx
>>Subject: RE: [PATCH] OMAP3: hwmod: Adding flag to prevent caching of sysconfig register.
>>
>>On Wed, 23 Dec 2009, Gopinath, Thara wrote:
>>
>>> Hi Paul,Kevin.. Does this patch look ok?
>>
>>Hello Thara,
>>
>>looking over this patch.  Nice job on the descriptive patch comment;
>>it explains the problem well.  What do you think about a slightly
>>different approach -- that is, to add a hook to the hwmod code to
>>invalidate the cache if the module's powerdomain has lost context?

Hi Paul

It should be possible but I feel it is a bit cumbersome. Couple of reasons I have. 
a. Some modules like smartreflex does not have any power domain associated with it.
b. Invalidating the cache is not needed for all modules even if the module powerdomain context is lost. This is needed only for modules which employ always restore mechanism. All other modules will do explicit context save and restore of its registers
c. Getting whether power domain context is lost or not is not very straight forward. If I am not mistaken the only way is to keep tab of the powerdomain counters through omap_pm_get_dev_context_loss_count. I might be mistaken.

Regards
Thara
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux