.. | .. |
---|
400 | 400 | reg += 4; |
---|
401 | 401 | } |
---|
402 | 402 | |
---|
403 | | - spin_lock_irqsave(&bank->slock, flags); |
---|
| 403 | + raw_spin_lock_irqsave(&bank->slock, flags); |
---|
404 | 404 | |
---|
405 | 405 | data = readl(reg + type->reg_offset[PINCFG_TYPE_FUNC]); |
---|
406 | 406 | data &= ~(mask << shift); |
---|
407 | 407 | data |= func->val << shift; |
---|
408 | 408 | writel(data, reg + type->reg_offset[PINCFG_TYPE_FUNC]); |
---|
409 | 409 | |
---|
410 | | - spin_unlock_irqrestore(&bank->slock, flags); |
---|
| 410 | + raw_spin_unlock_irqrestore(&bank->slock, flags); |
---|
411 | 411 | } |
---|
412 | 412 | |
---|
413 | 413 | /* enable a specified pinmux by writing to registers */ |
---|
.. | .. |
---|
451 | 451 | width = type->fld_width[cfg_type]; |
---|
452 | 452 | cfg_reg = type->reg_offset[cfg_type]; |
---|
453 | 453 | |
---|
454 | | - spin_lock_irqsave(&bank->slock, flags); |
---|
| 454 | + raw_spin_lock_irqsave(&bank->slock, flags); |
---|
455 | 455 | |
---|
456 | 456 | mask = (1 << width) - 1; |
---|
457 | 457 | shift = pin_offset * width; |
---|
.. | .. |
---|
468 | 468 | *config = PINCFG_PACK(cfg_type, data); |
---|
469 | 469 | } |
---|
470 | 470 | |
---|
471 | | - spin_unlock_irqrestore(&bank->slock, flags); |
---|
| 471 | + raw_spin_unlock_irqrestore(&bank->slock, flags); |
---|
472 | 472 | |
---|
473 | 473 | return 0; |
---|
474 | 474 | } |
---|
.. | .. |
---|
561 | 561 | struct samsung_pin_bank *bank = gpiochip_get_data(gc); |
---|
562 | 562 | unsigned long flags; |
---|
563 | 563 | |
---|
564 | | - spin_lock_irqsave(&bank->slock, flags); |
---|
| 564 | + raw_spin_lock_irqsave(&bank->slock, flags); |
---|
565 | 565 | samsung_gpio_set_value(gc, offset, value); |
---|
566 | | - spin_unlock_irqrestore(&bank->slock, flags); |
---|
| 566 | + raw_spin_unlock_irqrestore(&bank->slock, flags); |
---|
567 | 567 | } |
---|
568 | 568 | |
---|
569 | 569 | /* gpiolib gpio_get callback function */ |
---|
.. | .. |
---|
626 | 626 | unsigned long flags; |
---|
627 | 627 | int ret; |
---|
628 | 628 | |
---|
629 | | - spin_lock_irqsave(&bank->slock, flags); |
---|
| 629 | + raw_spin_lock_irqsave(&bank->slock, flags); |
---|
630 | 630 | ret = samsung_gpio_set_direction(gc, offset, true); |
---|
631 | | - spin_unlock_irqrestore(&bank->slock, flags); |
---|
| 631 | + raw_spin_unlock_irqrestore(&bank->slock, flags); |
---|
632 | 632 | return ret; |
---|
633 | 633 | } |
---|
634 | 634 | |
---|
.. | .. |
---|
640 | 640 | unsigned long flags; |
---|
641 | 641 | int ret; |
---|
642 | 642 | |
---|
643 | | - spin_lock_irqsave(&bank->slock, flags); |
---|
| 643 | + raw_spin_lock_irqsave(&bank->slock, flags); |
---|
644 | 644 | samsung_gpio_set_value(gc, offset, value); |
---|
645 | 645 | ret = samsung_gpio_set_direction(gc, offset, false); |
---|
646 | | - spin_unlock_irqrestore(&bank->slock, flags); |
---|
| 646 | + raw_spin_unlock_irqrestore(&bank->slock, flags); |
---|
647 | 647 | |
---|
648 | 648 | return ret; |
---|
649 | 649 | } |
---|
.. | .. |
---|
1067 | 1067 | bank->eint_offset = bdata->eint_offset; |
---|
1068 | 1068 | bank->name = bdata->name; |
---|
1069 | 1069 | |
---|
1070 | | - spin_lock_init(&bank->slock); |
---|
| 1070 | + raw_spin_lock_init(&bank->slock); |
---|
1071 | 1071 | bank->drvdata = d; |
---|
1072 | 1072 | bank->pin_base = d->nr_pins; |
---|
1073 | 1073 | d->nr_pins += bank->nr_pins; |
---|