diff options
author | Dave Airlie <airlied@redhat.com> | 2018-07-26 22:20:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-07-26 22:23:11 -0400 |
commit | 52ea6a115f59e645b5267c2e830d7d6356b031a9 (patch) | |
tree | d19de91b283535319cc673f4a0aa0a8a55ac19ba /drivers/gpu/drm | |
parent | a6f6cdefd408f4ab74060538931241a95fc2362b (diff) | |
parent | 2e012e76ad59edb4a5a175c0957a44337dc39d87 (diff) |
Merge branch 'for-upstream/malidp-fixes' of git://linux-arm.org/linux-ld into drm-next
I have a couple of small patches for malidp to be applied in drm-next.
They have arisen from the decision to switch the writeback connectors to
always connected.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180723145302.GA28052@e110455-lin.cambridge.arm.com
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/arm/malidp_drv.c | 10 | ||||
-rw-r--r-- | drivers/gpu/drm/arm/malidp_mw.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c index 5b7260557391..08b5bb219816 100644 --- a/drivers/gpu/drm/arm/malidp_drv.c +++ b/drivers/gpu/drm/arm/malidp_drv.c | |||
@@ -616,6 +616,7 @@ static int malidp_bind(struct device *dev) | |||
616 | struct malidp_hw_device *hwdev; | 616 | struct malidp_hw_device *hwdev; |
617 | struct platform_device *pdev = to_platform_device(dev); | 617 | struct platform_device *pdev = to_platform_device(dev); |
618 | struct of_device_id const *dev_id; | 618 | struct of_device_id const *dev_id; |
619 | struct drm_encoder *encoder; | ||
619 | /* number of lines for the R, G and B output */ | 620 | /* number of lines for the R, G and B output */ |
620 | u8 output_width[MAX_OUTPUT_CHANNELS]; | 621 | u8 output_width[MAX_OUTPUT_CHANNELS]; |
621 | int ret = 0, i; | 622 | int ret = 0, i; |
@@ -737,6 +738,15 @@ static int malidp_bind(struct device *dev) | |||
737 | goto bind_fail; | 738 | goto bind_fail; |
738 | } | 739 | } |
739 | 740 | ||
741 | /* We expect to have a maximum of two encoders one for the actual | ||
742 | * display and a virtual one for the writeback connector | ||
743 | */ | ||
744 | WARN_ON(drm->mode_config.num_encoder > 2); | ||
745 | list_for_each_entry(encoder, &drm->mode_config.encoder_list, head) { | ||
746 | encoder->possible_clones = | ||
747 | (1 << drm->mode_config.num_encoder) - 1; | ||
748 | } | ||
749 | |||
740 | ret = malidp_irq_init(pdev); | 750 | ret = malidp_irq_init(pdev); |
741 | if (ret < 0) | 751 | if (ret < 0) |
742 | goto irq_init_fail; | 752 | goto irq_init_fail; |
diff --git a/drivers/gpu/drm/arm/malidp_mw.c b/drivers/gpu/drm/arm/malidp_mw.c index cfd718e7e97c..ba6ae66387c9 100644 --- a/drivers/gpu/drm/arm/malidp_mw.c +++ b/drivers/gpu/drm/arm/malidp_mw.c | |||
@@ -73,7 +73,7 @@ static void malidp_mw_connector_reset(struct drm_connector *connector) | |||
73 | static enum drm_connector_status | 73 | static enum drm_connector_status |
74 | malidp_mw_connector_detect(struct drm_connector *connector, bool force) | 74 | malidp_mw_connector_detect(struct drm_connector *connector, bool force) |
75 | { | 75 | { |
76 | return connector_status_disconnected; | 76 | return connector_status_connected; |
77 | } | 77 | } |
78 | 78 | ||
79 | static void malidp_mw_connector_destroy(struct drm_connector *connector) | 79 | static void malidp_mw_connector_destroy(struct drm_connector *connector) |