lkml.org 
[lkml]   [2022]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 08/15] gpio: ixp4xx: use raw lock for bgpio_lock
    Date
    bgpio_lock is changed to raw lock, fellow the header change

    Signed-off-by: Schspa Shi <schspa@gmail.com>
    ---
    drivers/gpio/gpio-ixp4xx.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/drivers/gpio/gpio-ixp4xx.c b/drivers/gpio/gpio-ixp4xx.c
    index b3b050604e0b..6b184502fa3f 100644
    --- a/drivers/gpio/gpio-ixp4xx.c
    +++ b/drivers/gpio/gpio-ixp4xx.c
    @@ -128,7 +128,7 @@ static int ixp4xx_gpio_irq_set_type(struct irq_data *d, unsigned int type)
    int_reg = IXP4XX_REG_GPIT1;
    }

    - spin_lock_irqsave(&g->gc.bgpio_lock, flags);
    + raw_spin_lock_irqsave(&g->gc.bgpio_lock, flags);

    /* Clear the style for the appropriate pin */
    val = __raw_readl(g->base + int_reg);
    @@ -147,7 +147,7 @@ static int ixp4xx_gpio_irq_set_type(struct irq_data *d, unsigned int type)
    val |= BIT(d->hwirq);
    __raw_writel(val, g->base + IXP4XX_REG_GPOE);

    - spin_unlock_irqrestore(&g->gc.bgpio_lock, flags);
    + raw_spin_unlock_irqrestore(&g->gc.bgpio_lock, flags);

    /* This parent only accept level high (asserted) */
    return irq_chip_set_type_parent(d, IRQ_TYPE_LEVEL_HIGH);
    --
    2.24.3 (Apple Git-128)
    \
     
     \ /
      Last update: 2022-04-17 18:54    [W:4.657 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site