[Intel-gfx] [PATCH v1 1/3] drm/i915: Add set_property function for planes

sagar.a.kamble at intel.com sagar.a.kamble at intel.com
Mon May 5 20:14:02 CEST 2014


From: Sagar Kamble <sagar.a.kamble at intel.com>

Cc: daniel.vetter at ffwll.ch
Cc: jani.nikula at linux.intel.com
Cc: ville.syrjala at linux.intel.com
Cc: indranil.mukherjee at intel.com
Cc: shashidhar.hiremath at intel.com
Cc: vandita.kulkarni at intel.com
Cc: vijay.a.purushothaman at intel.com
Cc: ankitprasad.r.sharma at intel.com
Signed-off-by: Sagar Kamble <sagar.a.kamble at intel.com>
---
 drivers/gpu/drm/i915/i915_dma.c     | 2 ++
 drivers/gpu/drm/i915/intel_sprite.c | 9 +++++++++
 2 files changed, 11 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
index 96177ee..191c5e6 100644
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@ -1903,6 +1903,8 @@ void i915_driver_lastclose(struct drm_device * dev)
 	if (!dev_priv)
 		return;
 
+	/* Restore drm properties if any to their default values */
+
 	if (drm_core_check_feature(dev, DRIVER_MODESET)) {
 		intel_fbdev_restore_mode(dev);
 		vga_switcheroo_process_delayed_switch();
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c
index 9436f18..c46e18d 100644
--- a/drivers/gpu/drm/i915/intel_sprite.c
+++ b/drivers/gpu/drm/i915/intel_sprite.c
@@ -1011,6 +1011,14 @@ out_unlock:
 	return ret;
 }
 
+static int intel_plane_set_property(struct drm_plane *plane,
+				    struct drm_property *prop,
+				    uint64_t val)
+{
+	int ret = -EINVAL;
+	return ret;
+}
+
 int intel_plane_restore(struct drm_plane *plane)
 {
 	struct intel_plane *intel_plane = to_intel_plane(plane);
@@ -1037,6 +1045,7 @@ static const struct drm_plane_funcs intel_plane_funcs = {
 	.update_plane = intel_update_plane,
 	.disable_plane = intel_disable_plane,
 	.destroy = intel_destroy_plane,
+	.set_property = intel_plane_set_property,
 };
 
 static uint32_t ilk_plane_formats[] = {
-- 
1.8.5




More information about the Intel-gfx mailing list