Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3915117pxu; Wed, 9 Dec 2020 04:02:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOWjyRlVuGktcBenorZckcwmcAzqfNz3Ae6Qg9wZOVIHxDaOJ4KUbGL7FDUF4pyJbD61JT X-Received: by 2002:aa7:d485:: with SMTP id b5mr1592470edr.214.1607515336778; Wed, 09 Dec 2020 04:02:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607515336; cv=none; d=google.com; s=arc-20160816; b=qxl9BprcAfGTU7ak37XFF/GsaNUNZGjeffNWLds3SSXjcqUiAec2lJ+7DRii6qapQU eoom0tURByHFhZ7+ixn2TQUHJ9cNrPB2YagEgd5VgBXTT7Moh3J2v9HAp0QTNeysCGDN LhSCTZC1bTihs8PQRMMhaiwenZM/DFJ8Y8pG9hzVUZM9tB5pUwKvPjlu8khpwVtzwPhz r3yvMnU+BZsF3j5i8LRCCWPjyjVWkMpyg63luA+Mrn5wAc5CKgjL2y1bZ3Brpvb3YZVn FR3YmKc7pXEk0t0MDKjzgm3MZCB4eRsWlbuP9JpHxzbBxwAWBGZwM1/8k5RWwStPlWSU pkOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Nac73jJQqwYAxYov3s+USnMs5pJwJ4HIU6DRKUk/10I=; b=zIIo88EbceChh3dllLWasVzG214No2tjm0PVvreKVuZ0tH3x2vyNjpfshvGvuIWhWr 0r13USQORtRe4bWB+xDGwyC9LK9MKv7mk0bv7Fr3sUSQuDR7v3kvTrfHfFvxDSpkSjna 9v0wzY53WY3sKTaIQY6sgG5gWW6iFkZ6+p6ahVxXKvVf1iOzws/nsxnSDy/Im4W1Nthm eUPAU9o0LLXnuBzILKKr9G0jjbfKTdkFsPqHkZOqMvJ/IzFwxbrvqM5HbInC0QdCmfy2 wNH2xYcqpD0iYAHZsV5CmPEt6QKq/gI4K3T2FBoN/mm/5oOoqzTcRwSidt13ONsBhi2m O+Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=DShSsknG; 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 q23si829316edg.55.2020.12.09.04.01.52; Wed, 09 Dec 2020 04:02:16 -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=DShSsknG; 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 S1731147AbgLIL4z (ORCPT + 99 others); Wed, 9 Dec 2020 06:56:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730991AbgLIL4z (ORCPT ); Wed, 9 Dec 2020 06:56:55 -0500 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE4D3C0613CF for ; Wed, 9 Dec 2020 03:56:14 -0800 (PST) Received: by mail-ot1-x341.google.com with SMTP id q25so1041645otn.10 for ; Wed, 09 Dec 2020 03:56:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Nac73jJQqwYAxYov3s+USnMs5pJwJ4HIU6DRKUk/10I=; b=DShSsknGSTcO5q371O1CRAExcAHKUwPxDf9oK9toeCgNoBIYCyTa75t5R+XoxYkFFB 8qwuVPODWJ2c0F/Tsf7eEOd7Rbq5HErv2QRSQSBTD8yPfJ/KYl1WzNxgp5ACaz3qETgb OJt6GC1HR7wF9PRpFJ22c2EgAC5PS+slv3UPc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Nac73jJQqwYAxYov3s+USnMs5pJwJ4HIU6DRKUk/10I=; b=QGB/ycsOK4S2FWEEoAnBVY89GF2ns5HyRogMc+Y9C93+NOqBV+o4V2z6jVRDZSOxH8 8aYKogc1SNaTYQmUSgk8f83WNI10zR/psEmXr43zqARW8a7Rws7J/59wjnoImcGWzHbp 2Az1CES9mS1wqynf5/Y0K+nXyxpG8l9+pSrD7CUBPmDjAf3ptkucU9mk1rs1BHkx/rmN ebqqFWN4V5VZtf55CgG/4LJdQ1I/98ogMVl4+YCOXzDtBNsE8WY6ghcuqwRvSRqiQ3/1 KdIEfvY1Cr3w2w+wD2Kvcj1T6lJNacaNkOIM0aX20TmnWpJi3+fhfo1DsXbUMD7hksyk 2/VA== X-Gm-Message-State: AOAM532r/GwI0qpcrJi5PCPY7XxOeaatQtZsDzl9UCX3gNNQqvR40Ou+ caQp8Wi8ix9cQ4EKsw0aKD/cufYqh7MQ56B4UWgaRw== X-Received: by 2002:a9d:23ca:: with SMTP id t68mr1378061otb.281.1607514974241; Wed, 09 Dec 2020 03:56:14 -0800 (PST) MIME-Version: 1.0 References: <1607413859-63365-1-git-send-email-tiantao6@hisilicon.com> <20201209004828.GN401619@phenom.ffwll.local> <06c1dee7-488d-8a74-a55c-74043cb060cd@ti.com> In-Reply-To: <06c1dee7-488d-8a74-a55c-74043cb060cd@ti.com> From: Daniel Vetter Date: Wed, 9 Dec 2020 12:56:03 +0100 Message-ID: Subject: Re: [PATCH] drm/tidss: Use the new api devm_drm_irq_install To: Tomi Valkeinen Cc: Tian Tao , Jyri Sarha , Dave Airlie , dri-devel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2020 at 12:29 PM Tomi Valkeinen wrote: > > On 09/12/2020 02:48, Daniel Vetter wrote: > > 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. > > Right, I don't think this works. tidss irq_uninstall uses runtime_get/put, which needs to happen > before pm_runtime_disable. With devm_drm_irq_install that's not the case. Hm I don't spot devm_ versions of these, surely we're not the only ones with this problem? -Daniel > Tomi > > -- > Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. > Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch