dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 17/42] drm/omap: Add dispc_mgr_get_supported_outputs()
Date: Mon, 07 Mar 2016 10:47:40 +0200	[thread overview]
Message-ID: <5379872.0MqFkrVTb2@avalon> (raw)
In-Reply-To: <1456161048-21240-18-git-send-email-tomi.valkeinen@ti.com>

Hi Tomi,

Thank you for the patch.

On Monday 22 February 2016 19:10:23 Tomi Valkeinen wrote:
> We are removing the use of the 'struct omap_overlay_manager' from
> omapdrm, and one part of that is removing the use of
> mgr->supported_outputs field.
> 
> This patch adds dispc_mgr_get_supported_outputs() function which can be
> used instead of mgr->supported_outputs. omap_crtc.c is changed to use
> the new function.
> 
> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
> ---
>  drivers/gpu/drm/omapdrm/dss/dispc.c   | 6 ++++++
>  drivers/gpu/drm/omapdrm/dss/omapdss.h | 2 ++
>  drivers/gpu/drm/omapdrm/omap_crtc.c   | 2 +-
>  3 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/dss/dispc.c
> b/drivers/gpu/drm/omapdrm/dss/dispc.c index a4274dca384a..a5940892a788
> 100644
> --- a/drivers/gpu/drm/omapdrm/dss/dispc.c
> +++ b/drivers/gpu/drm/omapdrm/dss/dispc.c
> @@ -2910,6 +2910,12 @@ bool dispc_ovl_enabled(enum omap_plane plane)
>  }
>  EXPORT_SYMBOL(dispc_ovl_enabled);
> 
> +enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel
> channel)
> +{
> +	return dss_feat_get_supported_outputs(channel);
> +}

Wouldn't it make sense to turn this into a static inline function, as it's a 
one-liner ?

