Thread (16 messages) 16 messages, 4 authors, 2015-07-16
STALE3989d
Revisions (3)
  1. v1 [diff vs current]
  2. v1 current
  3. v3 [diff vs current]

[PATCH 0/3] ARM: OMAP2+: hwmod: RTC: Add lock and unlock hooks

From: paul@pwsan.com (Paul Walmsley)
Date: 2015-07-16 10:13:37
Also in: linux-omap

On Thu, 16 Jul 2015, Tero Kristo wrote:
On 07/16/2015 03:15 AM, Paul Walmsley wrote:
quoted
On Tue, 14 Jul 2015, Tero Kristo wrote:
quoted
On 07/14/2015 01:09 PM, Lokesh Vutla wrote:
quoted
Hi,
On Wednesday 10 June 2015 02:56 PM, Lokesh Vutla wrote:
quoted
Some IP blocks like RTC, needs an additional unlocking mechanism for
writing to its registers. This patch adds optional lock and unlock
function pointers to the IP block's hwmod data which gets executed
before and after writing into IP sysconfig register.
And also hook lock and unlock functions to AMx3xx, DRA7 RTC hwmod
data,
so that sysconfig registers are updated properly.
ping on this series.

Thanks and regards,
Lokesh
[...]
quoted
It is also racy, as there is no locking in place to avoid concurrent
access to
the lock/unlock registers across hwmod+driver.
I don't see the race.  Where is it?
See drivers/rtc/rtc-omap.c, am3352_rtc_unlock and am3352_rtc_lock.

That code is accessing the exact same registers.
I guess my question is, when is it possible that code could race with the 
hwmod code for the same device?


- Paul
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help