Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4392074pxu; Tue, 1 Dec 2020 03:59:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXpd3QkIHrIn0W8OFuBjNYKEQufiXPx7WbioTHoRtybRNB0p4B8l4dnOcuSGPWcmGTcmpW X-Received: by 2002:a17:906:aac1:: with SMTP id kt1mr2490279ejb.329.1606823952176; Tue, 01 Dec 2020 03:59:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606823952; cv=none; d=google.com; s=arc-20160816; b=C199rwxV3ulQ+oXOwmCUGEtK/K2xkAp19+zmSB4z9OBV4rQYcckKI8OcPb7wrFaDrh ga7jXw19qj70yR32ooKM3ZegjvSLQcWPtPXwyAWWRgWxXERe796Bc08o6egaEycY0s36 AC4+uc/58yRFA0yYwLa++PsKHO3GcCw40oEs4VVFVhsePkh+NvJjeYHJKzGStRUqs9XB tD5Mr0K3PbrSKiEvUNcDMbFBpUE2EeITWlyDYnH/lU89J3pRyNyM2gzj3jQJKiWhMPA8 lFsUmGtJvP1v/lntJT0KVRIwg0KoNsFevzK4JPzv6KSCx2kYgveyFbScYHSjEqRz1lqN VEgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=bWrm6h7HjafvbeN05zN/x5130CcqUatAdOxkvt3lSHY=; b=OQdX1g5yoNVepvtlV+Qmw4LvPzuxHUn3qcqR6yqNNey2z4sW6gMpP1cFXbGryJXtkc ALv/r5EKrC/dGkFnUSEWzIrwU64fgQ4iMbswp2YGu+ZIg3CwalXveGcGhbSNCAi0HI7o mqasvGGDt4vAhHVnyMKzFrmP4t/bCKw1g2loBa8Rm+7IsGliPo63/CHckxKoT1hWl7yb MjqejC2AW9p8tuBLloNC4IKFXsg7k720cyfgW5WVIfbaCzRqZESxc4oAVDKYkpneOHJ/ 9o/cVbcQY3Hs0ZTAyO0vSPX/c9c8j/xO7D34cyks4qg9/FB7QadFMHt+cY4Emh9FksAC IPDg== ARC-Authentication-Results: i=1; mx.google.com; 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 l4si973570edj.278.2020.12.01.03.58.48; Tue, 01 Dec 2020 03:59:12 -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; 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 S2388028AbgLAL4Z (ORCPT + 99 others); Tue, 1 Dec 2020 06:56:25 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8170 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727183AbgLAL4Y (ORCPT ); Tue, 1 Dec 2020 06:56:24 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4ClgX42jrnz15Vb1; Tue, 1 Dec 2020 19:55:16 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Tue, 1 Dec 2020 19:55:36 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 0/4] Add the new api to install irq Date: Tue, 1 Dec 2020 19:55:50 +0800 Message-ID: <1606823754-52451-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org patch #1 is code refactorings to use devm_drm_irq_install. patch #2 add the new api to install irq, patch #3 is hibmc driver uses the newly added api to register interrupts. Changes since v1: Splits the original patch #1 into two patches,rewrite to_hibmc_drm_private() function in patch #2.Fix the comment error in patch #3, and use devm_add_action_or_reset instead of devm_add_action. Tian Tao (4): drm/hisilicon: Assgin local variable to drm_device drm/hisilicon: Code refactoring for hibmc_drm_drv drm/irq: Add the new api to install irq drm/hisilicon: Use the new api devm_drm_irq_install drivers/gpu/drm/drm_irq.c | 35 ++++++++++++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 51 ++++++++++-------------- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 4 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c | 8 ++-- include/drm/drm_irq.h | 2 +- 7 files changed, 67 insertions(+), 37 deletions(-) -- 2.7.4