diff options
author | Jens Taprogge <jens.taprogge@taprogge.org> | 2012-09-12 12:55:33 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-12 16:56:01 (GMT) |
commit | 487e0a608d8d7483be5b5fe3fe9414636c087588 (patch) | |
tree | 0721268c17b01a3edcf8a8ef1641021a5bed144b /drivers/staging/ipack/bridges/tpci200.h | |
parent | b8d61d49b2437df3a0aef17d321948783d275bb3 (diff) | |
download | linux-fsl-qoriq-487e0a608d8d7483be5b5fe3fe9414636c087588.tar.xz |
Staging: ipack/bridges/tpci200: Protect device registers with spinlock.
Some of the device registers are accessed from both interrupt and
non-interrupt context. To ensure proper read-modify-write modification
of these registers we can not use the "global" tpci200 mutex. Instead
a spin-lock is used.
Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ipack/bridges/tpci200.h')
-rw-r--r-- | drivers/staging/ipack/bridges/tpci200.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/ipack/bridges/tpci200.h b/drivers/staging/ipack/bridges/tpci200.h index 75a5dcc..b8e9826 100644 --- a/drivers/staging/ipack/bridges/tpci200.h +++ b/drivers/staging/ipack/bridges/tpci200.h @@ -163,6 +163,7 @@ struct tpci200_infos { struct tpci200_board { unsigned int number; struct mutex mutex; + spinlock_t regs_lock; struct tpci200_slot *slots; struct tpci200_infos *info; }; |