Merge "disp: msm: sde: avoid sde irq enable or disable when sde irq not active"

This commit is contained in:
qctecmdr 2021-12-01 04:31:00 -08:00 • committed by Gerrit - the friendly Code Review server
commit 7701aecce6
2 changed files with 4 additions and 1 deletions

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
* Copyright (c) 2015-2019, 2021, The Linux Foundation. All rights reserved.
*/
#define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__
@ -22,6 +22,8 @@ void sde_irq_update(struct msm_kms *msm_kms, bool enable)
SDE_ERROR("invalid kms arguments\n");
return;
}
if (sde_kms->irq_num < 0)
return;
sde_kms->irq_enabled = enable;

View file

@ -4801,6 +4801,7 @@ struct msm_kms *sde_kms_init(struct drm_device *dev)
msm_kms_init(&sde_kms->base, &kms_funcs);
sde_kms->dev = dev;
sde_kms->irq_num = -1;
return &sde_kms->base;
}