Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
From: Jordan Crouse <jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	abhinavk-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	bzwang-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org,
	dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org
Subject: [PATCH v3 06/10] drm/msm: Make irq_postinstall optional
Date: Mon,  3 Dec 2018 15:47:19 -0700	[thread overview]
Message-ID: <20181203224723.10450-7-jcrouse@codeaurora.org> (raw)
In-Reply-To: <20181203224723.10450-1-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>

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.

v3: No changes

Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
---
 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)
-- 
2.18.0

_______________________________________________
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno

  parent reply	other threads:[~2018-12-03 22:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03 22:47 [PATCH v3 00/10] drm/msm/dpu: cleanups Jordan Crouse
     [not found] ` <20181203224723.10450-1-jcrouse-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2018-12-03 22:47   ` [PATCH v3 01/10] drm/msm/dpu: Remove dpu_dbg Jordan Crouse
2018-12-03 22:47   ` [PATCH v3 02/10] drm/msm/dpu: Remove dpu_crtc_get_mixer_height Jordan Crouse
2018-12-03 22:47   ` [PATCH v3 03/10] drm/msm/dpu: Remove dpu_crtc_is_enabled() Jordan Crouse
2018-12-03 22:47   ` [PATCH v3 05/10] drm/msm/dpu: Cleanup callers of dpu_hw_blk_init Jordan Crouse
2018-12-03 22:47   ` Jordan Crouse [this message]
2018-12-03 22:47   ` [PATCH v3 07/10] drm/msm/dpu: Remove dpu_irq and unused functions Jordan Crouse
2018-12-03 22:47   ` [PATCH v3 08/10] drm/msm/dpu: Cleanup the debugfs functions Jordan Crouse
2018-12-03 22:47   ` [PATCH v3 09/10] drm/msm/dpu: Further cleanups for static inline functions Jordan Crouse
2018-12-04 15:14   ` [PATCH v3 00/10] drm/msm/dpu: cleanups Sean Paul
2018-12-03 22:47 ` [PATCH v3 04/10] drm/msm/dpu: Remove unused functions Jordan Crouse
2018-12-03 22:47 ` [PATCH v3 10/10] drm/msm/dpu: Clean up dpu_media_info.h static inline functions Jordan Crouse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181203224723.10450-7-jcrouse@codeaurora.org \
    --to=jcrouse-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
    --cc=abhinavk-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=bzwang-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=sam-uyr5N9Q2VtJg9hUCZPvPmw@public.gmane.org \
    --cc=seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox