[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871qizl771.wl-maz@kernel.org>
Date: Mon, 29 May 2023 12:15:30 +0100
From: Marc Zyngier <maz@...nel.org>
To: Biju Das <biju.das.jz@...renesas.com>
Cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Zheng Wang <zyytlz.wz@....com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@...esas.com>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@...renesas.com>,
"linux-renesas-soc@...r.kernel.org"
<linux-renesas-soc@...r.kernel.org>
Subject: Re: [PATCH] usb: gadget: udc: renesas_usb3: Fix RZ/V2M {modprobe,bind} error
On Mon, 29 May 2023 11:03:27 +0100,
Biju Das <biju.das.jz@...renesas.com> wrote:
>
> > Do you understand the meaning of the "dev" parameter you pass to
> > devm_request_irq()?
>
> Yes, the resource is managed with particular device.
So what does it tell you about the life cycle of the interrupt you
request with the *wrong* device?
> I should not use devm_request_irq here. rather should use
> request_irq and free_irq during unload with parent device handle.
No, that's just papering over the real issue. You should just get the
driver that handles the interrupt to request it. Anything else is a
design bug.
M.
--
Without deviation from the norm, progress is not possible.
Powered by blists - more mailing lists