Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp4034717ybd; Tue, 25 Jun 2019 12:51:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7++R0XKeqEI2sgDF+Y24WI4/9QRvffGusUIso2yOMRXTNQY/eIHGY/dxV9Xthqj1Pew/2 X-Received: by 2002:a65:638a:: with SMTP id h10mr42055398pgv.64.1561492300971; Tue, 25 Jun 2019 12:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561492300; cv=none; d=google.com; s=arc-20160816; b=VI9YpXgJHwim3XQr53PTJkFnpwr7wxuxwmFhWWXJ7eRXJCh4iLWu0x8hjDkcRR5KXK jLQ7lIEOhw6UGmXMGML1BYROf+RLNDSFJOLm7flemxBwebEYKWe4OzmwxIvdZrEQQQ20 VmMRFsDrq+igEk7ozEVkbgkqRlegeLcrsMHZwLjKdIC6FFjeoUAHgtM3yn6xPEm475cH AIjoLbRLKz9dDCTKTCzJuRrVPvOjYlCqi5GRmunbyuh8xb6YbFyHtyEvZ5v7GqcEb8SP O1V2nrKmmfKZhOVhzwT1l+WYkVW84wfCMYSuK/9H6Y/pQQ9p1iSlqNpP5BfRA7IPQEDx /FiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=CrnmGcGfdcLHB7GRZR1SMHayS/3mjg3biToJQclum+4=; b=EzoMIITAHJ/jBt7q5u5b+4RV9ipn3676MN9IdarCUM6/X5JPzw56NP1Y8hKSRa3Z8A keBj8ZDRwMRNya+KWowAlwfnDhkIWXveevD4hL/qaaEZyo4LtReaK+wvxbbMLdO8Igk+ IuRtIevfYZcLjRKddZi0bExFr6Bl0v4Qu9HWkM7QHPjwCv86+UlhiC/LRnnx2TqF0cS1 J6Hm0zJBwNlVwLG8FIgnh/yhdjlDaAKap4Xo0s99GqHZJ7sEU4RxoaUF7Ved59XV/Au7 ubKpmkPI7+PCBG6uLT82wKy6sddSbdd/fVR93oAi8IjX4Z3OrvnFZoYrUbxaMzMHhV+o Q6RQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f89si80461pje.50.2019.06.25.12.51.24; Tue, 25 Jun 2019 12:51:40 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732790AbfFYSCk (ORCPT + 99 others); Tue, 25 Jun 2019 14:02:40 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58838 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727233AbfFYSCj (ORCPT ); Tue, 25 Jun 2019 14:02:39 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: bbeckett) with ESMTPSA id DE8FC28627D From: Robert Beckett To: dri-devel@lists.freedesktop.org Cc: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Daniel Vetter , Philipp Zabel , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Robert Beckett Subject: [PATCH v3 4/4] drm/imx: only send event on crtc disable if kept disabled Date: Tue, 25 Jun 2019 18:59:15 +0100 Message-Id: <6599f538740632c5524bab86514b8ba026798537.1561483965.git.bob.beckett@collabora.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/gpu/drm/imx/ipuv3-crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/ipuv3-crtc.c b/drivers/gpu/drm/imx/ipuv3-crtc.c index e04d6efff1b5..c436a28d50e4 100644 --- a/drivers/gpu/drm/imx/ipuv3-crtc.c +++ b/drivers/gpu/drm/imx/ipuv3-crtc.c @@ -94,7 +94,7 @@ static void ipu_crtc_atomic_disable(struct drm_crtc *crtc, 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; } -- 2.18.0