Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp458319ybl; Tue, 28 Jan 2020 06:17:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwvv1zjoGjGkXF2yJ2xOroCX0sF6cFNxa+fkWCcml7u98EkE4hcnV3874ZA9PS5HNNnbRxi X-Received: by 2002:a9d:7c99:: with SMTP id q25mr7162294otn.105.1580221060846; Tue, 28 Jan 2020 06:17:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580221060; cv=none; d=google.com; s=arc-20160816; b=In2Fk7Gtf+GX2lXha/r60IDT8QojITnrqMbXqH85LdH247jUXVfjN5az+97MFsO9jB 0GKpw6Wy2RJRmblWa2tNfAtp2gjPFNzAq5xxUU2XBpMiGY7oBtDpB5kUq28IN6EaT6OR 6c3MTp+JE+FTbRg4J6RIvCaDPixfYxZy/YTlj94F8Ptr0TxpsNdMfzgYzN+Y0lgb0fwt jhs+fXvLJ7B7/gdx/HvsAV638exzd6G4nyIBg/+kilEByBJ4JDt+zw88EuwttW/ei7xR pvEpbRbkQsFceARjhujeDrs5BjqkgppE3r15uBG6lkcZ/+nhief5fOBcFiliLIrVRjhp mdjg== 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=cftg0Gf1rtfwwfc9Uq77jbMCw/l5YLE/7FxEEowyBbw=; b=wmM6PeyjbEnkOkOjlKYlGiJKMJu4nYFgb9Xaui73WelqGzpTBXmhjR/a7xYSrwyE4z zqUxpVEgitrG4dQwpv+HtnJPYQcqoZcki3sFWPxCqNY5HF41/t4Nnpm6v4Pj5aPfihg+ uhWENRSCJvkxAJEpX3fWSdBZviMNpxq+4bTe/n1AtCX2xSTs3KpC4dR0Jt3XIUkuIFF9 j30YuIvIBjQUHkmxg68+thzeNj9HFkctGOATOJCSXyNzdfkk5ULxpTaulGx77KEDBONi mUYQhwLW79a1KXrLmUF0SDBtRvJTIZw9+pfAO3LSMKxdeEec8CHcTW+0qZZ7aAjQ0sfi K1mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gt4qAC3M; 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 j13si7967529otq.146.2020.01.28.06.17.26; Tue, 28 Jan 2020 06:17:40 -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=Gt4qAC3M; 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 S1730308AbgA1OQ2 (ORCPT + 99 others); Tue, 28 Jan 2020 09:16:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:39766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729915AbgA1OQZ (ORCPT ); Tue, 28 Jan 2020 09:16:25 -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 CB94D21739; Tue, 28 Jan 2020 14:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220985; bh=9x8XvY9h/o1zfRSpFKrBJJBJh19ZlO0NhZjtFOmPxg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gt4qAC3MFC4DcpEAVhjjVS9ragpB/3EcavrUAPF6XdIJfk2NDWyIRmm4mfYYqhL17 R0XA2V8lKVwwrLc15nVLo3C/CFmk7N51UmmnFvdOklJ2j5Lm/fnesFcmcq8rDDSAkL SvtX2gFDj4Co/E32rDPqG5oUgoBGvh7m1qc195GM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Pawe? Chmiel , Jacek Anaszewski , Sylwester Nawrocki , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.9 043/271] media: s5p-jpeg: Correct step and max values for V4L2_CID_JPEG_RESTART_INTERVAL Date: Tue, 28 Jan 2020 15:03:12 +0100 Message-Id: <20200128135855.860416870@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@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: Pawe? Chmiel [ Upstream commit 19c624c6b29e244c418f8b44a711cbf5e82e3cd4 ] This commit corrects max and step values for v4l2 control for V4L2_CID_JPEG_RESTART_INTERVAL. Max should be 0xffff and step should be 1. It was found by using v4l2-compliance tool and checking result of VIDIOC_QUERY_EXT_CTRL/QUERYMENU test. Previously it was complaining that step was bigger than difference between max and min. Fixes: 15f4bc3b1f42 ("[media] s5p-jpeg: Add JPEG controls support") Signed-off-by: Pawe? Chmiel Reviewed-by: Jacek Anaszewski Reviewed-by: Sylwester Nawrocki Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index c89922fb42cef..a63f4eec366eb 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -1963,7 +1963,7 @@ static int s5p_jpeg_controls_create(struct s5p_jpeg_ctx *ctx) v4l2_ctrl_new_std(&ctx->ctrl_handler, &s5p_jpeg_ctrl_ops, V4L2_CID_JPEG_RESTART_INTERVAL, - 0, 3, 0xffff, 0); + 0, 0xffff, 1, 0); if (ctx->jpeg->variant->version == SJPEG_S5P) mask = ~0x06; /* 422, 420 */ } -- 2.20.1