drm/radeon/kms: properly power up/down the eDP panel as needed (v4)
authorAlex Deucher <alexdeucher@gmail.com>
Wed, 17 Nov 2010 07:54:42 +0000 (02:54 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Nov 2010 04:56:25 +0000 (14:56 +1000)
commit8b834852d705af75ba942b040ca28533329ff13c
tree87ea766b680fd1dc1b40da17e203a3a6b6bb56bd
parentc7a71fc761551dc8be8543f14a90d08cda4e77f9
drm/radeon/kms: properly power up/down the eDP panel as needed (v4)

The eDP panel must be powered up for aux transactions, so power it
up for detect and mode probe functions, otherwise power it up or
down based on dpms.

v2:
- only mess with eDP panel on DCE4+
- only mess with eDP panel on eDP connectors, not all DP connectors
v3:
- be extra careful to only mess with eDP panels on eDP connectors
v4:
- avoid possible null derefernce if a connector has not been
assigned to the encoder

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_encoders.c
drivers/gpu/drm/radeon/radeon_mode.h