Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13474031ybl; Sun, 29 Dec 2019 12:46:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwyHBnEaoaaZldP6ECE/Fo52WqYsu67yfE7WJv91HbCkS/kX0/PaH7esZL25be8A3Ww6LDC X-Received: by 2002:a9d:7d85:: with SMTP id j5mr53483802otn.86.1577652391562; Sun, 29 Dec 2019 12:46:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652391; cv=none; d=google.com; s=arc-20160816; b=e4adPFpvEmHMc+90kRatgMCdtDy4PfWHbsB5b2r9Dz7fgzFVW/nQYuKde0QTUkOMAr H2t6IYSjhh/zX2t3qm5NR+0XlIjYQ4IiBkXrrm4l/g8gBcPZsdJxs3DMIVXRDuqW2lfZ hFD7H7eyi6t8dwVAbMXk3Bbdc2pZZVeZ89FPiyQ7D/oyf1L5XiW2TPqc4yBblsj4CWpb +RPROhIw91Rh62j3gOE7Hmb6myErz6ORqsOxUQWasui9/N3wIARJIBQ6+p2HgjwMQl2E L1xqSNVy+TLvqy9ARqlVXT83N5rYMXSG+eiHAZ0bu2Ry/JiMQ0zBnzBI41cnGKqAmOxx 6nUg== 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=DcOL5djnbjoboX6dRRRRx1LeQfZbb27/Bl1SGrcgd7U=; b=AuYniwNhYVtqsOS/zFIf0/qIRRaFDflonjlOMAuCYlVqJBk5fgOjwzItU6uUiuhENO 2/hVD9gxe3h6E380lNZVO5H+FCsbux1uouvSmTTcxh9oj46Mb+zWmx1dQOUc7YoCtc6Z DfDgjpcsQaTGsi1NF4rrmwExV7XZeA3567XLmqm7rK4g+S7jm8rK33ekW1/r3pSNUtJv ++leZ+kZvncMX9NU3A/omGtej9wVe1VUot0VHt8hbg4aODmyqjkRCels8NyuFu2/53QK 5/8/Q/kWADS/oYaiS5KtLMGbOmUvjF/P2kMN/cnp9lJykP/5rb8GehsrSFRQgSNBeCtr B22Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pCJduSrF; 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 i8si20552776oih.206.2019.12.29.12.46.20; Sun, 29 Dec 2019 12:46:31 -0800 (PST) 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=pCJduSrF; 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 S1731009AbfL2Rsd (ORCPT + 99 others); Sun, 29 Dec 2019 12:48:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:59872 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731474AbfL2Rsb (ORCPT ); Sun, 29 Dec 2019 12:48:31 -0500 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 903A221744; Sun, 29 Dec 2019 17:48:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641711; bh=NPabPQxlAlRgLta9Wp5g+qVUkDV7fJuVhnyOopc1cYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pCJduSrFwOT4PNcq3+cRUvB3l0ttSJqR6eXU16DVlUAvCU+ALmu9v9GHk6/H2dwR5 5Qz23YqCg8oQ3BRr+95eAgldm2gLuZ7sycHu4xsaZUa0IVHu7f46Ky97ZIhg2cf+0S qqxWwYpBaJLZOpgc0V8KWh3vXS83iXkBXGubws2Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benoit Parrot , Jacopo Mondi , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 178/434] media: ov5640: Make 2592x1944 mode only available at 15 fps Date: Sun, 29 Dec 2019 18:23:51 +0100 Message-Id: <20191229172713.635485703@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@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: Benoit Parrot [ Upstream commit 981e445454531c9d5ac5d3fa8c0f1bd55262d001 ] The sensor data sheet clearly state that 2592x1944 only works at 15 fps make sure we don't try to miss configure the pll out of acceptable range. Signed-off-by: Benoit Parrot Reviewed-by: Jacopo Mondi Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ov5640.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 500d9bbff10b..18dd2d717088 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -1611,6 +1611,11 @@ ov5640_find_mode(struct ov5640_dev *sensor, enum ov5640_frame_rate fr, !(mode->hact == 640 && mode->vact == 480)) return NULL; + /* 2592x1944 only works at 15fps max */ + if ((mode->hact == 2592 && mode->vact == 1944) && + fr > OV5640_15_FPS) + return NULL; + return mode; } -- 2.20.1