[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201209004828.GN401619@phenom.ffwll.local>
Date: Wed, 9 Dec 2020 01:48:28 +0100
From: Daniel Vetter <daniel@...ll.ch>
To: Tian Tao <tiantao6@...ilicon.com>
Cc: jsarha@...com, tomi.valkeinen@...com, airlied@...ux.ie,
daniel@...ll.ch, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/tidss: Use the new api devm_drm_irq_install
On Tue, Dec 08, 2020 at 03:50:59PM +0800, Tian Tao wrote:
> Use devm_drm_irq_install to register interrupts so that
> drm_irq_uninstall is not needed to be called.
>
> Signed-off-by: Tian Tao <tiantao6@...ilicon.com>
There's another drm_irq_install in the error path. But I'm not sure this
is safe since you're chaning the order in which things get cleaned up now.
So leaving this up to Tomi.
-Daniel
> ---
> drivers/gpu/drm/tidss/tidss_drv.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/tidss/tidss_drv.c b/drivers/gpu/drm/tidss/tidss_drv.c
> index 66e3c86e..48e1f9d 100644
> --- a/drivers/gpu/drm/tidss/tidss_drv.c
> +++ b/drivers/gpu/drm/tidss/tidss_drv.c
> @@ -173,7 +173,7 @@ static int tidss_probe(struct platform_device *pdev)
> goto err_runtime_suspend;
> }
>
> - ret = drm_irq_install(ddev, irq);
> + ret = devm_irq_install(ddev, irq);
> if (ret) {
> dev_err(dev, "drm_irq_install failed: %d\n", ret);
> goto err_runtime_suspend;
> @@ -219,8 +219,6 @@ static int tidss_remove(struct platform_device *pdev)
>
> drm_atomic_helper_shutdown(ddev);
>
> - drm_irq_uninstall(ddev);
> -
> #ifndef CONFIG_PM
> /* If we don't have PM, we need to call suspend manually */
> dispc_runtime_suspend(tidss->dispc);
> --
> 2.7.4
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Powered by blists - more mailing lists