Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4778751pxb; Tue, 2 Nov 2021 15:55:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfsA/GHyNkiS7RX8DwZwL1yHf9exD7b3dvnK1d8MEx7co0qsNs7/noUjZE2P+tx4etwGOZ X-Received: by 2002:a50:9548:: with SMTP id v8mr54665334eda.34.1635893712929; Tue, 02 Nov 2021 15:55:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635893712; cv=none; d=google.com; s=arc-20160816; b=MAuyt5Mi211weIfsmVmPwDzLtXs4nYXlmgQD7Oial9y6JCWu/FadIYe+Qjb8uqu1NZ Qpcshw6bldkY2AaBMcoHhLbvaWp00zGTdSUypCVKm7MRuFqJPlVYxzHoI7SBDpPQntfM T685IYX9aP7sg7ivl2IFgmDiaRItgtPuURk1Fipu1LEwpdhHGkceD2PJZMWIMdHgc/Ca ruo8QaczEzWHg6jXEybsdeflItp1aIqAnmJ0a6YKlS9fPAHVc/X/fTitkUBlUx6CcRGa 6vLShAj3l59sdvoNDV6O0tyIpAutGLiYX+a4+96QOJ0t9CAV1RdvbyvUgOnVtnQPqaKX UeIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=qRK7SuAMPvHzF6aEPtDKCEEcW0yR+TOj57JshpLrQ2g=; b=WYfoiHKK+TKXjCBbRpdtvUD9H5vMer8kR35mcV5J/2B83xRTvFxa/7IG/LAYVYdEAZ 0peTUeq1XZwyT3+zBJ9jPrV7B+RrlKaKiakNdhOs/elF5yDvaSAR4qO8fQmPhnpxmgCA aQ4gPp4rsVoPSE8Q865+SalC2xCxwBsOROJYzmWw66Ks3bnc2z6U4YkVW4zZZkRQFkUs V0eolG6xUUYED1COVxiZatxeENOMsK0CVnAq1ixX+6y5fcutNGiA5znfhO4FjU6B4dy1 m54e/l8OE8FC1N8tYNc5MJD4ePGA0oO05ERK4Qlju0maj+qvXdjCnfIGueOIfJo+H8uj BvvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kMLW3mbM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ga1si748526ejc.20.2021.11.02.15.54.43; Tue, 02 Nov 2021 15:55:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kMLW3mbM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230299AbhKBWza (ORCPT + 99 others); Tue, 2 Nov 2021 18:55:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:59538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbhKBWz3 (ORCPT ); Tue, 2 Nov 2021 18:55:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 40DBB6044F; Tue, 2 Nov 2021 22:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635893573; bh=cTstKgx9m0Sh1q6mCiNjCpoALRcGk8ifU4/m88M8cv0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kMLW3mbMG6pyMU10wApwwn7boni9kbp57SJkk9BNGgTbRqONhOKuWKXvCx5koC2zb 9HvNwjmFE0DLzx5f7UarSFvBTm8OxvU9IPmxYPSaJIGR+uHszclrrmq9p4mQfuGPFO Q5a1S1Y8RRYTU9iVi/0kp6VmYNEdAQTfErCBAvQrjkYgnaXnCE52GFhjWv5ypQrxrT sVGcQFGvn/kZ8CO2Pc4DCA2nBMxGB/atSRNcGa5ilTScBjJRlbTtJkSK7fzrSrNR3t gP/o1PPUKkRJJpJtFCj8Y7TxxQouYiTxaX4uj7CF6aSUDgaZCz/01C8O3tIOpcRQ93 6bgJ8ebt8Ae9A== Date: Tue, 2 Nov 2021 22:52:45 +0000 From: Mauro Carvalho Chehab To: Andy Shevchenko Cc: Dan Carpenter , Tsuchiya Yuto , Hans de Goede , Patrik Gfeller , Sakari Ailus , Greg Kroah-Hartman , Hans Verkuil , Kaixu Xia , Laurent Pinchart , Yang Li , Tomi Valkeinen , Alex Dewar , Aline Santana Cordeiro , Arnd Bergmann , Alan , Peter Zijlstra , Ingo Molnar , Linux Media Mailing List , linux-staging@lists.linux.dev, Linux Kernel Mailing List Subject: Re: [BUG/RFC PATCH 3/5] [BUG][RFC] media: atomisp: pci: add NULL check for asd obtained from atomisp_video_pipe Message-ID: <20211102225245.0cd3bd20@sal.lan> In-Reply-To: References: <20211017162337.44860-1-kitakar@gmail.com> <20211017162337.44860-4-kitakar@gmail.com> <20211102130245.GE2794@kadam> <20211102150523.GJ2794@kadam> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, 2 Nov 2021 17:49:17 +0200 Andy Shevchenko escreveu: > On Tue, Nov 02, 2021 at 06:05:23PM +0300, Dan Carpenter wrote: > > On Tue, Nov 02, 2021 at 04:45:20PM +0200, Andy Shevchenko wrote: > > > On Tue, Nov 2, 2021 at 4:44 PM Andy Shevchenko > > > wrote: > > > > On Tue, Nov 2, 2021 at 3:10 PM Dan Carpenter wrote: > > > > > On Mon, Oct 18, 2021 at 01:23:34AM +0900, Tsuchiya Yuto wrote: > > ... > > > > > > Run your patches through scripts/checkpatch.pl. > > > > > > > > While it's good advice, we are dealing with quite a bad code under > > > > staging, so the requirements may be relaxed. FYI, I fixed the checkpatch issue when I applied at media_stage: https://git.linuxtv.org/media_stage.git/commit/?id=8a5457b7c7c3b6aa1789b18bbaff9b6a99d74caa Ok, I could have instead replied to Tsuchiya instead, but, as Andy pointed, those patches solved longstanding issues at the atomisp driver. So, I just went ahead and cleaned up the issue ;-) > > > > > > To be more clear: the goal now is getting it _working_. That's why > > > this kind of noise is not important _for now_. > > > > If it's a new driver, then we accept all sorts of garbage, that's true. > > It was in kernel for a while, but never worked (hence anyhow tested) > up to the recent effort made by Tsuchiya. > > In any case, as I said, we shall run checkpatch in the future when > we have something working. Yeah, agreed. The best is to run checkpatch and save some time from the maintainers. In any case, as Andy pointed out, this driver still requires major cleanups everywhere. Yet, our current focus is to make it work with standard V4L2 apps. Regards, Mauro