Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bc05a15 authored by Shubham Talekar's avatar Shubham Talekar Committed by Gerrit - the friendly Code Review server
Browse files

drm: call drm client for bootsplash entry



call drm_bootsplash_client_register() from drm_client_dev_register()
to enable bootsplash support.

Change-Id: I2c862f8520aacd380340301679c4b825c755c44a
Signed-off-by: default avatarShubham Talekar <stalek@codeaurora.org>
parent 31f1535f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -279,6 +279,7 @@ static int msm_drm_uninit(struct device *dev)
	drm_vblank_cleanup(ddev);

	if (priv->registered) {
		drm_client_dev_unregister(ddev);
		drm_dev_unregister(ddev);
		priv->registered = false;
	}
@@ -692,6 +693,8 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv)

	drm_mode_config_reset(ddev);

	drm_client_dev_register(ddev);

	if (kms && kms->funcs && kms->funcs->cont_splash_config) {
		ret = kms->funcs->cont_splash_config(kms);
		if (ret) {
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2019, 2021, The Linux Foundation. All rights reserved.
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <robdclark@gmail.com>
 *
@@ -45,6 +45,7 @@
#include <drm/drm_fb_helper.h>
#include <drm/msm_drm.h>
#include <drm/drm_gem.h>
#include <drm/drm_client.h>

#include "sde_power_handle.h"

+3 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
 * Copyright (c) 2014-2019,2021 The Linux Foundation. All rights reserved.
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <robdclark@gmail.com>
 *
@@ -2376,6 +2376,7 @@ static void sde_crtc_vblank_cb(void *data)
		sde_crtc->vblank_cb_count++;

	sde_crtc->vblank_last_cb_time = ktime_get();
	if (sde_crtc->vsync_event_sf)
		sysfs_notify_dirent(sde_crtc->vsync_event_sf);

	drm_crtc_handle_vblank(crtc);