@@ -408,9 +408,8 @@ static void mvebu_gpio_irq_ack(struct irq_data *d)
408
408
struct mvebu_gpio_chip * mvchip = gc -> private ;
409
409
u32 mask = d -> mask ;
410
410
411
- irq_gc_lock ( gc );
411
+ guard ( raw_spinlock )( & gc -> lock );
412
412
mvebu_gpio_write_edge_cause (mvchip , ~mask );
413
- irq_gc_unlock (gc );
414
413
}
415
414
416
415
static void mvebu_gpio_edge_irq_mask (struct irq_data * d )
@@ -420,10 +419,9 @@ static void mvebu_gpio_edge_irq_mask(struct irq_data *d)
420
419
struct irq_chip_type * ct = irq_data_get_chip_type (d );
421
420
u32 mask = d -> mask ;
422
421
423
- irq_gc_lock ( gc );
422
+ guard ( raw_spinlock )( & gc -> lock );
424
423
ct -> mask_cache_priv &= ~mask ;
425
424
mvebu_gpio_write_edge_mask (mvchip , ct -> mask_cache_priv );
426
- irq_gc_unlock (gc );
427
425
}
428
426
429
427
static void mvebu_gpio_edge_irq_unmask (struct irq_data * d )
@@ -433,11 +431,10 @@ static void mvebu_gpio_edge_irq_unmask(struct irq_data *d)
433
431
struct irq_chip_type * ct = irq_data_get_chip_type (d );
434
432
u32 mask = d -> mask ;
435
433
436
- irq_gc_lock ( gc );
434
+ guard ( raw_spinlock )( & gc -> lock );
437
435
mvebu_gpio_write_edge_cause (mvchip , ~mask );
438
436
ct -> mask_cache_priv |= mask ;
439
437
mvebu_gpio_write_edge_mask (mvchip , ct -> mask_cache_priv );
440
- irq_gc_unlock (gc );
441
438
}
442
439
443
440
static void mvebu_gpio_level_irq_mask (struct irq_data * d )
@@ -447,10 +444,9 @@ static void mvebu_gpio_level_irq_mask(struct irq_data *d)
447
444
struct irq_chip_type * ct = irq_data_get_chip_type (d );
448
445
u32 mask = d -> mask ;
449
446
450
- irq_gc_lock ( gc );
447
+ guard ( raw_spinlock )( & gc -> lock );
451
448
ct -> mask_cache_priv &= ~mask ;
452
449
mvebu_gpio_write_level_mask (mvchip , ct -> mask_cache_priv );
453
- irq_gc_unlock (gc );
454
450
}
455
451
456
452
static void mvebu_gpio_level_irq_unmask (struct irq_data * d )
@@ -460,10 +456,9 @@ static void mvebu_gpio_level_irq_unmask(struct irq_data *d)
460
456
struct irq_chip_type * ct = irq_data_get_chip_type (d );
461
457
u32 mask = d -> mask ;
462
458
463
- irq_gc_lock ( gc );
459
+ guard ( raw_spinlock )( & gc -> lock );
464
460
ct -> mask_cache_priv |= mask ;
465
461
mvebu_gpio_write_level_mask (mvchip , ct -> mask_cache_priv );
466
- irq_gc_unlock (gc );
467
462
}
468
463
469
464
/*****************************************************************************
0 commit comments