[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c7531d52-62ba-cc4c-a8ea-2fd126e3b0b3@redhat.com>
Date: Thu, 27 Jan 2022 12:48:05 +0100
From: Hans de Goede <hdegoede@...hat.com>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
greybus-dev@...ts.linaro.org, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-usb@...r.kernel.org, netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
Alex Elder <elder@...nel.org>, Arnd Bergmann <arnd@...db.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jakub Kicinski <kuba@...nel.org>,
Johan Hovold <johan@...nel.org>,
Lee Jones <lee.jones@...aro.org>,
Rui Miguel Silva <rmfrfs@...il.com>,
Thomas Gleixner <tglx@...utronix.de>,
UNGLinuxDriver@...rochip.com, Wolfram Sang <wsa@...nel.org>,
Woojung Huh <woojung.huh@...rochip.com>
Subject: Re: [PATCH 3/7] i2c: cht-wc: Use generic_handle_irq_safe().
Hi,
On 1/27/22 12:32, Sebastian Andrzej Siewior wrote:
> Instead of manually disabling interrupts before invoking use
> generic_handle_irq() which can be invoked with enabled and disabled
> interrupts.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Thanks, patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede@...hat.com>
Regards,
Hans
> ---
> drivers/i2c/busses/i2c-cht-wc.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/i2c/busses/i2c-cht-wc.c b/drivers/i2c/busses/i2c-cht-wc.c
> index 1cf68f85b2e11..8ccf0c928bb44 100644
> --- a/drivers/i2c/busses/i2c-cht-wc.c
> +++ b/drivers/i2c/busses/i2c-cht-wc.c
> @@ -99,15 +99,8 @@ static irqreturn_t cht_wc_i2c_adap_thread_handler(int id, void *data)
> * interrupt handler as well, so running the client irq handler from
> * this thread will cause things to lock up.
> */
> - if (reg & CHT_WC_EXTCHGRIRQ_CLIENT_IRQ) {
> - /*
> - * generic_handle_irq expects local IRQs to be disabled
> - * as normally it is called from interrupt context.
> - */
> - local_irq_disable();
> - generic_handle_irq(adap->client_irq);
> - local_irq_enable();
> - }
> + if (reg & CHT_WC_EXTCHGRIRQ_CLIENT_IRQ)
> + generic_handle_irq_safe(adap->client_irq);
>
> return IRQ_HANDLED;
> }
>
Powered by blists - more mailing lists