All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sean Paul <seanpaul@chromium.org>
Cc: "Laurent Pinchart" <laurent.pinchart+renesas@ideasonboard.com>,
	"Alison Wang" <alison.wang@freescale.com>,
	"Alexey Brodkin" <abrodkin@synopsys.com>,
	dri-devel <dri-devel@lists.freedesktop.org>,
	"Xinliang Liu" <z.liuxinliang@hisilicon.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Jyri Sarha" <jsarha@ti.com>,
	"Rongrong Zou" <zourongrong@gmail.com>,
	"Daniel Vetter" <daniel.vetter@intel.com>,
	"Maxime Ripard" <maxime.ripard@free-electrons.com>,
	"Vincent Abriou" <vincent.abriou@st.com>,
	"Christian König" <christian.koenig@amd.com>
Subject: Re: [PATCH] drm: Make the connector .detect() callback optional
Date: Tue, 29 Nov 2016 23:09:44 +0200	[thread overview]
Message-ID: <2316109.IrI1Lfu577@avalon> (raw)
In-Reply-To: <CAOw6vbK_UGSyhpqDYegpEbo456OQEFjuDEv1o9XWwuH1MN8UEw@mail.gmail.com>

Hi Sean,

On Tuesday 29 Nov 2016 16:07:02 Sean Paul wrote:
> On Tue, Nov 29, 2016 at 3:56 PM, Laurent Pinchart wrote:
> > Many drivers (21 to be exact) create connectors that are always
> > connected (for instance to an LVDS or DSI panel). Instead of forcing
> > them to implement a dummy .detect() handler, make the callback optional
> > and consider the connector as always connected in that case.
> 
> I wonder if we should be a little bit smarter about this and default
> connected only for built-in types (LVDS, edp, DSI), and return unknown
> for others?

I've deliberately decided not to change the behaviour of any driver in this 
patch to ease review and merge. We can change (a.k.a. improve :-)) the logic 
on top of this. Patches are welcome ;-)

> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> > 
> >  drivers/gpu/drm/amd/amdgpu/dce_virtual.c         |  7 -------
> >  drivers/gpu/drm/arc/arcpgu_sim.c                 |  7 -------
> >  drivers/gpu/drm/ast/ast_mode.c                   |  7 -------
> >  drivers/gpu/drm/bochs/bochs_kms.c                |  7 -------
> >  drivers/gpu/drm/bridge/nxp-ptn3460.c             |  7 -------
> >  drivers/gpu/drm/bridge/parade-ps8622.c           |  7 -------
> >  drivers/gpu/drm/bridge/tc358767.c                |  7 -------
> >  drivers/gpu/drm/cirrus/cirrus_mode.c             |  7 -------
> >  drivers/gpu/drm/drm_probe_helper.c               | 14 +++++++++++---
> >  drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c        |  7 -------
> >  drivers/gpu/drm/gma500/cdv_intel_lvds.c          | 14 --------------
> >  drivers/gpu/drm/gma500/psb_intel_lvds.c          | 14 --------------
> >  drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c |  7 -------
> >  drivers/gpu/drm/i915/intel_dsi.c                 |  7 -------
> >  drivers/gpu/drm/imx/imx-ldb.c                    |  7 -------
> >  drivers/gpu/drm/imx/imx-tve.c                    |  7 -------
> >  drivers/gpu/drm/imx/parallel-display.c           |  7 -------
> >  drivers/gpu/drm/mediatek/mtk_dsi.c               |  7 -------
> >  drivers/gpu/drm/mgag200/mgag200_mode.c           |  7 -------
> >  drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c        |  7 -------
> >  drivers/gpu/drm/rockchip/dw-mipi-dsi.c           |  7 -------
> >  drivers/gpu/drm/shmobile/shmob_drm_crtc.c        |  7 -------
> >  drivers/gpu/drm/sti/sti_hda.c                    |  7 -------
> >  drivers/gpu/drm/sun4i/sun4i_rgb.c                |  7 -------
> >  drivers/gpu/drm/sun4i/sun4i_tv.c                 |  7 -------
> >  drivers/gpu/drm/tilcdc/tilcdc_panel.c            |  8 --------
> >  include/drm/drm_connector.h                      |  3 +++
> >  27 files changed, 14 insertions(+), 193 deletions(-)

-- 
Regards,

Laurent Pinchart

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

  reply	other threads:[~2016-11-29 21:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29 20:56 [PATCH] drm: Make the connector .detect() callback optional Laurent Pinchart
2016-11-29 21:02 ` Maxime Ripard
2016-11-29 21:07 ` Sean Paul
2016-11-29 21:09   ` Laurent Pinchart [this message]
2016-12-01 18:15     ` Sean Paul
2016-11-29 21:23 ` Deucher, Alexander
2016-11-29 21:24 ` Jyri Sarha
2016-11-30  8:26 ` Jani Nikula
2016-11-30  9:37 ` Alexey Brodkin
2016-11-30  9:51 ` Philipp Zabel
2016-11-30 15:27 ` Vincent ABRIOU

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=2316109.IrI1Lfu577@avalon \
    --to=laurent.pinchart@ideasonboard.com \
    --cc=abrodkin@synopsys.com \
    --cc=alexander.deucher@amd.com \
    --cc=alison.wang@freescale.com \
    --cc=christian.koenig@amd.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jsarha@ti.com \
    --cc=laurent.pinchart+renesas@ideasonboard.com \
    --cc=maxime.ripard@free-electrons.com \
    --cc=seanpaul@chromium.org \
    --cc=vincent.abriou@st.com \
    --cc=z.liuxinliang@hisilicon.com \
    --cc=zourongrong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.