Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp655420ybb; Thu, 28 Mar 2019 09:32:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2p6dmiUnHYw5Ggy7QFoSUheIbGPBC2ePoVZIjXa1Ls3uz1+L6YEa7fMrN/ilYn//aBcDf X-Received: by 2002:a17:902:e382:: with SMTP id ch2mr19303571plb.94.1553790760880; Thu, 28 Mar 2019 09:32:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553790760; cv=none; d=google.com; s=arc-20160816; b=I4rCEpHUlO45HIc46jACHyaJ01V2/fpHSkBKpXprEWQ9uxpZi5JR4GnzZcvaqYUqnG NOfFRDr7Ehi0AFBKilj3FOa+T4kc2bjeIQx0xC+/SNjJxhiJgmHn30mxkBLfyEg6sxuE BDaj2b5jyxFenP2IaNSMn4UNJVsnbAJlO9OYe4gisJ+v/xUAZe+JsUAaTFSjgp8bscCd 3Jyb78UtkS+3c0OJN6NSDt3CuqeZoj1FEPa6GGnsd7oGcvxlhwwey+MRGeb7JoZacxdL Aiz8AI6LbxDno3KfLN09PzAs6tfz7B1OT2uZkHZKihxyPC5sCTlnf/SDvaK2RETAeRnr Pm1Q== 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=SFhK9wLd7xLJdAThtrCXCOGh3ozYhXaOPo5zFfSOevs=; b=yl4DgTKds1SSQI4ixK9JKEFGsUNGqo8K/uBrtYeArh5Y4q7MKrVBs47bZcY/NAVN53 u7BLKVE6Ufnn6boYN5i51ojFtRkMGYVyW/VeKvoa4ktXWG4tCZipRGvIKek0kJM4UkPV JdnafxVltofvbITqkY+8BL3jpeeTI45qqj4OsfbOYJKrxy/fPtz1b884kpMkkFotLgKE tJYd8NL4rg0+wvT+xwOmN5udEQVYcBIFAX1U//A+k+saO0SRBvsqUwLmUpo1x4bYCcuz d2oeLDzVEHQa1ZTwGFoHPQ+4crD3biJznrlvlu/q3JIRpuRAI4rfCa50ypvV+1mceTIM Or2A== 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 u193si17450056pgc.410.2019.03.28.09.32.25; Thu, 28 Mar 2019 09:32:40 -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 S1727380AbfC1QbH (ORCPT + 99 others); Thu, 28 Mar 2019 12:31:07 -0400 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]:32977 "EHLO lb3-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726322AbfC1QbH (ORCPT ); Thu, 28 Mar 2019 12:31:07 -0400 Received: from [192.168.2.10] ([212.251.195.8]) by smtp-cloud8.xs4all.net with ESMTPA id 9XvchJGCFUjKf9XvfhtWH8; Thu, 28 Mar 2019 17:31:04 +0100 Subject: Re: [PATCH v3 1/2] media: atmel: atmel-isc: reworked driver and formats To: Eugen.Hristev@microchip.com, linux-media@vger.kernel.org, Nicolas.Ferre@microchip.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mchehab@kernel.org Cc: ksloat@aampglobal.com References: <1553786825-16942-1-git-send-email-eugen.hristev@microchip.com> From: Hans Verkuil Message-ID: Date: Thu, 28 Mar 2019 17:30:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1553786825-16942-1-git-send-email-eugen.hristev@microchip.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfCBYL4dumaM0XN6AwgS1+hUWELhSCXx/+haLvJmh8HKtbxPFfj4OWSKspkF1wlu/Q0G9FBPCAU4ejfDKVG+YCG64vl9zTbXV88MaApV/xfoJlCTZGtlU WXBlx284/Bv7EghxJGUFAgrEZ7f7MwrczM3gCeYqfdWFlZfxaR27rtAkJb1tnWn+ysUzNoN2dDlXnqiKqpQTR6Rc1zTBT2SbAFDHGqK19eZYpMeTj3t0Ff6M hsrWLbNCuXGem2OGSfeTn6BtnvTf8HjtTC/LDh9giEeUNB+76CrVj86wN8dBTCNjZf6ov7GIn6epetVY+j7vfu66RarlwrO47AgILbaU7Z8iVWBkPpm8II7v NcPbti5pDQ2WzfLY6wWoPmx+RepRPJ/F/WIkTCof+K87LeKCrvOc7BT+h4GpUEjn0R8k0YWK Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eugen, On 3/28/19 4:32 PM, Eugen.Hristev@microchip.com wrote: > From: Eugen Hristev > > This change is a redesign in the formats and the way the ISC is > configured w.r.t. sensor format and the output format from the ISC. > I have changed the splitting between sensor output (which is also ISC input) > and ISC output. > The sensor format represents the way the sensor is configured, and what ISC > is receiving. > The format configuration represents the way ISC is interpreting the data and > formatting the output to the subsystem. > Now it's much easier to figure out what is the ISC configuration for input, and > what is the configuration for output. > The non-raw format can be obtained directly from sensor or it can be done > inside the ISC. The controller format list will include a configuration for > each format. > The old supported formats are still in place, if we want to dump the sensor > format directly to the output, the try format routine will detect and > configure the pipeline accordingly. > This also fixes the previous issues when the raw format was NULL which > resulted in many crashes for sensors which did not have the expected/tested > formats. > > Signed-off-by: Eugen Hristev I'm getting a few smatch warnings/errors: drivers/media/platform/atmel/atmel-isc.c:1368 isc_try_fmt() error: we previously assumed 'sd_fmt' could be null (see line 1343) drivers/media/platform/atmel/atmel-isc.c:1078:35: warning: variable 'rgb' set but not used [-Wunused-but-set-variable] drivers/media/platform/atmel/atmel-isc.c:1078:22: warning: variable 'yuv' set but not used [-Wunused-but-set-variable] Can you take a look? Thanks! Hans