Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp725471pxu; Wed, 2 Dec 2020 01:31:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJynREkTt4Q/wlaE2kjeqsNpNRv/FcBycAlSwZ3qNQugyH5Qn/+1PIVT3uzwz3b1Coh0aAxP X-Received: by 2002:a17:907:961b:: with SMTP id gb27mr1383839ejc.313.1606901512254; Wed, 02 Dec 2020 01:31:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606901512; cv=none; d=google.com; s=arc-20160816; b=Xs0P9WuwQXujprf+kXxvZqvz9QFMVDalF/7Nl/JwqECVHq5FcWjT4y+HTnz5l3rllp VRfQlY9RN7/f3VzVIQS6YW6mUD4Xu1K1wBbTrpwuXkBN70FpNuvP4cvkwpCw4cK3IjfU QqV0s4ilQg7nY7hlSOLMoojBWVIc4PEh4Ie3swmxpaZ5Q4+4CcFC2b2oX09Ww7BO7kLJ KUiUH2D9+C+Tj8JEwJeABz1u7ukC9c9o6yJtErFfXOEL+wMatpf6zGQ840wjtbtTR+6f HRaAXjMMTXIOawXnhZcPAMT3ysMtQTcBZis1k7hozc2Q/r0FQodnl8e40c4FPxYKABot GL9A== 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=/JnLXEdSKQadiseLI82ScQ8JBr9JuraP8b/vtIsphCE=; b=TFu6Nh4o0piXMxUyl0398XpInEUf5aHdq0ooX66qEep4obLcdkvhIotuv9aZBuD8M0 jFVHMo7h+YGKKZmSSrx81iy2x19rdQOIH70iR9DihC8IxO4MZDKq3qGjZKOX8btItXoV 68ts+XLtKzcCG43/xL67xGyKyaoDj9lvGwemOgtzF5RM8tEPwM6c1Lf8VNqcBXoi1f/C JLLu37kN0lV5ZPpQSWkfTiCq346rPd0roYkfz+fLiTpEBnqeSeB8N9IWuo4f5sC96kqT Ac8HtWgIrOKepwAmoAZJ6qXCLs2+gnplDkS4GJQkhKrx5wJnVNdOdzsEYMM/ajXz52on P1Pg== 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 q20si664324edv.517.2020.12.02.01.31.28; Wed, 02 Dec 2020 01:31:52 -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 S1729304AbgLBJ1c (ORCPT + 99 others); Wed, 2 Dec 2020 04:27:32 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9091 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728360AbgLBJ1b (ORCPT ); Wed, 2 Dec 2020 04:27:31 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CmD9R4kk2zLyXN; Wed, 2 Dec 2020 17:26:03 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Wed, 2 Dec 2020 17:26:34 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH drm/hisilicon v2 0/3] Add the new api to install irq Date: Wed, 2 Dec 2020 17:26:49 +0800 Message-ID: <1606901212-8214-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. 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: The devm_drm_irq_install function returns devm_add_action_or_reset directly without checking that devm_add_action_or_reset returns the correct value. 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 | 32 +++++++++++++++ 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, 64 insertions(+), 37 deletions(-) -- 2.7.4