Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1552846
| From | Tomeu Vizoso <tomeu.vizoso@collabora.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v3 2/5] drm/bridge: analogix_dp: set connector to drm_dp_aux |
| Date | 2017-01-06 15:40 +0100 |
| Message-ID | <sWDQu-3dX-19@gated-at.bofh.it> (permalink) |
| References | <sWDQt-3dX-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Set the backpointer so that the DP helpers are able to access the
connector that the drm_dp_aux is associated with.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
---
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 02b97bf64ee4..7d45d3e4600a 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -1402,23 +1402,25 @@ int analogix_dp_bind(struct device *dev, struct drm_device *drm_dev,
dp->drm_dev = drm_dev;
dp->encoder = dp->plat_data->encoder;
+ ret = analogix_dp_create_bridge(drm_dev, dp);
+ if (ret) {
+ DRM_ERROR("failed to create bridge (%d)\n", ret);
+ goto err_encoder_cleanup;
+ }
+
dp->aux.name = "DP-AUX";
dp->aux.transfer = analogix_dpaux_transfer;
dp->aux.dev = &pdev->dev;
+ dp->aux.connector = &dp->connector;
ret = drm_dp_aux_register(&dp->aux);
if (ret)
- goto err_disable_pm_runtime;
-
- ret = analogix_dp_create_bridge(drm_dev, dp);
- if (ret) {
- DRM_ERROR("failed to create bridge (%d)\n", ret);
- drm_encoder_cleanup(dp->encoder);
- goto err_disable_pm_runtime;
- }
+ goto err_encoder_cleanup;
return 0;
+err_encoder_cleanup:
+ drm_encoder_cleanup(dp->encoder);
err_disable_pm_runtime:
pm_runtime_disable(dev);
--
2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v3 0/5] drm/dp: Implement CRC debugfs API Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-06 15:40 +0100
[PATCH v3 2/5] drm/bridge: analogix_dp: set connector to drm_dp_aux Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-06 15:40 +0100
[PATCH v3 3/5] drm/dp: add helpers for capture of frame CRCs Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-06 15:40 +0100
Re: [PATCH v3 3/5] drm/dp: add helpers for capture of frame CRCs Sean Paul <seanpaul@chromium.org> - 2017-01-06 17:00 +0100
Re: [PATCH v3 3/5] drm/dp: add helpers for capture of frame CRCs Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-09 14:30 +0100
[PATCH v3 1/5] drm/dp: add connector backpointer to drm_dp_aux Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-06 15:40 +0100
Re: [PATCH v3 1/5] drm/dp: add connector backpointer to drm_dp_aux Sean Paul <seanpaul@chromium.org> - 2017-01-06 17:00 +0100
Re: [PATCH v3 1/5] drm/dp: add connector backpointer to drm_dp_aux Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-09 10:10 +0100
Re: [PATCH v3 1/5] drm/dp: add connector backpointer to drm_dp_aux Sean Paul <seanpaul@chromium.org> - 2017-01-09 17:50 +0100
[PATCH v3 5/5] drm/rockchip: Implement CRC debugfs API Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-06 15:50 +0100
Re: [PATCH v3 5/5] drm/rockchip: Implement CRC debugfs API Sean Paul <seanpaul@chromium.org> - 2017-01-06 17:00 +0100
Re: [PATCH v3 5/5] drm/rockchip: Implement CRC debugfs API Tomeu Vizoso <tomeu.vizoso@collabora.com> - 2017-01-09 14:30 +0100
csiph-web