1
linux/drivers/infiniband/hw
Michael Albaugh 17b2eb9fe6 IB/ipath: Lock and always use shadow copies of GPIO register
The new LED blinking interface adds more contention for the
unprotected GPIO pins that were already shared, though not commonly at
the same time.  We add locks to the accesses to these pins so that
Read-Modify-Write is now safe.  Some of these locks are added at
interrupt context, so we shadow the registers which drive and inspect
these pins to avoid the mmio read/writes.  This mitigates the effects
of the locks and hastens us through the interrupt.

Add locking and always use shadows for registers controlling GPIO pins
(ExtCtrl and GPIOout). The use of shadows implies doing less I/O,
which can make I2C operation too fast on some platforms. An explicit
udelay(1) in SCL manipulation fixes that.

Signed-off-by: Michael Albaugh <michael.albaugh@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-07-09 20:12:25 -07:00
..
amso1100 [IPV4]: Convert IPv4 devconf to an array 2007-06-07 13:39:13 -07:00
cxgb3 IB/uverbs: Export ib_umem_get()/ib_umem_release() to modules 2007-05-08 18:00:37 -07:00
ehca IB/ehca: Refactor "maybe missed event" code 2007-07-09 16:17:32 -07:00
ipath IB/ipath: Lock and always use shadow copies of GPIO register 2007-07-09 20:12:25 -07:00
mlx4 IB/mlx4: Include linux/mutex.h from mlx4_ib.h 2007-07-09 16:17:33 -07:00
mthca IB/mthca, mlx4_core: Fix typo in comment 2007-06-07 11:51:59 -07:00