diff options
| author | Adrian Hunter <[email protected]> | 2009-09-22 16:44:58 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-09-23 07:39:35 -0700 |
| commit | 4dffd7a251172d78a157ff45ec1207012f44774a (patch) | |
| tree | 35db86950a7c43ba4b69dc64220c57d10e15f693 /tools/perf/scripts/python | |
| parent | 23050103c21d4d5314b7c978187e6e4305a00495 (diff) | |
omap_hsmmc: prevent races with irq handler
If an unexpected interrupt occurs while preparing the next request, an
oops can occur.
For example, a new request is setting up DMA for data transfer so
host->data is not NULL. An unexpected transfer complete (TC) interrupt
comes along and the interrupt handler sets host->data to NULL. Oops!
Prevent that by adding a spinlock.
Signed-off-by: Adrian Hunter <[email protected]>
Acked-by: Matt Fleming <[email protected]>
Cc: Ian Molton <[email protected]>
Cc: "Roberto A. Foglietta" <[email protected]>
Cc: Jarkko Lavinen <[email protected]>
Cc: Denis Karpov <[email protected]>
Cc: Pierre Ossman <[email protected]>
Cc: Philip Langdale <[email protected]>
Cc: "Madhusudhan" <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions