Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1144313pxu; Fri, 27 Nov 2020 00:19:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJweiBXx+dPvS9mE5KpnFNJYhAcwmquDf7ZkQzWoGvva3/xcDsnO1EhWoOw18Rl/n5YmVFVQ X-Received: by 2002:a05:6402:31b6:: with SMTP id dj22mr6425875edb.348.1606465169711; Fri, 27 Nov 2020 00:19:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606465169; cv=none; d=google.com; s=arc-20160816; b=d1KCYBFv/E0Y3RijMOSC4UmXrQ2446Xznl6n0n3lHJOBBXvKhlXm9/b4qXqIGoUJF7 0zJrUr76cJN80O/2DgNScJ1iPntjNnqPOANyHCwdEdjZSeE3Ru3Z20PJTNBQMkZe2UtI BCbuH4IrxQsWJDLTafAi3Bc24zm3KU5nvO3d1bb1fwy1n3/KGQCehqwIyIa3Q21NUkSt QD10rI+nnFuaYL8DGaxuaB6FHiMzq+lH3avyKiGOVMG5enqL+K18XosArS1fuvcCcKtR 0AalbINWYoSXacII/ljzsWtxVzSikEI4jghXCrLkFTvqV8cJpxOP9kEmr45v1PKF6Lc8 gzhg== 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=BL1qNR4NMK8cFUOC/RdkTI4UHuUDfGwVM4d58fSuhtQ=; b=TO03rrlVVGsxteQn2bdTLXvK+WjJ8mykNeDa0+8WjQyh/+Rv9hxMTjIVaknA/09tQS HJmkQG7X1w8IIKeAxtnPb+bRQSvLEVsnQq+O3y8esESe5XsMkkOHeHQ+QiKaOhvYtKh3 4Jmrxia/71+P7tGOYe2r+ubroTTttqu8TL3dXKy83egAiC9aPMhoj2BLy9b/qXLV68CF o08iEHNk1gdOfDrgLKVnhrfxqOm98N76xNKh2hD9sQmMxt6Pb7j0Hc8BitEKnlx/tr4M eSrcwZYdM4N/YWyY9GFp5r8uGOGOeNgCRbOSDQ6wOi+CMboOvhDKjqeBtbvI0pxOpz10 tU7Q== 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 d4si4713934ejd.492.2020.11.27.00.19.07; Fri, 27 Nov 2020 00:19:29 -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 S2388350AbgKZMCP (ORCPT + 99 others); Thu, 26 Nov 2020 07:02:15 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:8409 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388163AbgKZMCM (ORCPT ); Thu, 26 Nov 2020 07:02:12 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4Chbvr1nDwz74D6; Thu, 26 Nov 2020 20:01:44 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 26 Nov 2020 20:01:59 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon 0/3] Add the new api to install irq Date: Thu, 26 Nov 2020 20:02:17 +0800 Message-ID: <1606392140-57954-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_dev_alloc and 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. Tian Tao (3): 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 | 34 ++++++++++++++ drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 +- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 56 ++++++++++-------------- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h | 2 +- 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(+), 39 deletions(-) -- 2.7.4