@@ -242,9 +242,9 @@ static void dwapb_irq_ack(struct irq_data *d)
242242 u32 val = BIT (irqd_to_hwirq (d ));
243243 unsigned long flags ;
244244
245- spin_lock_irqsave (& gc -> bgpio_lock , flags );
245+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
246246 dwapb_write (gpio , GPIO_PORTA_EOI , val );
247- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
247+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
248248}
249249
250250static void dwapb_irq_mask (struct irq_data * d )
@@ -254,10 +254,10 @@ static void dwapb_irq_mask(struct irq_data *d)
254254 unsigned long flags ;
255255 u32 val ;
256256
257- spin_lock_irqsave (& gc -> bgpio_lock , flags );
257+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
258258 val = dwapb_read (gpio , GPIO_INTMASK ) | BIT (irqd_to_hwirq (d ));
259259 dwapb_write (gpio , GPIO_INTMASK , val );
260- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
260+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
261261}
262262
263263static void dwapb_irq_unmask (struct irq_data * d )
@@ -267,10 +267,10 @@ static void dwapb_irq_unmask(struct irq_data *d)
267267 unsigned long flags ;
268268 u32 val ;
269269
270- spin_lock_irqsave (& gc -> bgpio_lock , flags );
270+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
271271 val = dwapb_read (gpio , GPIO_INTMASK ) & ~BIT (irqd_to_hwirq (d ));
272272 dwapb_write (gpio , GPIO_INTMASK , val );
273- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
273+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
274274}
275275
276276static void dwapb_irq_enable (struct irq_data * d )
@@ -280,11 +280,11 @@ static void dwapb_irq_enable(struct irq_data *d)
280280 unsigned long flags ;
281281 u32 val ;
282282
283- spin_lock_irqsave (& gc -> bgpio_lock , flags );
283+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
284284 val = dwapb_read (gpio , GPIO_INTEN );
285285 val |= BIT (irqd_to_hwirq (d ));
286286 dwapb_write (gpio , GPIO_INTEN , val );
287- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
287+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
288288}
289289
290290static void dwapb_irq_disable (struct irq_data * d )
@@ -294,11 +294,11 @@ static void dwapb_irq_disable(struct irq_data *d)
294294 unsigned long flags ;
295295 u32 val ;
296296
297- spin_lock_irqsave (& gc -> bgpio_lock , flags );
297+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
298298 val = dwapb_read (gpio , GPIO_INTEN );
299299 val &= ~BIT (irqd_to_hwirq (d ));
300300 dwapb_write (gpio , GPIO_INTEN , val );
301- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
301+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
302302}
303303
304304static int dwapb_irq_set_type (struct irq_data * d , u32 type )
@@ -308,7 +308,7 @@ static int dwapb_irq_set_type(struct irq_data *d, u32 type)
308308 irq_hw_number_t bit = irqd_to_hwirq (d );
309309 unsigned long level , polarity , flags ;
310310
311- spin_lock_irqsave (& gc -> bgpio_lock , flags );
311+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
312312 level = dwapb_read (gpio , GPIO_INTTYPE_LEVEL );
313313 polarity = dwapb_read (gpio , GPIO_INT_POLARITY );
314314
@@ -343,7 +343,7 @@ static int dwapb_irq_set_type(struct irq_data *d, u32 type)
343343 dwapb_write (gpio , GPIO_INTTYPE_LEVEL , level );
344344 if (type != IRQ_TYPE_EDGE_BOTH )
345345 dwapb_write (gpio , GPIO_INT_POLARITY , polarity );
346- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
346+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
347347
348348 return 0 ;
349349}
@@ -373,7 +373,7 @@ static int dwapb_gpio_set_debounce(struct gpio_chip *gc,
373373 unsigned long flags , val_deb ;
374374 unsigned long mask = BIT (offset );
375375
376- spin_lock_irqsave (& gc -> bgpio_lock , flags );
376+ raw_spin_lock_irqsave (& gc -> bgpio_lock , flags );
377377
378378 val_deb = dwapb_read (gpio , GPIO_PORTA_DEBOUNCE );
379379 if (debounce )
@@ -382,7 +382,7 @@ static int dwapb_gpio_set_debounce(struct gpio_chip *gc,
382382 val_deb &= ~mask ;
383383 dwapb_write (gpio , GPIO_PORTA_DEBOUNCE , val_deb );
384384
385- spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
385+ raw_spin_unlock_irqrestore (& gc -> bgpio_lock , flags );
386386
387387 return 0 ;
388388}
@@ -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