Commit e14adb41 authored by Philippe Gerum's avatar Philippe Gerum

gpio: ipipe: convert to hard locking

The generic GPIO chip needs to be hard locked as its handlers may be
called from out-of-band code running in the head domain. To this end,
convert the regular spinlock protecting the gpio_chip descriptor to a
hard lock.
parent 0e05bbe2
......@@ -278,7 +278,7 @@ struct gpio_chip {
void __iomem *reg_dir;
bool bgpio_dir_inverted;
int bgpio_bits;
spinlock_t bgpio_lock;
ipipe_spinlock_t bgpio_lock;
unsigned long bgpio_data;
unsigned long bgpio_dir;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment