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: 8618551 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5B52E9F54C for ; Fri, 18 Mar 2016 11:32:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 74FB92038A for ; Fri, 18 Mar 2016 11:32:33 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0356A2037F for ; Fri, 18 Mar 2016 11:32:32 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1agsUR-0008FH-Dg; Fri, 18 Mar 2016 11:22:47 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1agsUO-000884-6H; Fri, 18 Mar 2016 11:22:44 +0000 Received: by mail-wm0-x22f.google.com with SMTP id l68so32380213wml.1; Fri, 18 Mar 2016 04:22:23 -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=J2Hegei2QYo3d06ToE6bFnxtbH/a7vR9wipi6aVE6n3KKZLSSsVQZ4MDYXDPokh6MI CNCuT2pLC0xMUFDSOl6zBl1SDHO/xUssx2o4xzT3JNuwp/encmqbOYCvif9sl+o293Xu n94ncDcT087gWL7HHRvi27BCvpEOUYQns/9nFDvzExx4VSxBcKOMLDrkHFgQ2PIiVliR iCDgM1NGYd05mVwvh8uLySPolomdRsRvxp43LBgEGZHSYLaSHUbFzoG2RKP+r6TCPsg4 EtHns5JFhcz9wG4QEuwlLckreGHCfsZqWuXHifZT2TPtpGvXubPISZJuB53OLi2S0nwd t0WA== X-Gm-Message-State: AD7BkJKFDvCGNfxJfx7x5hAvcTGF4SbaSSQ2/boeUVepUjGO/47qDhVLUMC+LQrph+oTJw== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160318_042244_395260_1D1DD4B7 X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.4 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Heiko Stuebner , Tomeu Vizoso , David Airlie , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Mark Yao MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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;