Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3597278pxu; Tue, 8 Dec 2020 16:52:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxb4mkRphqAi3aT7Z3KM3RRSvsw9rfIIhuma0qviwfa/WReViIWb3qKOx/34peQr8EdLpAl X-Received: by 2002:a17:906:b2d1:: with SMTP id cf17mr281022ejb.281.1607475120338; Tue, 08 Dec 2020 16:52:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607475120; cv=none; d=google.com; s=arc-20160816; b=WYcOYOEXbcDObN+ySGzUBaorDIPry9gMFP2bYWlNK9Tz88qPgGGWfLW8SDyDPYWnTQ vRB8T8WuvkSe6Gqps30V5EY3TqmCk6rM732qZfrmPoBUYIV7fySchzICDsgsxfhMByp2 z5C22aQlxUE1XGm6HYwsiK2vH3ICwwmHs1XkozPc2QEK3VNDVazgwNv2jn5qY0Z7QsDG Hs8u4B9ea4DWWDyDGPHY+qDWTaUVP5tr9zVBlmxcXQYaLnCX6XTcFY/r+ZmiIqgpRtbh kdQQFzg9JMsGs81MzDOZvVzNQi7NyG/YnOUNWLNoOm02hgw5r/x+eEBh+KTgjyZYrhrd f8xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ox5zQISWwNrJYCnv3rEN+/KGNGz8F1piSUSaeuA2Q3I=; b=Hu7mpkodIrQSKpzP0vspMNUA1qQIkecdneaG2IPu3waRYR9x5jqWu9n7jCh3t4xOX8 bIOEWOtgRuYNzg0b/EUkuSQ4UbrqJzEzNSM8lKM/FFhTDtp4vSVCE1rkkhdCFWDvYBLY vOYcrN/32BFSc0OMOVPnXccEgVVy8nTb9TQ/zGU1JqP9bVLuj8yAefHdJjf1G5Mpvayv 4cblauCVC8RlJ7Cpift+LFJHv2NFrB2QQ6ugGjV8G0bdC44Q4FGkxVqM50/7Gf1VOLiD n6+RSQQsGmvdvobqbbKdQbsGQmzPyOefwxmILyts0rk+qPcX+hXkaefCtye6/rUa++wO pYxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=bHVjRyMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si82421edp.516.2020.12.08.16.51.37; Tue, 08 Dec 2020 16:52:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=bHVjRyMZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730115AbgLIAtT (ORCPT + 99 others); Tue, 8 Dec 2020 19:49:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729551AbgLIAtS (ORCPT ); Tue, 8 Dec 2020 19:49:18 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 842E6C0613CF for ; Tue, 8 Dec 2020 16:48:32 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id r14so194359wrn.0 for ; Tue, 08 Dec 2020 16:48:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=ox5zQISWwNrJYCnv3rEN+/KGNGz8F1piSUSaeuA2Q3I=; b=bHVjRyMZ0VeHC3si/pP0OMe1oFzKs7I81FuHfido5pN9wn7PUofGne0IIZaH5o2sab pwTIwHSE6jd3pHBOzv6zK3g1CWJRy89bx4omDlpbn0puAvI+gBVm+Gz+0RvFbriXhPep 9XnGYaRlinXQos1aTJUEktZUSASEVqaczsfJU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=ox5zQISWwNrJYCnv3rEN+/KGNGz8F1piSUSaeuA2Q3I=; b=YfTAN/vruv2jWN0fQXTcECEbJ09D/ySnN5V9P9W5jhNa6e2V/lwgTFlcSZAyaeE6bw 7cRkJFqHWxoU+DABwTZMnQYbUZpcLdqyqkaEW/8G6RgNLATjcbB8lg9OAdHDbKOKi2Bu x/ya9+rv8aBYik5v2QwclXJTTSlvlKGf8tC43BtUcjyzwqPzRTP+krqThMj7KkpN1ctq Rrwk7toovR/t+D7F7F8ICpgqf3RoVuI+i9gT19zrSxCkeR8F7NiNocNyjVTMsCJBtalw 9caH8kF0kJYkoPFp9yLfk3tfh0ejhRINiwusSZ5BmDBCD6y/jExh3+Y84WutPAtskDlY 3uNg== X-Gm-Message-State: AOAM530kUpm/Ii44y2O8ps8s9tisVpNpWGbnlemUHE5MXhQc4qUloP4r VzdGdLvV1tUyR/mU7eZ/XPE35dJ46vAlRQ== X-Received: by 2002:adf:f0c3:: with SMTP id x3mr668795wro.327.1607474911289; Tue, 08 Dec 2020 16:48:31 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id 64sm18206wmd.12.2020.12.08.16.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 16:48:30 -0800 (PST) Date: Wed, 9 Dec 2020 01:48:28 +0100 From: Daniel Vetter To: Tian Tao Cc: jsarha@ti.com, tomi.valkeinen@ti.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/tidss: Use the new api devm_drm_irq_install Message-ID: <20201209004828.GN401619@phenom.ffwll.local> Mail-Followup-To: Tian Tao , jsarha@ti.com, tomi.valkeinen@ti.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <1607413859-63365-1-git-send-email-tiantao6@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1607413859-63365-1-git-send-email-tiantao6@hisilicon.com> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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