Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp765928ybe; Fri, 13 Sep 2019 06:04:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmMJFldjvTUCHQmw9WHMNPiJ9R3IMud2oEqy9smtg52QmsSYRyhC9Ax76UcEdn7TwCCUL1 X-Received: by 2002:a50:8a9a:: with SMTP id j26mr47767062edj.251.1568379894773; Fri, 13 Sep 2019 06:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568379894; cv=none; d=google.com; s=arc-20160816; b=WQn1g9abQQVLGpxZFcDg8V3VuoJFa4Q+M/dOiQPmJN28eBgs1e7T0Ifc9djdAtE1bw LslMsmMewe5PNcY/jYfwHeYh7rkR/MTApBmjiejB6WoJ7kvN3DYX0daxeEh+HmUnAs/F 6QC5AOTIv/MulRQktpVzvwid72fsAzE3U/IyPy+8QYZr4au+vNB+NRogiex0xoeBoyiU AmnC/F5HEOXo3WZAucWoaXFAFg/RUZHIhBYNniLSdkxi0zAoz11XgBtATlfUcOEPsA8+ M2f/18KNn/G7EIJeOWPuPdrGJMYFD31sSofJFaQlReJ7EIeK4CRSq0epdGtPj70YRlin jHnA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=PvQd5+H/pYBoxUYqdiXsdI5xNGTJDwYcsKts9WC+Kjc=; b=mviiF2GV9bHgFhs9jx7PH6TcihgxL3wy7rRcPo/AKP1432L7wzoXZMvWEyfj1GsAOX vB3+mJOpRhXCKoOECo/xjiDFwxElKRs/gP+DMChLybqsgq6KnPgwq5xOzQ87c66MshyD 3ywuqSei/Zyw8XsiGzCY/rWbBn0R6FKG8t8VO9B3IQ9DvfLEa9MDUjEUNI8ngC+VPwIj XDtjrfdBNfPAqAFpqBIBe22KMttDOkj/we6eA2GUpenEIDN310Rt+pPaFXH4Qt4C/jbk tWuKE/gG5jrZxKvSCsKh/9SjLhMyxY+wPsa8BfGJGZK9M7+3u1S0/g8lAd4MUwWygMCL gUJA== ARC-Authentication-Results: i=1; mx.google.com; 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 q19si14656208eja.191.2019.09.13.06.04.30; Fri, 13 Sep 2019 06:04:54 -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; 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 S1730327AbfIMNAO (ORCPT + 99 others); Fri, 13 Sep 2019 09:00:14 -0400 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:41639 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730272AbfIMNAN (ORCPT ); Fri, 13 Sep 2019 09:00:13 -0400 Received: from [IPv6:2001:420:44c1:2577:888a:538c:8dda:557b] ([IPv6:2001:420:44c1:2577:888a:538c:8dda:557b]) by smtp-cloud9.xs4all.net with ESMTPA id 8lBIiWgdfV17O8lBLi2hZJ; Fri, 13 Sep 2019 15:00:11 +0200 Subject: Re: [Patch 02/13] media: am437x-vpfe: Fix missing first line To: Benoit Parrot Cc: Prabhakar Lad , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190909162743.30114-1-bparrot@ti.com> <20190909162743.30114-3-bparrot@ti.com> From: Hans Verkuil Message-ID: <018a5f55-a750-c86d-da82-2b7c586cb33e@xs4all.nl> Date: Fri, 13 Sep 2019 15:00:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190909162743.30114-3-bparrot@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfFOjpCl+mpovnjlfvZNktYbZD5Fxh/9Jy/6b+9DTn74H4KMwT9wFTUfbhL0/sOJRLJytI29TC0zENCVs6gSrowG7egXGEpb1aJiC9Rn4luEBW4qnF7Gh l8cvAgbwfMjG27cy+vcZ+kdidMTtgT+0y1g4j5P4BGJANuPV8xWQDOyAPIJqSqqwIfedqC3ap0Px84ajgKlrhWhAVuA2Ya1QSD3M5Q+MJXsDM/dgaR5seC0p Zr+ZqhvVCFhMjo0rd1N27yJPAaOoafcoidKlTwAnjBOOYzq5iCXbKfOpUsKXhXYTsUibDZE+zsOG9jrachN5oBSm+kK/dlmDlcGN68RUUzgKPOgC4wphmC49 31hy/ovoBoP/ADv8utCyVFeYWtn4gsMj/3kFZ5HZn6N/YHGndVfSDcqPQY8zNUi1BXj2rBgnPDdf3fUiVcFi7s1m03MJeA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/9/19 6:27 PM, Benoit Parrot wrote: > Previous generation of this driver were hard coded to handle > encoder/decoder were the first line never contains any data and were -> where > was therefore always skipped, however when dealing with actual > camera sensor the first line is always present. sensor -> sensors Regards, Hans > > Signed-off-by: Benoit Parrot > --- > drivers/media/platform/am437x/am437x-vpfe.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/media/platform/am437x/am437x-vpfe.c b/drivers/media/platform/am437x/am437x-vpfe.c > index ab959d61f9c9..0ecb75bf5abd 100644 > --- a/drivers/media/platform/am437x/am437x-vpfe.c > +++ b/drivers/media/platform/am437x/am437x-vpfe.c > @@ -345,13 +345,9 @@ static void vpfe_ccdc_setwin(struct vpfe_ccdc *ccdc, > if (frm_fmt == CCDC_FRMFMT_INTERLACED) { > vert_nr_lines = (image_win->height >> 1) - 1; > vert_start >>= 1; > - /* Since first line doesn't have any data */ > - vert_start += 1; > /* configure VDINT0 */ > val = (vert_start << VPFE_VDINT_VDINT0_SHIFT); > } else { > - /* Since first line doesn't have any data */ > - vert_start += 1; > vert_nr_lines = image_win->height - 1; > /* > * configure VDINT0 and VDINT1. VDINT1 will be at half >