Skip to content

Commit 6ee3b5a

Browse files
committed
drm/i915/lvds: Always return connected in the absence of better information
The LVDS connector should default to connected. We tried our best to verify the claims of the BIOS that the hardware exists during init(), and then during detect() we then try to verify that the panel is open. In the event of an unsuccessful query, we should then always report that the LVDS panel is connected. This was only the case for gen2/3, later generations leaked the return value from the panel probe instead. Reported-and-tested-by: Alessandro Suardi <alessandro.suardi@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Keith Packard <keithp@keithp.com>
1 parent f0c8602 commit 6ee3b5a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

drivers/gpu/drm/i915/intel_lvds.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,19 +473,13 @@ static enum drm_connector_status
473473
intel_lvds_detect(struct drm_connector *connector, bool force)
474474
{
475475
struct drm_device *dev = connector->dev;
476-
enum drm_connector_status status = connector_status_connected;
476+
enum drm_connector_status status;
477477

478478
status = intel_panel_detect(dev);
479479
if (status != connector_status_unknown)
480480
return status;
481481

482-
/* ACPI lid methods were generally unreliable in this generation, so
483-
* don't even bother.
484-
*/
485-
if (IS_GEN2(dev) || IS_GEN3(dev))
486-
return connector_status_connected;
487-
488-
return status;
482+
return connector_status_connected;
489483
}
490484

491485
/**

0 commit comments

Comments
 (0)