Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3934684pxb; Mon, 8 Feb 2021 04:02:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPme66C4qaoBm1bXZioDw7l+SG/MKCtxKTkYFvZ1Akc9Z5GjDquo6QJXy2AR3x+/QB+OrM X-Received: by 2002:a17:906:39c6:: with SMTP id i6mr17191283eje.433.1612785745159; Mon, 08 Feb 2021 04:02:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612785745; cv=none; d=google.com; s=arc-20160816; b=Z3R1t4Sy/nTjV1YcnMnglRlR7CPtYtCWYZ4JxP+IIfqpu64RB8lILZl7P/j+Cu43e8 S8YZt2hr4YBQhTXUaTg0l9POwbkYdy8cYeRIYknN4GQGP2NRhADOqdo7CHZR4MnWcGCS bIxs1Q5AQumu9mh/+8EqXL66qb0L3qfjDK0X3ZZbidTyHoRlZh9MP7xdSePt4nUc97Ym 5WR6CyuUGwMJJS6bfqel/HdzXql94kmczVz68YcThqFZOSPa0lMb2VlqUauTxRS7Rm21 CMB7tkx/ztc5thJYmM0Rk3t+5pOqTtNuPtQ6Jfl70uQysaHYJIvlVLLgfJQZso+c22mp cw1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2rxUoOEN+pIExbWG2qh66sDZw4rr/Euj6Jk6zI6yk1M=; b=DdNnEiZ0g9Cb6KQH0Q+tsm+fQJEOVegEuHRJ7NX3qo6OCPQsB0bMxAcUijChis0MdV a+j7vy+0Fv9gWUh6hOQbYTGsEIqcKWp2y6i8yW/QdEbasHZMshed5WweNXnKvmz9Li7/ n9cxQIwjnU1L5PE3jh8IBW5GYTG8QT/KB18e3wFNqSjazvuEQFxn1SjYiCEjcldC/cq9 kQTayme791V41ZgSevrtTPBJPX33eleQXn54cCaIOduig7HAHMC49N2S5qkQQXIk3IEf ZiOc+2inokwbxl7EbSltwSGMZez2fUfowDtgRSeHQnu8NCLh6bohUS0t1XxpYkcYsWil uXqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=v4l7BozZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch3si9712117ejb.650.2021.02.08.04.01.48; Mon, 08 Feb 2021 04:02:25 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=v4l7BozZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233506AbhBHMBK (ORCPT + 99 others); Mon, 8 Feb 2021 07:01:10 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33896 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232019AbhBHLi5 (ORCPT ); Mon, 8 Feb 2021 06:38:57 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 004B99FF; Mon, 8 Feb 2021 12:38:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1612784292; bh=T49aQGOWlSj+zKKSggVixpH13+QPlKXNAM95nbXTPA8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=v4l7BozZ4hhWVRz+iYwyX1N6U+fK/anJIislfwk1v1hS/9iDnIy0AEQGRKAV+WABg JFZn+aJr2A+tz5wOHknkqWaQIGnQX+H+Mj/7drCd4d3niAqc7fy2eUL2pV/qdqgB3U IvOYN4oGFuzKSYyTy5XYLv+8/Us2stFv36qEIIrw= Date: Mon, 8 Feb 2021 13:37:48 +0200 From: Laurent Pinchart To: Hans Verkuil Cc: Jacopo Mondi , kieran.bingham+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Hyun Kwon , Manivannan Sadhasivam , sergei.shtylyov@gmail.com Subject: Re: [PATCH v8 1/5] media: i2c: Add driver for RDACM21 camera module Message-ID: References: <20210114170429.139762-1-jacopo+renesas@jmondi.org> <20210114170429.139762-2-jacopo+renesas@jmondi.org> <0b118385-70bc-01eb-8ddf-829c604d533b@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans, On Mon, Feb 08, 2021 at 12:34:55PM +0100, Hans Verkuil wrote: > On 08/02/2021 12:28, Laurent Pinchart wrote: > > On Mon, Feb 08, 2021 at 12:21:01PM +0100, Hans Verkuil wrote: > >> On 14/01/2021 18:04, Jacopo Mondi wrote: > >>> The RDACM21 is a GMSL camera supporting 1280x1080 resolution images > >>> developed by IMI based on an Omnivision OV10640 sensor, an Omnivision > >>> OV490 ISP and a Maxim MAX9271 GMSL serializer. > >>> > >>> The driver uses the max9271 library module, to maximize code reuse with > >>> other camera module drivers using the same serializer, such as rdacm20. > >>> > >>> Reviewed-by: Laurent Pinchart > >>> Signed-off-by: Jacopo Mondi > >>> --- > >>> MAINTAINERS | 12 + > >>> drivers/media/i2c/Kconfig | 13 + > >>> drivers/media/i2c/Makefile | 2 + > >>> drivers/media/i2c/rdacm21.c | 623 ++++++++++++++++++++++++++++++++++++ > >>> 4 files changed, 650 insertions(+) > >>> create mode 100644 drivers/media/i2c/rdacm21.c > >>> > >>> diff --git a/MAINTAINERS b/MAINTAINERS > >>> index 14adf87d90c7..1822d73ed615 100644 > >>> --- a/MAINTAINERS > >>> +++ b/MAINTAINERS > >>> @@ -14967,6 +14967,18 @@ F: drivers/media/i2c/max9271.c > >>> F: drivers/media/i2c/max9271.h > >>> F: drivers/media/i2c/rdacm20.c > >>> > >>> +RDACM21 Camera Sensor > >>> +M: Jacopo Mondi > >>> +M: Kieran Bingham > >>> +M: Laurent Pinchart > >>> +M: Niklas Söderlund > >>> +L: linux-media@vger.kernel.org > >>> +S: Maintained > >>> +F: Documentation/devicetree/bindings/media/i2c/rdacm2x-gmsl.yaml > >>> +F: drivers/media/i2c/max9271.c > >>> +F: drivers/media/i2c/max9271.h > >>> +F: drivers/media/i2c/rdacm21.c > >>> + > >>> RDC R-321X SoC > >>> M: Florian Fainelli > >>> S: Maintained > >>> diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig > >>> index 2b9d81e4794a..d500edb8638b 100644 > >>> --- a/drivers/media/i2c/Kconfig > >>> +++ b/drivers/media/i2c/Kconfig > >>> @@ -1212,6 +1212,19 @@ config VIDEO_RDACM20 > >>> This camera should be used in conjunction with a GMSL > >>> deserialiser such as the MAX9286. > >>> > >>> +config VIDEO_RDACM21 > >>> + tristate "IMI RDACM21 camera support" > >>> + depends on I2C > >>> + select V4L2_FWNODE > >>> + select VIDEO_V4L2_SUBDEV_API > >>> + select MEDIA_CONTROLLER > >>> + help > >>> + This driver supports the IMI RDACM21 GMSL camera, used in > >>> + ADAS systems. > >>> + > >>> + This camera should be used in conjunction with a GMSL > >>> + deserialiser such as the MAX9286. > >>> + > >>> config VIDEO_RJ54N1 > >>> tristate "Sharp RJ54N1CB0C sensor support" > >>> depends on I2C && VIDEO_V4L2 > >>> diff --git a/drivers/media/i2c/Makefile b/drivers/media/i2c/Makefile > >>> index a3149dce21bb..85b1edc62508 100644 > >>> --- a/drivers/media/i2c/Makefile > >>> +++ b/drivers/media/i2c/Makefile > >>> @@ -124,6 +124,8 @@ obj-$(CONFIG_VIDEO_IMX355) += imx355.o > >>> obj-$(CONFIG_VIDEO_MAX9286) += max9286.o > >>> rdacm20-camera_module-objs := rdacm20.o max9271.o > >>> obj-$(CONFIG_VIDEO_RDACM20) += rdacm20-camera_module.o > >>> +rdacm21-camera_module-objs := rdacm21.o max9271.o > >>> +obj-$(CONFIG_VIDEO_RDACM21) += rdacm21-camera_module.o > >>> obj-$(CONFIG_VIDEO_ST_MIPID02) += st-mipid02.o > >> > >> This isn't right. The max9271 code exports various functions, but since it is > >> included with *two* modules (rdacm20/1-camera_module.ko) it is exported twice. > >> > >> Since max9271 is not a self-contained driver it should not export symbols. > > > > Shouldn't we instead make max9271 a stand-alone module ? > > If that makes sense, then that's the alternative option. I don't know if it > can be used with anything else but rdacm20/21. > > Either way, this needs to be fixed. I've just noticed that Mauro has submitted a patch for this. > >> Can you provide a patch fixing that? -- Regards, Laurent Pinchart