Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5642581img; Wed, 27 Mar 2019 12:17:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKMk9rkBCOSdHzZCwuJ8986v8ef4YNHTtaWfoC2BuhQCLUMNDYE5f/AXRNQYK3eRhe8H1k X-Received: by 2002:a63:4346:: with SMTP id q67mr35478902pga.92.1553714232669; Wed, 27 Mar 2019 12:17:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553714232; cv=none; d=google.com; s=arc-20160816; b=v+yEdKu3DhlU+iUFPceR9Rsvds2jmXrTJ6MRLbHt50Iwj6tkvTK39QW1/3HhtkKM3c hfOgIEHi99O2jeXuM1bzop3lwB0rgwac/UVdJwdF/9mycS7U1CAy5Jycb6KReRfzWihf z80efXV8W1WEg+/2VWkVtv91Mbu6YJ1dzpNi4rUiiEPVUhHG0oUSfwysQ1TcwnzMkFaj da6HpoQnJx1dt/vRrwJTUA73QnvozoIX18GfVAD4HP6HmPxkNjM9HwrNGCmMXJ47DBUX o11csmiVtZu3cjQmCptAG5V7Xxmp21ftBvDZ1oT0i8QvtD1ikresFkF9+50+g29mwKF0 jY9Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1Q8vaF6TY1E70cxRu/HJDipUDuzp730KU4gI12W5etw=; b=g3qkEzYzUwW/u/V6DS4JXZMbMW0U6a6/g9MaJjd+r/9+Vtmaodq7j4wDKbinJlPJOz sFpbAMvL2xih7pYcVA6TMchT4ofz8E7govJ4bzFdzTXcIknMjRbgpuQOVxQ0tbEp+SoZ Rn97TUsM8BFeFoNhUuQEKEIchG6urhgXf+CSDw0ROBLfgNIwk23OL6RW2eg/lw4uTUHe x9+sjodYZfurGxhS60FERkDz3EjVDPGJ2zAYZDBbPCxYXl8ZMx4+EjE+Oz0FfVXcuqeP YFzmn/Mz9MEvPYdpZfSii0cmlyfDHt3ZhikVshMYFo7B5jLTCaMX6H4faU+90/xsyaqS drYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vAmkXOuR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si3815299pgk.289.2019.03.27.12.16.56; Wed, 27 Mar 2019 12:17:12 -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=vAmkXOuR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388498AbfC0SJG (ORCPT + 99 others); Wed, 27 Mar 2019 14:09:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:50854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732800AbfC0SJD (ORCPT ); Wed, 27 Mar 2019 14:09:03 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8243E21734; Wed, 27 Mar 2019 18:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710142; bh=6Xj19h1s9oFB9RZZByv/kdbSzoXRJhZyJi2bYuMPyZQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vAmkXOuR7LCpYzKZ91o7+wnOh4AhRKAVrESCsNhuNTTqaLp3wJfEvebTsRwQ2Wzum jkjFxUU5Gmy0YYMbJ1bCb6l1m+yw8lCLNK0y9mgu7E/Ysp03U7KjCoPZAJ8SyaAZZE HkSTHIBJd7/PbUEzdokCcs2UXIIn818pRtPBuh9o= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Akinobu Mita , Enrico Scholz , Michael Grzeschik , Marco Felsch , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin , linux-media@vger.kernel.org Subject: [PATCH AUTOSEL 5.0 215/262] media: mt9m111: set initial frame size other than 0x0 Date: Wed, 27 Mar 2019 14:01:10 -0400 Message-Id: <20190327180158.10245-215-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327180158.10245-1-sashal@kernel.org> References: <20190327180158.10245-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Akinobu Mita [ 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 d639b9bcf64a..7a759b4b88cf 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -1273,6 +1273,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