From patchwork Mon Nov 5 23:30:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jordan Crouse X-Patchwork-Id: 10669449 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 41A4B181D for ; Mon, 5 Nov 2018 23:31:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 390952A021 for ; Mon, 5 Nov 2018 23:31:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D9152A025; Mon, 5 Nov 2018 23:31:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D81ED2A029 for ; Mon, 5 Nov 2018 23:31:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726368AbeKFIxl (ORCPT ); Tue, 6 Nov 2018 03:53:41 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:57222 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbeKFIxl (ORCPT ); Tue, 6 Nov 2018 03:53:41 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7F3A36169A; Mon, 5 Nov 2018 23:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541460690; bh=iTyc5dr17Xlnj5bgPFaro3+pf9tNzjGwL+r3NV5uslQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b91Ry1b5qw7ynRZHwpJc1JjjBrj8UyDLsh1WgPHQFbbqU60AqAG7MB9dA3Z/SXTh/ /izAZmjRO8+hpqufu+vxTs+lB2JLB1fJ/tIuNGfialUawu88RExuxwYgKWP9ugb8aE 0bgdYOz+fZysynjVgWv5GSYFL+Ciooo+UJPI+hYs= Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1616961672; Mon, 5 Nov 2018 23:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541460675; bh=iTyc5dr17Xlnj5bgPFaro3+pf9tNzjGwL+r3NV5uslQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pMrpPJvRaCiKp9xsdA4gbVKEGQlcs+Hp/7OyJbDexaKZFY5YbZ7ThRDnvcNimCvmQ kt+xfhxmh8ttgl424uEiJK3PqqyQ9O+yXkrQiyh7kkSnTVg592VlBsgENNy3Ah4agZ Q5eno8GOnfZ5rb0Nx9FLyyH2r2C7Yg153cTDrGyo= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1616961672 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org From: Jordan Crouse To: freedreno@lists.freedesktop.org Cc: linux-arm-msm@vger.kernel.org, seanpaul@chromium.org, abhinavk@codeaurora.org, dri-devel@lists.freedesktop.org, bzwang@chromium.org, sam@ravnborg.org Subject: [PATCH 07/11] drm/msm: Make irq_postinstall optional Date: Mon, 5 Nov 2018 16:30:59 -0700 Message-Id: <20181105233103.7657-8-jcrouse@codeaurora.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20181105233103.7657-1-jcrouse@codeaurora.org> References: <20181105233103.7657-1-jcrouse@codeaurora.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allow the KMS operation 'irq_postinstall' to be optional so that the target display drivers don't need to define a dummy function if they don't need one. Signed-off-by: Jordan Crouse Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/msm_drv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 9c9f7ff6960b..d8af97407b3c 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -724,7 +724,11 @@ static int msm_irq_postinstall(struct drm_device *dev) struct msm_drm_private *priv = dev->dev_private; struct msm_kms *kms = priv->kms; BUG_ON(!kms); - return kms->funcs->irq_postinstall(kms); + + if (kms->funcs->irq_postinstall) + return kms->funcs->irq_postinstall(kms); + + return 0; } static void msm_irq_uninstall(struct drm_device *dev)