From patchwork Thu Jan 10 15:28:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10756061 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F25DA1515 for ; Thu, 10 Jan 2019 15:28:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E15E128EF7 for ; Thu, 10 Jan 2019 15:28:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D561B28F83; Thu, 10 Jan 2019 15:28:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 858E928EF7 for ; Thu, 10 Jan 2019 15:28:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729657AbfAJP2z (ORCPT ); Thu, 10 Jan 2019 10:28:55 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44610 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729188AbfAJP2y (ORCPT ); Thu, 10 Jan 2019 10:28:54 -0500 Received: by mail-pl1-f196.google.com with SMTP id e11so5328415plt.11 for ; Thu, 10 Jan 2019 07:28:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BRjm403oirrjQoDG14oEXNOcD7lBBEEACEf3lxalZ68=; b=tev/FkFbcYCRUN8zRo93Vmwin/3OyjvHgXyzR2Ii9l2KQjYMd97FBo263TLJCiD86o M+rb3Fon+4ky2ri/TBR72WEjC4MGxewH03TxJOxDBjAvSX6Zedp/q6oCcrW5Uvonnp0B ndzB7wz/gWN/EDXHTcmotgJpOUwQ6aIL+JlfwkSLCiaPIKKtxrLKYYxvBx8P6lhzp8fV ok/HNMmguWtYxw19dyh5xH1cbbij3sdLxiIFoqc61U9s6XJkgfmqvNgGx28nG/XKF7Wx UUcawVIeFzfo8vkmeTf3ylN2EzYTcjDKy1uRPTpgk19gOFaSj0OAuoNIwAPliTCuspOp jnCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BRjm403oirrjQoDG14oEXNOcD7lBBEEACEf3lxalZ68=; b=jsBQRdAuD2i4LOHm/+fCj1XtI6Mo77NyDgL/s6+aFDjAtw0iqtdqwnjW8mW18Q1JhT L0C33y3+0TOB5Zxfx5KDM2idAUrqOzRZkRQIjSji+XPhm4696k2bSoE2HlNt2nPSR9js oDjVA35APQSVQcMUhbZqTj1gxAVE7rUwmo7FzI+3T3/OXO/vQd6VeRnvCcE3KVqPB4cz 7j3txMnrkrLJdsW9IzsmokfkmQYtbm/Cf7ey1J/o1hIshpX6YVXU5xjn9H65D/meC1Su wZi7HvGDYyOZPzRIUNhBmcBE4fBup86cLaP2KtQaWakRGF6p5KPRfgsBfe6X69v/h/ts zo2g== X-Gm-Message-State: AJcUukdXdcE/G8AXC2W+c9exsTprEISA7Yv1xkd7pwYvkj5h/c2rFXfo y5I4661+0VWKcBmf4fsof9NLF0SS X-Google-Smtp-Source: ALg8bN6Sxrd7a3B58rMPIzOezBRfp/G0b9yjwHo15LcKm5g/ee+yNi0f94jGunhDdUZiXT9+MaVs5w== X-Received: by 2002:a17:902:ab92:: with SMTP id f18mr10366360plr.221.1547134134142; Thu, 10 Jan 2019 07:28:54 -0800 (PST) Received: from localhost.localdomain ([240f:34:212d:1:25a3:d6ca:ee6b:e202]) by smtp.gmail.com with ESMTPSA id y1sm105916116pfe.9.2019.01.10.07.28.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jan 2019 07:28:53 -0800 (PST) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Enrico Scholz , Michael Grzeschik , Marco Felsch , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH v2 3/3] media: mt9m111: set initial frame size other than 0x0 Date: Fri, 11 Jan 2019 00:28:29 +0900 Message-Id: <1547134109-21449-4-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1547134109-21449-1-git-send-email-akinobu.mita@gmail.com> References: <1547134109-21449-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- * No changes from v1 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 e758b4d..c442f80 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -1311,6 +1311,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);