dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Boris Brezillon <boris.brezillon@bootlin.com>
Cc: David Airlie <airlied@linux.ie>, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v3 0/4] drm/panel: Handle the "panel is missing" case properly
Date: Tue, 10 Jul 2018 11:19:04 +0200	[thread overview]
Message-ID: <20180710091904.GA1504@ulmo> (raw)
In-Reply-To: <20180509130042.9435-1-boris.brezillon@bootlin.com>


[-- Attachment #1.1: Type: text/plain, Size: 2601 bytes --]

On Wed, May 09, 2018 at 03:00:38PM +0200, Boris Brezillon wrote:
> Hello,
> 
> This is a new attempt at fixing the "panel is missing" issue (described
> in this thread [1]). I lost track of Eric's proposal, but I recently
> proposed to address this problem through a new ->detect() hook in the
> panel_funcs interface [2], which was rejected.
> 
> So here is a new version based on the feedback I had from Daniel,
> Thierry and Rob.
> 
> The idea is to allow of_drm_find_panel() to return -ENODEV and let the
> DRM driver decide what to do with that (silently ignore the missing
> component and register the DRM device, or fail to register the DRM
> device).
> 
> Patch 1 changes the semantic of of_drm_find_panel() so that it returns
> an ERR_PTR() instead of NULL when the panel is not found. This way
> we'll be able to differentiate the "panel is missing" from "panel has
> not been probed yet" errors.
> 
> Patch 2 and 3 are adding new tests in of_drm_find_panel() and
> drm_of_find_panel_or_bridge() to return -ENODEV when the status
> property of the DT node is not set to "okay".
> 
> Patch 4 is patching the VC4 DSI encoder driver to gracefully handle the
> -ENODEV case and allow the registration of the DRM device when the DSI
> device is disabled.
> 
> Note that patch 6 which was modifying the panel status prop from the
> I2C driver has been dropped because I'm not sure yet how to solve the
> "force probe of deferred-probe devices even if no new devices have been
> bound to drivers" problem. Anyway, even without this patch, the series
> still makes sense to handle the case where devices are described in the
> DT but marked "disabled" (either at compilation time or tweaked by the
> bootloader).
> 
> Regards,
> 
> Boris
> 
> Changes in v3:
> - Dropped patch 1 since it's been acked by Thierry and should be
>   applied soon (either through the drm-tegra or drm-misc tree)
> - Dropped patch 6 because we are still discussing who should mark
>   the device "disabled" or "fail" and how we should trigger the
>   re-probe of deferred-probe devices in this case
> 
> Changes in v2:
> - Everything :-)
> 
> [1]https://lists.freedesktop.org/archives/dri-devel/2017-November/157688.html
> [2]https://www.spinics.net/lists/dri-devel/msg174808.html

I don't exactly remember what we decided should be the merge path for
this, but I suspect someone else was supposed to pick it up because I
ended up acking these patches. However, since this hasn't been applied
yet, I decided to go ahead and apply this to drm-misc-next.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

  parent reply	other threads:[~2018-07-10  9:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09 13:00 [PATCH v3 0/4] drm/panel: Handle the "panel is missing" case properly Boris Brezillon
2018-05-09 13:00 ` [PATCH v3 1/4] drm/panel: Make of_drm_find_panel() return an ERR_PTR() instead of NULL Boris Brezillon
2018-05-09 13:00 ` [PATCH v3 2/4] drm/panel: Let of_drm_find_panel() return -ENODEV when the panel is disabled Boris Brezillon
2018-05-09 13:00 ` [PATCH v3 3/4] drm/of: Make drm_of_find_panel_or_bridge() fail when the device " Boris Brezillon
2018-05-09 13:00 ` [PATCH v3 4/4] drm/vc4: Support the case where the DSI " Boris Brezillon
2018-05-16  9:17   ` Eric Anholt
2018-07-10  9:19 ` Thierry Reding [this message]
2018-07-11 16:20   ` [PATCH v3 0/4] drm/panel: Handle the "panel is missing" case properly Eric Anholt

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=20180710091904.GA1504@ulmo \
    --to=thierry.reding@gmail.com \
    --cc=airlied@linux.ie \
    --cc=boris.brezillon@bootlin.com \
    --cc=dri-devel@lists.freedesktop.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;
as well as URLs for NNTP newsgroup(s).