Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6797075ybi; Mon, 8 Jul 2019 08:50:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiDgxx5KuBh3T1HPNCGdzt+TfDN+it6c33TB27h6b4i2lMCkClqDADFfpGELlpBaVm4E/P X-Received: by 2002:a65:5687:: with SMTP id v7mr25170455pgs.263.1562601056364; Mon, 08 Jul 2019 08:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562601056; cv=none; d=google.com; s=arc-20160816; b=UHSI9Bqxq3uJFt54tdjmhuNpUgubJBm1SMdk/5CZnhluMePrfFziXgSyqRuUQ/kZs8 cJNAMzXoxUMMlZJX9L+lrJv8CaCVSLuXyZb6unUcR5cUg7zZVkBSth+v2lG2sUa8eTKP k+fxjTXDGFoRMcNUXwnykNOpqjMcDsrobPiYPzYKP0azgU1y36ImnruP61xwGC9Nok9L iH1SQ4P+MAsEKObcdvsBf0BITi6+A1AzPQdeecJkLASIFjtEFchE6WzEDN5Y+/217W7f EuTjRyg7DddTc2TiYGUrT0XP64Diclg4dD6f+gfCaSprJnPxh+/XIwaFjaBIVzRPkDeo scvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=obbsnL2VY6ZbvTS79LteabLABVwY8Taiv5OiZFJc3yQ=; b=P71f1G1Yvtkkta4MUzRxFsah1kMaLQh71brpumhdPgGfoo2Hfj6b5FWvH9NQkmgLVI nut8FmRzTYLzgJpe+nswb9y3Ent7pcjPy1dAE4JBuwTGjiIfNwtQ/A+8ENn9pk6dpIZJ acz3GrxMytnMquWVWJvTH7geETC97AR686K9ykTKJIwX8//Rmuj6Y6EtSaHwbI18HeDh yyTD1cQOlgUYjV9kOw81x42xabHiukCuGovOeXNfPkJLvYb7+1CAjlhLsHVzmCf67RbM 5XLmrJwPv/z6C7gIi5LKmL3ujshsyY8Dz7uCn7MfxE8RJIVxObQQecMby4KjL7aJAAdB 72Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GV9BbBhe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m127si1101137pgm.100.2019.07.08.08.50.41; Mon, 08 Jul 2019 08:50:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GV9BbBhe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388468AbfGHPZM (ORCPT + 99 others); Mon, 8 Jul 2019 11:25:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:52498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388417AbfGHPZH (ORCPT ); Mon, 8 Jul 2019 11:25:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1D14521707; Mon, 8 Jul 2019 15:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1562599506; bh=HbzPCNYKJNEmuStyNKDuP2sfqXfGfr0uZb8hnURvQ3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GV9BbBhe8gTe0GWGzWg/MWt16PlgjHNgcbFXlHoa7ZNGYuIs7lSODI8Sj3/Poy4vc 4HZFqd52V3vEk+d09hQdPG2lC+CEYESg+W3qaMfl7AmX1gvc//yskkXzoLjHUlkrRS jBcHusCDBMBbdk0LmQ/SUCwScqoXdwJRrvm4LM1U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Beckett , Daniel Vetter , Philipp Zabel Subject: [PATCH 4.14 37/56] drm/imx: only send event on crtc disable if kept disabled Date: Mon, 8 Jul 2019 17:13:29 +0200 Message-Id: <20190708150523.270391645@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190708150514.376317156@linuxfoundation.org> References: <20190708150514.376317156@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Robert Beckett commit 5aeab2bfc9ffa72d3ca73416635cb3785dfc076f upstream. The event will be sent as part of the vblank enable during the modeset if the crtc is not being kept disabled. Fixes: 5f2f911578fb ("drm/imx: atomic phase 3 step 1: Use atomic configuration") Signed-off-by: Robert Beckett Reviewed-by: Daniel Vetter Signed-off-by: Philipp Zabel Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/imx/ipuv3-crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -102,7 +102,7 @@ static void ipu_crtc_atomic_disable(stru drm_crtc_vblank_off(crtc); spin_lock_irq(&crtc->dev->event_lock); - if (crtc->state->event) { + if (crtc->state->event && !crtc->state->active) { drm_crtc_send_vblank_event(crtc, crtc->state->event); crtc->state->event = NULL; }