Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp867770pxb; Thu, 28 Jan 2021 02:12:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBTJqPaP0GE5aporfp04THuy/xJv3y88fs+PXQABsEs1oslinjTYaUsGZQKIbKlIoSFnsO X-Received: by 2002:a17:906:6887:: with SMTP id n7mr10059921ejr.362.1611828728942; Thu, 28 Jan 2021 02:12:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611828728; cv=none; d=google.com; s=arc-20160816; b=ObUu4Ls5i1DJ2oJLajyBSjPnsVB9xWcLGgQnXGkjEpNEg6OYQdwfLpQHhLJRDttPu9 rs+0HT0DEtlzRIXewCS4l/t/zTpBs0c09RDWhgWcMp7OAyLroS5XiFpOolaB4cMPUc/i UID4g6M/GdacmioIR5Ob+Nrt8ob/eiPssh2V8RUEiMnOtzds5CmdVyb1wDAFAZxkRS26 7UXVJw7o2CAhgas62p2VJer3SNt3CcWFBNxbQtsjLnrf3ovC0Y8nmqkf+ktpPabwRJoe I6Z6I/pJbTnZBtOGPiViE8x2QbEEh0bg19QZEvBGVlUtLRdNt7AiRUTtTDbwPiD/Qc/A lH6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FS3sXlWa1a9CJeGm7yuJDVISGCvP2szSJ0Qe9lOwid0=; b=VV/SjgXVKoOs4fqEHiHVqGhyoCwaeOBtCv9aktkXBEu5DJxsHyQSsaduXchOk8CJ+Y tuO5qEZgSUGTttn6/pMmRp4ur9fDSGHKJTHkF3fPH+diWOKK64+IZ0pYeXdc0mmgSUz9 z8AArja6fUUUIjrE652aEigmT831hZkuo52mNI9p8Fr467rBgi8tbZZbWVdr6s34l8DH TL3yZj5bhS6OdpElpR16KqOyCyFbobKMdIEDOxZzi4yQgo+UzSfEhIouWMMP/gnD3J1u rC480YiS5hWCC28CNqoJ4oz0CE8rEe2dUvnORwKTYkaZtcXZ5vH4QtCyCwC6fKwUWFPy 1aew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sIVf3Emr; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si2234847ejp.190.2021.01.28.02.11.44; Thu, 28 Jan 2021 02:12:08 -0800 (PST) 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=@linaro.org header.s=google header.b=sIVf3Emr; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231779AbhA1KIp (ORCPT + 99 others); Thu, 28 Jan 2021 05:08:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232396AbhA1KIJ (ORCPT ); Thu, 28 Jan 2021 05:08:09 -0500 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2DE7C061786 for ; Thu, 28 Jan 2021 02:07:07 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id e19so3668892pfh.6 for ; Thu, 28 Jan 2021 02:07:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FS3sXlWa1a9CJeGm7yuJDVISGCvP2szSJ0Qe9lOwid0=; b=sIVf3EmrBQVyo69/ikM3B14VNYgALXDSfENkZeCmczqXizbbIRBtHtEv2h3cU4kIsb zrtfI+WVyYpF/fuqGjVRDSD7zeWefsyQYS862TXrX0JGsTowQVfCO/jf3Hl10pTuTua2 5fyQylydnjbaIVGtTewY+Q7soCRuuOCltdYyPHeC/hYyOQyukLW1woDzLySCVDQygL4i 7ycFGeoM8PtmNXJCI9K+H0Ka2IajDL1H6WW+MQSzoG56f1FzZxaajYNWa4x5pFXHTAmr e4Q+iyZNe+VI+3QvkREjSeRXwamEbEdtqkQLBWvX3WPRX4QTFXUmiNbPOt2EqYUkooxJ NAdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FS3sXlWa1a9CJeGm7yuJDVISGCvP2szSJ0Qe9lOwid0=; b=L7O4Y30lHCdAb9UJAYlJanOu9XxMkLuFHRfNTvsXVuUWXDPMvG4l2a+dxE/wZzOIhI JmMO3jGJ8McYEqqpfMbx3l6OWGFXsiMcDbKzz1jnME9oXu/Vj26BptFlI+wSZs2B0c1q 6GmQUJwieQh5+mNnvZwX2b4+eJBBvD4IED05paiwU/Wtss/l0//sjEzR4I0nNVcA8IhC ddZyJTN2bOuBLliKSps+ehUlp5/ICB2Y4xciHSDv7leyb5fKRObn4BMmOLXr2765uagk Whc5bPoKNZxHdZFCoWffQffqImaljFBG0eggR5q0/cq6rRIPKKcZRCzaYJtBsoSY2cAs r7gQ== X-Gm-Message-State: AOAM532+DhfnU3BIvlYcZSyXeF6s0kkdigfJJ64VYKq7mhv46QuzzHtM YCUe5Izio2Y+AEoiexvKWryNuhTxBLayqmHTjE6qOQ== X-Received: by 2002:a63:5b4f:: with SMTP id l15mr5187293pgm.339.1611828427188; Thu, 28 Jan 2021 02:07:07 -0800 (PST) MIME-Version: 1.0 References: <20210127144930.2158242-1-robert.foss@linaro.org> <20210127144930.2158242-6-robert.foss@linaro.org> In-Reply-To: From: Robert Foss Date: Thu, 28 Jan 2021 11:06:56 +0100 Message-ID: Subject: Re: [PATCH v3 05/22] media: camss: Refactor VFE HW version support To: Nicolas Boichat Cc: Andy Gross , Bjorn Andersson , Todor Tomov , Mauro Carvalho Chehab , Rob Herring , Catalin Marinas , Will Deacon , shawnguo@kernel.org, leoyang.li@nxp.com, Geert Uytterhoeven , Arnd Bergmann , Anson.Huang@nxp.com, michael@walle.cc, agx@sigxcpu.org, max.oss.09@gmail.com, angelogioacchino.delregno@somainline.org, MSM , Linux Media Mailing List , Devicetree List , lkml , linux-arm Mailing List , AngeloGioacchino Del Regno , Rob Herring , Andrey Konovalov , Tomasz Figa , Azam Sadiq Pasha Kapatrala Syed , Sarvesh Sridutt , Laurent Pinchart , Jonathan Marek , Steven Rostedt Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Nicolas, Thanks for the review! On Thu, 28 Jan 2021 at 01:19, Nicolas Boichat wrote: > > On Wed, Jan 27, 2021 at 10:56 PM Robert Foss wrote: > > > > In order to support Qualcomm ISP hardware architectures that diverge > > from older architectures, the VFE subdevice driver needs to be refactored > > to better abstract the different ISP architectures. > > > > Gen1 represents the CAMSS ISP architecture. The ISP architecture developed > > after CAMSS, Titan, will be referred to as Gen2. > > > > Signed-off-by: Robert Foss > > --- > > [snip] > > diff --git a/drivers/media/platform/qcom/camss/camss-vfe-4-8.c b/drivers/media/platform/qcom/camss/camss-vfe-4-8.c > > new file mode 100644 > > index 000000000000..153e0e20664e > > --- /dev/null > > +++ b/drivers/media/platform/qcom/camss/camss-vfe-4-8.c > > [snip] > > +/* > > + * vfe_isr - VFE module interrupt handler > > + * @irq: Interrupt line > > + * @dev: VFE device > > + * > > + * Return IRQ_HANDLED on success > > + */ > > +static irqreturn_t vfe_isr(int irq, void *dev) > > +{ > > + struct vfe_device *vfe = dev; > > + u32 value0, value1; > > + int i, j; > > + > > + vfe->ops->isr_read(vfe, &value0, &value1); > > + > > + trace_printk("VFE: status0 = 0x%08x, status1 = 0x%08x\n", > > + value0, value1); > > Please do not use trace_printk in production code [1,2], it is only > meant for debug use. Consider using trace events, or dev_dbg. Ack, this is a copy paste error, I'll add a commit fixing all occurrences of this in the driver > > [1] https://elixir.bootlin.com/linux/v5.8/source/kernel/trace/trace.c#L3158 > [2] https://elixir.bootlin.com/linux/v5.8/source/include/linux/kernel.h#L766 > > > [snip]