Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1370823yba; Tue, 2 Apr 2019 07:41:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9K+rPSiMoryF2OjNOPdM0U6blGvmZ0jE4wfo8jpcsAaRc2JRIk1jLgmMID4tPrerZuto5 X-Received: by 2002:a17:902:9a4c:: with SMTP id x12mr70734814plv.157.1554216083738; Tue, 02 Apr 2019 07:41:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554216083; cv=none; d=google.com; s=arc-20160816; b=Js1J6no6ST/wFp/+OEp85KTE7urt1v2/d5ep+4Hir3xtyyjo5jLKNs6hSGdllekXP7 8bJvGQntrSBz2sbnqNrizr4QZZu+Cm9Btn2zmqKYCmK9LY6uH1js8vHHeIfRYPh5AbO0 5kqQmfZ/E1C76M3H6r3rbufem8WKF05lbKkTwisX0PkvL/wM9cRqLOFLLJTqku98RGE4 KDrM50yRAekuxflfozmVVSR8xJXdDHy9UAKf1fxxa0g9RV4g+OYZ+ZDrARHWRQPR1mSQ Nt2ZED/VzxoPoxh6cHwP2Rw2bMD7Ah35BBFMisd4BI1yt9PO+NMdxEJL11zdpwQ8CFa5 9DXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=JWRYVpK/ao53NXVvKOYTqCUCbWwh6ZGK3vJv4WX4s9o=; b=EVjzIZnroKb3Sz3s+LEp5PFSKGZU0z9HBwGY+lHdN/wSDvgJfegW/Ruae2vUfLt9MM ubM2QYwtNDhcgNpIdLe02ZZTuW1mIsL+nZdyzc35GUPFb4kfYp2vKNvOrZegBSwFHb5W 0al2bxNlaBL6EfkulUmXtH//D52mLJTAgfjT2SJuU81ekCp+W02V9GJLA5ocbOmYTf82 WwFcKvb52SysXu3I4ePYlA/hWGxNW0Z2PwV3brnKRK7hCvyUzggBlPjHDuD+RTrS3iGv ScFzv3USgMf6V0cLAXfi8ldVJ5ZuyE2Y+yyO3OQmGopiHFmij0ArCcz2rgjNfOQqKnuh vDSQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si10373334pgm.288.2019.04.02.07.41.08; Tue, 02 Apr 2019 07:41:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731626AbfDBNkY (ORCPT + 99 others); Tue, 2 Apr 2019 09:40:24 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:43260 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731450AbfDBNkG (ORCPT ); Tue, 2 Apr 2019 09:40:06 -0400 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hBJdu-0002mg-Q7; Tue, 02 Apr 2019 14:39:59 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hBJdu-0004rd-2x; Tue, 02 Apr 2019 14:39:58 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, Denis Kirjanov , "Tomi Valkeinen" , "Laurent Pinchart" , "Kieran Bingham" Date: Tue, 02 Apr 2019 14:38:27 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) X-Patchwork-Hint: ignore Subject: [PATCH 3.16 15/99] drm: rcar-du: Fix vblank initialization In-Reply-To: X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.65-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Laurent Pinchart commit 3d61fe5f59dd3e6f96fc0772156d257cb04dc656 upstream. The drm_vblank_init() takes the total number of CRTCs as an argument, but the rcar-du driver passes a bitmask of the CRTC indices. Fix it. Fixes: 4bf8e1962f91 ("drm: Renesas R-Car Display Unit DRM driver") Reported-by: Tomi Valkeinen Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham [bwh: Backported to 3.16: adjust filename, context] Signed-off-by: Ben Hutchings --- drivers/gpu/drm/rcar-du/rcar_du_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -89,7 +89,7 @@ static int rcar_du_load(struct drm_devic } /* vblank handling */ - ret = drm_vblank_init(dev, (1 << rcdu->num_crtcs) - 1); + ret = drm_vblank_init(dev, rcdu->num_crtcs); if (ret < 0) { dev_err(&pdev->dev, "failed to initialize vblank\n"); goto done;