Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp999836yba; Thu, 4 Apr 2019 02:06:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqynASUKZwFonhidlAV46/9iK4ttecA30agulveSFFmQzRqQ354hpwDx2eJ4ewMYo6lsT7N+ X-Received: by 2002:a17:902:4381:: with SMTP id j1mr4938317pld.75.1554368805064; Thu, 04 Apr 2019 02:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554368805; cv=none; d=google.com; s=arc-20160816; b=ELil3Oan1FI9vEh1JM80zNL9mVwOA8nCGghmmDD+VcCYEFdIhBfcA7/39JHarMvTUQ /M6igy8ek88Hed4VAr8NnFuAFgPsblOV/Z9cXAum1d2a5cljT+xGmpKuwqkV+m6ZxF+8 1BWvWsuXnmRnGg885xu8D16a9JqJ2Tyu6fmx/MUNsuZ5ehkW4NQNKydhNPZze/L5BmgB QOU2xtQIrPTEDdIjXxR7BurbaaLm2hPRVjTuVvF2LHIWzxK/FQcZwS3glRJKtLRME+Ws YND3pOZtb6zCDOlUkXQ1YNxq4HZ2sLQewGGz+xfV90taI/6UgV7z8XjjBXfeL/zYLwvl blcA== 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=J5+e1B3kUUrxDi/iWr9dx1YA3zH2TJ+nTnCxEVjJGbA=; b=mjnIKPFQDbMxCeJ/sSq25UakLUirzekyYki+YcZWhcNJUylWnstgxW072ViZ1GeKaJ JezHIE1y2EfyJKJz5upC3v5VTXpMSYZ88O8hjPAUZgDWzJ+w40YahU1OYWvf2ELBeg5m qt7u/XdTu8hqZa3xVd0zKouhf80iAZaZAZpKM3cAFF1V0EXRGxMPy7m7m8vJDYTO85gE 5zGGCJSi5bJ3uWSAf06ou0PQQu66rqlQV01yXRFGfCqpYOmx6NCCXkfaQwYQH+WnwTVK kdPHOevn4+Fdrm71o3rfQBQeBx+v8MrB+swsL3GKSvhrHolpA98M09H6HE0yE4wVJeMR g+aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ATD9nvlm; 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 194si10985303pfu.48.2019.04.04.02.06.30; Thu, 04 Apr 2019 02:06:45 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ATD9nvlm; 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 S1731752AbfDDJFy (ORCPT + 99 others); Thu, 4 Apr 2019 05:05:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:44142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732207AbfDDJFv (ORCPT ); Thu, 4 Apr 2019 05:05:51 -0400 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 7864A21741; Thu, 4 Apr 2019 09:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368751; bh=TI+36p123s+UiQlX1xPRxGtzKRGZ3KxJxDmIpery5Dw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ATD9nvlmJRFWlXzMig8gadQNnm3Rq19DgqtxATVntMOoytvVytOlq/lOHDB22x+1D B+mTEGpA+QcP4h6cCvTdOGmL7ZPLdxa1vb6N6KJoTFEE7wTNVTKjAi8NPl9BlZD/eI G4jCFdgvUlPsQK4TUTjfQBt34B6DNWHLYquZjgVk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Enrico Scholz , Michael Grzeschik , Marco Felsch , Akinobu Mita , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.19 156/187] media: mt9m111: set initial frame size other than 0x0 Date: Thu, 4 Apr 2019 10:48:13 +0200 Message-Id: <20190404084610.468155599@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 29856308137de1c21eda89411695f4fc6e9780ff ] This driver sets initial frame width and height to 0x0, which is invalid. So set it to selection rectangle bounds instead. This is detected by v4l2-compliance detected. Cc: Enrico Scholz Cc: Michael Grzeschik Cc: Marco Felsch Signed-off-by: Akinobu Mita Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/mt9m111.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c index efda1aa95ca0..7a7d3969af20 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -1014,6 +1014,8 @@ static int mt9m111_probe(struct i2c_client *client, mt9m111->rect.top = MT9M111_MIN_DARK_ROWS; mt9m111->rect.width = MT9M111_MAX_WIDTH; mt9m111->rect.height = MT9M111_MAX_HEIGHT; + mt9m111->width = mt9m111->rect.width; + mt9m111->height = mt9m111->rect.height; mt9m111->fmt = &mt9m111_colour_fmts[0]; mt9m111->lastpage = -1; mutex_init(&mt9m111->power_lock); -- 2.19.1