@@ -243,9 +243,9 @@ static void dwapb_irq_ack(struct irq_data *d)
243243 u32 val = BIT (irqd_to_hwirq (d ));
244244 unsigned long flags ;
245245
246- spin_lock_irqsave (& gc -> bgpio_lock , flags );
246+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
247247 dwapb_write (gpio , GPIO_PORTA_EOI , val );
248- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
248+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
249249}
250250
251251static void dwapb_irq_mask (struct irq_data * d )
@@ -255,10 +255,10 @@ static void dwapb_irq_mask(struct irq_data *d)
255255 unsigned long flags ;
256256 u32 val ;
257257
258- spin_lock_irqsave (& gc -> bgpio_lock , flags );
258+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
259259 val = dwapb_read (gpio , GPIO_INTMASK ) | BIT (irqd_to_hwirq (d ));
260260 dwapb_write (gpio , GPIO_INTMASK , val );
261- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
261+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
262262}
263263
264264static void dwapb_irq_unmask (struct irq_data * d )
@@ -268,10 +268,10 @@ static void dwapb_irq_unmask(struct irq_data *d)
268268 unsigned long flags ;
269269 u32 val ;
270270
271- spin_lock_irqsave (& gc -> bgpio_lock , flags );
271+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
272272 val = dwapb_read (gpio , GPIO_INTMASK ) & ~BIT (irqd_to_hwirq (d ));
273273 dwapb_write (gpio , GPIO_INTMASK , val );
274- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
274+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
275275}
276276
277277static void dwapb_irq_enable (struct irq_data * d )
@@ -281,11 +281,11 @@ static void dwapb_irq_enable(struct irq_data *d)
281281 unsigned long flags ;
282282 u32 val ;
283283
284- spin_lock_irqsave (& gc -> bgpio_lock , flags );
284+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
285285 val = dwapb_read (gpio , GPIO_INTEN );
286286 val |= BIT (irqd_to_hwirq (d ));
287287 dwapb_write (gpio , GPIO_INTEN , val );
288- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
288+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
289289}
290290
291291static void dwapb_irq_disable (struct irq_data * d )
@@ -295,11 +295,11 @@ static void dwapb_irq_disable(struct irq_data *d)
295295 unsigned long flags ;
296296 u32 val ;
297297
298- spin_lock_irqsave (& gc -> bgpio_lock , flags );
298+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
299299 val = dwapb_read (gpio , GPIO_INTEN );
300300 val &= ~BIT (irqd_to_hwirq (d ));
301301 dwapb_write (gpio , GPIO_INTEN , val );
302- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
302+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
303303}
304304
305305static int dwapb_irq_set_type (struct irq_data * d , u32 type )
@@ -309,7 +309,7 @@ static int dwapb_irq_set_type(struct irq_data *d, u32 type)
309309 irq_hw_number_t bit = irqd_to_hwirq (d );
310310 unsigned long level , polarity , flags ;
311311
312- spin_lock_irqsave (& gc -> bgpio_lock , flags );
312+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
313313 level = dwapb_read (gpio , GPIO_INTTYPE_LEVEL );
314314 polarity = dwapb_read (gpio , GPIO_INT_POLARITY );
315315
@@ -344,7 +344,7 @@ static int dwapb_irq_set_type(struct irq_data *d, u32 type)
344344 dwapb_write (gpio , GPIO_INTTYPE_LEVEL , level );
345345 if (type != IRQ_TYPE_EDGE_BOTH )
346346 dwapb_write (gpio , GPIO_INT_POLARITY , polarity );
347- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
347+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
348348
349349 return 0 ;
350350}
@@ -374,7 +374,7 @@ static int dwapb_gpio_set_debounce(struct gpio_chip *gc,
374374 unsigned long flags , val_deb ;
375375 unsigned long mask = BIT (offset );
376376
377- spin_lock_irqsave (& gc -> bgpio_lock , flags );
377+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
378378
379379 val_deb = dwapb_read (gpio , GPIO_PORTA_DEBOUNCE );
380380 if (debounce )
@@ -383,7 +383,7 @@ static int dwapb_gpio_set_debounce(struct gpio_chip *gc,
383383 val_deb &= ~mask ;
384384 dwapb_write (gpio , GPIO_PORTA_DEBOUNCE , val_deb );
385385
386- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
386+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
387387
388388 return 0 ;
389389}
@@ -738,7 +738,7 @@ static int dwapb_gpio_suspend(struct device *dev)
738738 unsigned long flags ;
739739 int i ;
740740
741- spin_lock_irqsave (& gc -> bgpio_lock , flags );
741+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
742742 for (i = 0 ; i < gpio -> nr_ports ; i ++ ) {
743743 unsigned int offset ;
744744 unsigned int idx = gpio -> ports [i ].idx ;
@@ -765,7 +765,7 @@ static int dwapb_gpio_suspend(struct device *dev)
765765 dwapb_write (gpio , GPIO_INTMASK , ~ctx -> wake_en );
766766 }
767767 }
768- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
768+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
769769
770770 clk_bulk_disable_unprepare (DWAPB_NR_CLOCKS , gpio -> clks );
771771
@@ -785,7 +785,7 @@ static int dwapb_gpio_resume(struct device *dev)
785785 return err ;
786786 }
787787
788- spin_lock_irqsave (& gc -> bgpio_lock , flags );
788+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
789789 for (i = 0 ; i < gpio -> nr_ports ; i ++ ) {
790790 unsigned int offset ;
791791 unsigned int idx = gpio -> ports [i ].idx ;
@@ -812,7 +812,7 @@ static int dwapb_gpio_resume(struct device *dev)
812812 dwapb_write (gpio , GPIO_PORTA_EOI , 0xffffffff );
813813 }
814814 }
815- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
815+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
816816
817817 return 0 ;
818818}
0 commit comments