public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/panel: update EDID BLOB in panel_simple_get_modes()
@ 2014-01-09 18:37 Stephen Warren
  2014-01-14 15:02 ` Thierry Reding
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2014-01-09 18:37 UTC (permalink / raw)
  To: Thierry Reding; +Cc: David Airlie, dri-devel, linux-kernel, Stephen Warren

From: Stephen Warren <swarren@nvidia.com>

This stashes away the EDID data so that the sysfs per-connector file
"edid" can display it. Without this change, the "edid" file is always
empty.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 520b569ae3c8..59d52ca2c67f 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -162,6 +162,7 @@ static int panel_simple_get_modes(struct drm_panel *panel)
 	/* probe EDID if a DDC bus is available */
 	if (p->ddc) {
 		struct edid *edid = drm_get_edid(panel->connector, p->ddc);
+		drm_mode_connector_update_edid_property(panel->connector, edid);
 		if (edid) {
 			num += drm_add_edid_modes(panel->connector, edid);
 			kfree(edid);
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/panel: update EDID BLOB in panel_simple_get_modes()
  2014-01-09 18:37 [PATCH] drm/panel: update EDID BLOB in panel_simple_get_modes() Stephen Warren
@ 2014-01-14 15:02 ` Thierry Reding
  0 siblings, 0 replies; 2+ messages in thread
From: Thierry Reding @ 2014-01-14 15:02 UTC (permalink / raw)
  To: Stephen Warren; +Cc: David Airlie, dri-devel, linux-kernel, Stephen Warren

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

On Thu, Jan 09, 2014 at 11:37:34AM -0700, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
> 
> This stashes away the EDID data so that the sysfs per-connector file
> "edid" can display it. Without this change, the "edid" file is always
> empty.
> 
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>  drivers/gpu/drm/panel/panel-simple.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

Thierry

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-14 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 18:37 [PATCH] drm/panel: update EDID BLOB in panel_simple_get_modes() Stephen Warren
2014-01-14 15:02 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox