Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5612353img; Wed, 27 Mar 2019 11:42:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOKM3yGmm2+6sAdjqfjxrKZKh1+JpmZlitIvsONnRspRnXydieVZlzboufaRLlWrL25yG+ X-Received: by 2002:a65:4341:: with SMTP id k1mr35531639pgq.175.1553712122032; Wed, 27 Mar 2019 11:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553712122; cv=none; d=google.com; s=arc-20160816; b=GMb5nFsUVHTTIIvDMMLIoZ91RNw6o9PlTxEWmJbgIOPAZvysgrUhhbptkG+ER6+j7m GEGhOxdhW24o0mwgCJNKk++NehnR+6/eXX+W/DxQFEPfTOhq3m9mHL+DmfQ9IgHzP4U3 TxKyr3m53IUxva8t6wAxyX2jye7j/oEZ6tO3A4twDKxEgAGD3X//y6pP0UpZMzibKIjx lED+uMZv9x9j2tGZcmGfUsDzbM4tjQjBNzmZsW1YUnOWoroVIld8KLNX8cMAvlIGB5E4 RR+aX86O4+Tpj3fAEgALJ/JLQlZZd16Gu9Fr9HX6yugB3bQE5kBmQ2Uzuvl0NtmMapCr FfUQ== 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=3Ndt1MohBZlaZBREVjYsYmGG5oJcjlqdx4Tl2ROlLxY=; b=UIr5v4EblCDtG5HgpfQyMGXIwn+sR4dpCNAvMvT0akSZjBjRfc4qwrkrXwc1eudZ93 x7AaJ89YeRTXJbYQ1ZAVDr/S+yRLMU3ZFf8yfTvg0jLHDAYSS16zjtYS8bMJDAmmit8M /jkRle0CnYkzMppwvxqYNMZI91ztZENSIfXtcT6x8+XejMXaR3ISckb/IJynGWeosvYu f2L31V9waTABRugrwRKtz2tpGLvLk0VWq7oCCMLnqNQQfeIh+O7bkBRkthcVG5pwgT45 1ApfRCRy5kJHti9kkIv9g7H8v5Isun5Jdrxsz27+/BDQeqrwS4N+LK5g4d6CGV9jUBlo CmvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IcOqMgAf; 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 v10si9446890plo.439.2019.03.27.11.41.46; Wed, 27 Mar 2019 11:42:02 -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=IcOqMgAf; 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 S2391371AbfC0SW5 (ORCPT + 99 others); Wed, 27 Mar 2019 14:22:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390363AbfC0SWu (ORCPT ); Wed, 27 Mar 2019 14:22:50 -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 E413B2063F; Wed, 27 Mar 2019 18:22:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553710970; bh=2zVGAdUGAF3cF9Xgcx4tqoi5AVwnpa9JW0TDqsbYPR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IcOqMgAfOYsj3V69GQpvg+2bjy2rUL1OIfynZHdlZWv9wYvtgjZ5F6zILYLKZeCKB vfR9KnfITImlU8WzKRf10EbwIegMHIjCi5mQZ0YyL9QAM+OxSEPxOXiaIcGwIuUnRF 9alcjNPd0PNYVf4iRwmTIwozXUv0R6/HqAa9TX8M= 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 4.9 69/87] media: mt9m111: set initial frame size other than 0x0 Date: Wed, 27 Mar 2019 14:20:22 -0400 Message-Id: <20190327182040.17444-69-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190327182040.17444-1-sashal@kernel.org> References: <20190327182040.17444-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 72e71b762827..a6145877bd00 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -974,6 +974,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