2023-09-13 06:11:32

by Andrew Lunn

[permalink] [raw]
Subject: Re: [RFC PATCH net-next 2/6] net: ethernet: add mac-phy interrupt support with reset complete handling

> Ok. If I understand correctly, I have to use devm_request_threaded_irq()
> instead of devm_request_irq() and let the thread handler registered with
> the devm_request_threaded_irq() function to perform interrupt activity
> directly?

Yes. I've not looked at all the patches yet, but if the work queue is
not used for anything else, you should be able to remove it, and let
the IRQ core handle all the threading for you.

Andrew


2023-09-19 16:07:18

by Parthiban Veerasooran

[permalink] [raw]
Subject: Re: [RFC PATCH net-next 2/6] net: ethernet: add mac-phy interrupt support with reset complete handling

Hi Andrew,

On 13/09/23 7:49 am, Andrew Lunn wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
>> Ok. If I understand correctly, I have to use devm_request_threaded_irq()
>> instead of devm_request_irq() and let the thread handler registered with
>> the devm_request_threaded_irq() function to perform interrupt activity
>> directly?
>
> Yes. I've not looked at all the patches yet, but if the work queue is
> not used for anything else, you should be able to remove it, and let
> the IRQ core handle all the threading for you.
Sure, will implement it. Thanks.

Best Regards,
Parthiban V
>
> Andrew
>