diff options
| author | Sebastian Reichel <[email protected]> | 2020-12-15 12:45:34 +0200 | 
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2020-12-15 16:07:28 +0200 | 
| commit | 12db515bae2d1c12b7fffe2b3f19e72e1385d8ed (patch) | |
| tree | 5ca6ce18c4e84187fef6cef4d4130f38df54daf6 /drivers/gpu/drm/omapdrm/dss/base.c | |
| parent | 64ff18911878bbaea4cc8341edbbc2b0c8ebd127 (diff) | |
Revert "drm/omap: dss: Remove unused omap_dss_device operations"
This reverts commit e086558ae923 ("drm/omap: dss: Remove unused
omap_dss_device operations")
This is still needed by DSI. E.g. unloading modules without this will
cause a crash.
Signed-off-by: Sebastian Reichel <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/base.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/dss/base.c | 26 | 
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/base.c b/drivers/gpu/drm/omapdrm/dss/base.c index cf50430e6363..3d2aa9d4ab6b 100644 --- a/drivers/gpu/drm/omapdrm/dss/base.c +++ b/drivers/gpu/drm/omapdrm/dss/base.c @@ -234,6 +234,18 @@ void omapdss_device_disconnect(struct omap_dss_device *src,  }  EXPORT_SYMBOL_GPL(omapdss_device_disconnect); +void omapdss_device_pre_enable(struct omap_dss_device *dssdev) +{ +	if (!dssdev) +		return; + +	omapdss_device_pre_enable(dssdev->next); + +	if (dssdev->ops && dssdev->ops->pre_enable) +		dssdev->ops->pre_enable(dssdev); +} +EXPORT_SYMBOL_GPL(omapdss_device_pre_enable); +  void omapdss_device_enable(struct omap_dss_device *dssdev)  {  	if (!dssdev) @@ -260,6 +272,20 @@ void omapdss_device_disable(struct omap_dss_device *dssdev)  }  EXPORT_SYMBOL_GPL(omapdss_device_disable); +void omapdss_device_post_disable(struct omap_dss_device *dssdev) +{ +	if (!dssdev) +		return; + +	if (dssdev->ops && dssdev->ops->post_disable) +		dssdev->ops->post_disable(dssdev); + +	omapdss_device_post_disable(dssdev->next); + +	dssdev->state = OMAP_DSS_DISPLAY_DISABLED; +} +EXPORT_SYMBOL_GPL(omapdss_device_post_disable); +  /* -----------------------------------------------------------------------------   * Components Handling   */  |