From patchwork Fri Mar 18 11:22:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 8618421 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 44F34C0553 for ; Fri, 18 Mar 2016 11:22:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 704FB20351 for ; Fri, 18 Mar 2016 11:22:35 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 9B3CA2021B for ; Fri, 18 Mar 2016 11:22:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7BC666EBD1; Fri, 18 Mar 2016 11:22:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4ABE6EBD3 for ; Fri, 18 Mar 2016 11:22:24 +0000 (UTC) Received: by mail-wm0-x230.google.com with SMTP id l68so27087284wml.0 for ; Fri, 18 Mar 2016 04:22:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=vw3IOOqLp4UcE+VdwJRNmAKJNjtj7UlT4vpnRZBO4l8=; b=i1Ug1Efw0Cgkvkyjzh4XzSRCl6h8P5eKHPXEupAJyLdmwbF4Unl88pMjgMN/ZRdn0X Elzz0feV/bukVD7lEfG9OVysqpAMumtQ8gzNGUW6itLppyffbCWtq4J7/Ca9SWAmVtg+ M1yxuS9amLSx6WnrVm3MWXjSNZPkM92u8Jmc9AQRjIP1QN9GsPDf+bJoyiEbHhRKGQxN 5tDGHDwff6ZMN5lFcEumiEbq1BkAsGQS3/hYykGFNfxp4CGRKVFcMAYlefcL8tQcFTHD zc6c3gfEQERn/PsI8IuFaBxWeVw/n1pY8a70xoZwNvO+jZddM6obqiUZmIzTGBqdZhOS 96pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=vw3IOOqLp4UcE+VdwJRNmAKJNjtj7UlT4vpnRZBO4l8=; b=KYWoMvOoYpYzYOixEaV5/H1q8RVqR949hkAy4fiWAhHwK6vIZzvRuR3K0xJ9ek2sGi a/xEMZeZ8RZyky4fxLDFyBaRh/Y1bpU1QTLgNWjfSiK2e+waABj5lnB3JUzwDJVXe5Tf VdXypIlPH6cqyHKHg53g69VXsoUXPqNCldF9TIlQopv/PGuBZdCxuOoumW7mB+5DOh6u JpwD5YLU7DqD1f+hJk4Ye6Od8WdJgxqTIugAsxeeeYzaUUKuAwx27xJExRqd9ZulPSR0 paMd3HtPBO9ER/eG6leHIRQ3wjw9BOOHvABac21NsEMyipi7eLXj7aBUEJ9OQ26n7j4m kGkQ== X-Gm-Message-State: AD7BkJKZX4+lkBEBCugFCFXoKXnVu8JpfinGZyccx05l0CsZeA1zj4ZL1xOEkyEu5DXPuQ== X-Received: by 10.194.94.229 with SMTP id df5mr17558193wjb.133.1458300142750; Fri, 18 Mar 2016 04:22:22 -0700 (PDT) Received: from cizrna.lan ([109.72.12.137]) by smtp.gmail.com with ESMTPSA id 3sm12313901wmp.14.2016.03.18.04.22.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Mar 2016 04:22:21 -0700 (PDT) From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Subject: [PATCH] drm/rockchip: vop: Don't reject empty modesets Date: Fri, 18 Mar 2016 12:22:02 +0100 Message-Id: <1458300123-6397-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.5.0 Cc: Tomeu Vizoso , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP So that when DRM_IOCTL_MODE_SETCRTC is called without a FB nor mode, the CRTC gets disabled. Signed-off-by: Tomeu Vizoso Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_NsjGMhfxYheHR8xXXmacZs+p5SHw@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index fd370548d7d7..5e57f5b2e4b0 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -885,9 +885,6 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc, { struct vop *vop = to_vop(crtc); - if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0) - return false; - adjusted_mode->clock = clk_round_rate(vop->dclk, mode->clock * 1000) / 1000;