> +EXPORT_SYMBOL(dispc_mgr_get_supported_outputs);
> +
>  void dispc_mgr_enable(enum omap_channel channel, bool enable)
>  {
>  	mgr_fld_write(channel, DISPC_MGR_FLD_ENABLE, enable);
> diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h
> b/drivers/gpu/drm/omapdrm/dss/omapdss.h index 7712ffef2836..0a213489f133
> 100644
> --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h
> +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h
> @@ -58,6 +58,8 @@ int dispc_ovl_setup(enum omap_plane plane, const struct
> omap_overlay_info *oi, bool replication, const struct omap_video_timings
> *mgr_timings, bool mem_to_mem);
> 
> +enum omap_dss_output_id dispc_mgr_get_supported_outputs(enum omap_channel
> channel); +
>  struct dss_mgr_ops {
>  	int (*connect)(struct omap_overlay_manager *mgr,
>  		struct omap_dss_device *dst);
> diff --git a/drivers/gpu/drm/omapdrm/omap_crtc.c
> b/drivers/gpu/drm/omapdrm/omap_crtc.c index 280d80781635..b1ed18bf1b1b
> 100644
> --- a/drivers/gpu/drm/omapdrm/omap_crtc.c
> +++ b/drivers/gpu/drm/omapdrm/omap_crtc.c
> @@ -108,7 +108,7 @@ static int omap_crtc_dss_connect(struct
> omap_overlay_manager *mgr, if (mgr->output)
>  		return -EINVAL;
> 
> -	if ((mgr->supported_outputs & dst->id) == 0)
> +	if ((dispc_mgr_get_supported_outputs(mgr->id) & dst->id) == 0)
>  		return -EINVAL;
> 
>  	dst->manager = mgr;

-- 
Regards,

Laurent Pinchart

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2016-03-07  8:47 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-22 17:10 [PATCH 00/42] drm/omap: patches for v4.6 part 2 Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 01/42] drm/omap: fix suspend/resume handling Tomi Valkeinen
2016-03-07  7:52   ` Laurent Pinchart
2016-03-07  8:04     ` Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 02/42] drm/omap: move dss_suspend/resume_all to core.c Tomi Valkeinen
2016-03-07  7:53   ` Laurent Pinchart
2016-02-22 17:10 ` [PATCH 03/42] drm/omap: omapdss.h: remove unused struct omap_dss_hdmi_data Tomi Valkeinen
2016-03-07  7:55   ` Laurent Pinchart
2016-02-22 17:10 ` [PATCH 04/42] drm/omap: omapdss.h: remove omap_hdmi_init Tomi Valkeinen
2016-03-07  7:56   ` Laurent Pinchart
2016-02-22 17:10 ` [PATCH 05/42] drm/omap: panel-dsi-cm: remove pdata support Tomi Valkeinen
2016-03-07  8:04   ` Laurent Pinchart
2016-03-07  8:07     ` Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 06/42] drm/omap: encoder-tfp410: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 07/42] drm/omap: connector-dvi: " Tomi Valkeinen
2016-03-07  8:16   ` Laurent Pinchart
2016-03-07  8:24     ` Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 08/42] drm/omap: connector-hdmi: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 09/42] drm/omap: panel-lgphilips-lb035q02: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 10/42] drm/omap: panel-sharp-ls037v7dw01: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 11/42] drm/omap: panel-nec-nl8048hl11: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 12/42] drm/omap: panel-tpo-td028ttec1: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 13/42] drm/omap: panel-tpo-td043mtea1: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 14/42] drm/omap, omapfb: move exported dispc function declarations to omapdrm/omapfb Tomi Valkeinen
2016-03-07  8:42   ` Laurent Pinchart
2016-03-07  8:54     ` Tomi Valkeinen
2016-03-07  9:53       ` Laurent Pinchart
2016-02-22 17:10 ` [PATCH 15/42] drm/omap: move struct dss_mgr_ops " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 16/42] drm/omap: move dss_mgr_* declarations " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 17/42] drm/omap: Add dispc_mgr_get_supported_outputs() Tomi Valkeinen
2016-03-07  8:47   ` Laurent Pinchart [this message]
2016-03-07  9:08     ` Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 18/42] drm/omap: remove crtc->mgr field Tomi Valkeinen
2016-03-07  8:52   ` Laurent Pinchart
2016-03-07  9:19     ` Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 19/42] drm/omap: remove use of omapdss_find_mgr_from_display() Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 20/42] drm/omap: convert dss_mgr_ops to use omap_channel Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 21/42] drm/omap: add dispc_channel_connected field to omap_dss_device Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 22/42] drm/omap: use dispc_channel_connected in output drivers Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 23/42] drm/omap: convert dss_mgr_connect to accept omap_channel Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 24/42] drm/omap: convert dss_mgr_disconnect " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 25/42] drm/omap: convert dss_mgr_set_timings " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 26/42] drm/omap: convert dss_mgr_set_lcd_config " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 27/42] drm/omap: convert dss_mgr_enable " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 28/42] drm/omap: convert dss_mgr_disable " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 29/42] drm/omap: convert dss_mgr_start_update " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 30/42] drm/omap: convert dss_mgr_register_framedone_handler " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 31/42] drm/omap: convert dss_mgr_unregister_framedone_handler " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 32/42] drm/omap: remove extra check in dpi and sdi Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 33/42] drm/omap: remove extra manager checks on disconnect Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 34/42] drm/omap: DPI: remove uses of omap_overlay_manager Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 35/42] drm/omap: HDMI5: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 36/42] drm/omap: HDMI4: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 37/42] drm/omap: SDI: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 38/42] drm/omap: VENC: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 39/42] drm/omap: DSI: " Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 40/42] drm/omap: remove last " Tomi Valkeinen
2016-03-07  9:01   ` Laurent Pinchart
2016-03-07  9:10     ` Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 41/42] drm/omap: remove dss compat code Tomi Valkeinen
2016-02-22 17:10 ` [PATCH 42/42] drm/omap: remove dispc_ovl_check() Tomi Valkeinen

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=5379872.0MqFkrVTb2@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=tomi.valkeinen@ti.com \
    /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;
as well as URLs for NNTP newsgroup(s).