i2c: mux: pca954x: make use of raw_spinlock variants
authorJulia Cartwright <julia@ni.com>
Thu, 9 Mar 2017 16:21:59 +0000 (10:21 -0600)
committerPeter Rosin <peda@axentia.se>
Wed, 15 Mar 2017 22:22:43 +0000 (23:22 +0100)
commit743cc37561188e222eff5200d4507eabcccf9d41
treed4beb7c8e16a88ba2ff11e5bdb0bd2979add5af3
parent4495c08e84729385774601b5146d51d9e5849f81
i2c: mux: pca954x: make use of raw_spinlock variants

The pca954x i2c mux driver currently implements an irq_chip for handling
interrupts; due to how irq_chip handling is done, it's necessary for the
irq_chip methods to be invoked from hardirq context, even on a a
real-time kernel.  Because the spinlock_t type becomes a "sleeping"
spinlock w/ RT kernels, it is not suitable to be used with irq_chips.

A quick audit of the operations under the lock reveal that they do only
minimal, bounded work, and are therefore safe to do under a raw spinlock.

Signed-off-by: Julia Cartwright <julia@ni.com>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pca954x.c