diff options
author | Thierry Reding <treding@nvidia.com> | 2014-11-24 10:27:13 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-01-27 04:14:50 -0500 |
commit | 4aa3df7149a00cb061d2ba74e2136cd14a6d885a (patch) | |
tree | f51952058fb5501c65f92cbe2c25119117ea1af8 /drivers/gpu/drm/tegra/dsi.c | |
parent | 05f175f4f38de4e89facbb1420978e072ed4870c (diff) |
drm/tegra: Atomic conversion, phase 1
Implement initial atomic state handling. Hook up the CRTCs, planes' and
connectors' ->atomic_destroy_state() callback to ensure that the atomic
state objects don't leak.
Furthermore the CRTC now implements the ->mode_set_nofb() callback that
is used by new helpers to implement ->mode_set() and ->mode_set_base().
These new helpers also make use of the new plane helper functions which
the driver now provides.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dsi.c')
-rw-r--r-- | drivers/gpu/drm/tegra/dsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index 23f4b0fc9734..234cd1c3079f 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c | |||
@@ -17,6 +17,7 @@ | |||
17 | 17 | ||
18 | #include <linux/regulator/consumer.h> | 18 | #include <linux/regulator/consumer.h> |
19 | 19 | ||
20 | #include <drm/drm_atomic_helper.h> | ||
20 | #include <drm/drm_mipi_dsi.h> | 21 | #include <drm/drm_mipi_dsi.h> |
21 | #include <drm/drm_panel.h> | 22 | #include <drm/drm_panel.h> |
22 | 23 | ||
@@ -736,6 +737,7 @@ static const struct drm_connector_funcs tegra_dsi_connector_funcs = { | |||
736 | .detect = tegra_output_connector_detect, | 737 | .detect = tegra_output_connector_detect, |
737 | .fill_modes = drm_helper_probe_single_connector_modes, | 738 | .fill_modes = drm_helper_probe_single_connector_modes, |
738 | .destroy = tegra_output_connector_destroy, | 739 | .destroy = tegra_output_connector_destroy, |
740 | .atomic_destroy_state = drm_atomic_helper_connector_destroy_state, | ||
739 | }; | 741 | }; |
740 | 742 | ||
741 | static enum drm_mode_status | 743 | static enum drm_mode_status |