Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3098284ybf; Mon, 2 Mar 2020 23:02:23 -0800 (PST) X-Google-Smtp-Source: ADFU+vucqtDiITwcE7wtd+9OteHuSjP88t53Zssu13hRxjpSYkWehf9n9RcYvkG/QlSPsejrnoft X-Received: by 2002:a9d:bef:: with SMTP id 102mr2321635oth.225.1583218943526; Mon, 02 Mar 2020 23:02:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583218943; cv=none; d=google.com; s=arc-20160816; b=JvTEsTfnkgR2OqkC2Hob1KTuYrFuAkTWfquQRyl0H/9X1uGC2V3vR/M3gqtb68Df9A XP21jvedMPzFV5HGB6qtycL6veoF5ofmogUBYxjSxDPeDBcUCp4xbi+oVPqeSENOuvy8 Yx73+iDDpEBkLQJKAO6s/4av6+t2aFKuV8dMhj38tCefZ9kX2LhalpVnFrwYcw3zXjRO ZNiUmhw/xigYmost8zOLRu24S5Chon8yuXbGgn+cQ/E9O7QkeSmcnLPfxlPBvftoO2mi iUR5pzNQq49RvvmWF65RtRMR1TybuoWIYDKnWJwAsmVzmtdcxYRMlzE4NFEnr4i+TajR s5mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SD5hC13RRY7Vw7nLNHm5iwrccr55FVHZ1Ac80dlGQsM=; b=sjc0AWMZWTBPrO5KDwm5NQbtNROTvJBH9dxMM5ZicRxMcQq+8YieBVud6l6h9EZPnI noL3jCbYEqS1ZsBdHofgVF6U+0HMriH7dmTWoB+dNa1IpwEaMR5N4ivaZBqp46YDwRvk g6hfYxGBeAFcUrk28hiNTJw2Q5aKK1ftLX+Q8GJM+RCgbIYjoHGbfnQikRn6hIz1glSo cZRfb6x+NMcyZHt/+wSoRFJNC2BsbjV7+NEhAmhIFWb0roner+k4p17RdcPyYovaDyFj G28OceORsYeHj6dcX4rSA1xKueX486JXgb7wGqpLncYssJeTiPt5zuuV4/rZbm0Jr6HF Mk0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uhJ+XyQh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si8058452otq.76.2020.03.02.23.02.08; Mon, 02 Mar 2020 23:02:23 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uhJ+XyQh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727507AbgCCHBh (ORCPT + 99 others); Tue, 3 Mar 2020 02:01:37 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:46688 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgCCHBg (ORCPT ); Tue, 3 Mar 2020 02:01:36 -0500 Received: by mail-ot1-f66.google.com with SMTP id g96so1938390otb.13; Mon, 02 Mar 2020 23:01:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SD5hC13RRY7Vw7nLNHm5iwrccr55FVHZ1Ac80dlGQsM=; b=uhJ+XyQhpzAefT/JDCvf8SXJgdoHVhV3mHo2maj92lOfYo9p2K5TC+MoYui50W+TBQ nmrHhtI2uOFg/mMQf9dg+UQkxWIQRda+qi2uJ8lQees2BXNbyUUlgvn0sk01NHEw+vDC bZ2WiOMnlOo/a1gn012gM5Tr9EvUbXtCvVBnrM9IZArNrTnGx9KH2WIb9pNJ7qeOxez6 UrEb3w02fNtR/dSYRtQr997r9X/Es0u58ZnJdCqHaDdX80QrkrTpa9XU8vemdE9XX7Az o79oKwODC6zwHPDYLwSbCRI77ZZwj4OrzwBQ6esklVUCTjCcaQg8VXlVc6pWJGbu/URJ AQyw== 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=SD5hC13RRY7Vw7nLNHm5iwrccr55FVHZ1Ac80dlGQsM=; b=FdNN091XIcTMZoATwLSOiBw5Oj9f6fKBLr3Z6T8dCt35VQaDnXlpCvzAA0O4NWLKTq WhJTDQO17qZOzvp5hXEqiikcZpyxs29Ma4klBrtTOvC37I/jFem0bUaSZhVIEx2vM/IK YUQ2xDSnctfuGsoTaAGHvoY0X3Hh6TLAg1on9nl6cq0qWbL5dR4sqDsf0dYBEfss5NhG oPgNMSXe11yzJoToKB3m1wdP2DnvVh7VOED1wjw8iJPFi5dzR3AGtLtZP9JOKfSm1bvd RWqtIV/mkLQVYXeml83RET8c81llFiDKN/5yAO5umVAxl7ye4EB/9tim+pE/4O6TJOn0 FeTA== X-Gm-Message-State: ANhLgQ0ruWzmmt64KKHfxz/L1JOHw2VtIcMAaDT3KKC65o/Y06dq4/t7 Jvn7NGTJDrhVDV2DPF9IkGVSbN4+fgEUeqCKCGk= X-Received: by 2002:a05:6830:1481:: with SMTP id s1mr704531otq.44.1583218895864; Mon, 02 Mar 2020 23:01:35 -0800 (PST) MIME-Version: 1.0 References: <20200228164126.17517-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Tue, 3 Mar 2020 07:01:09 +0000 Message-ID: Subject: Re: [PATCH] media: i2c: ov5645: Add virtual_channel module parameter To: Ezequiel Garcia Cc: Fabio Estevam , Mauro Carvalho Chehab , Sakari Ailus , linux-media , linux-kernel , Lad Prabhakar , Jacopo Mondi , =?UTF-8?Q?Niklas_S=C3=B6derlund?= Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ezequiel, Thank you for the review. On Tue, Mar 3, 2020 at 3:01 AM Ezequiel Garcia wrote: > > Adding Niklas and Jacopo, > > On Mon, Mar 2, 2020, 12:33 PM Fabio Estevam wrote: > > > > Hi Prabhakar, > > > > On Mon, Mar 2, 2020 at 4:19 AM Lad, Prabhakar > > wrote: > > > > > > Should this be a device tree property instead? > > > I did give a thought about it, but making this as DT property would > > > make it more stiff. > > > > In case a system has two OV5645 and we want to operate each OV5645 > > with a different virtual channel, it will not be possible with the > > module_param approach. > > > > Using a device tree property would make it possible though, so I think > > it makes more sense to use a device tree property for this. > > > > As often happens, driver parameter is probably the easiest and less > invasive way to customize a driver, so I can imagine myself carrying > something like this downstream if needed. Haven't we all? > > It's definitely not suitable upstream, as Fabio points out, but > I don't think a devicetree approach is either. > Agreed. I was suggesting maybe v4l2-ctl instead ? > It seems Niklas and Jacopo have been working on adding > proper support to route this, via some new ioctls. > > https://patchwork.linuxtv.org/patch/55300/ > > Not sure what's the status of it. > something similar needs to be implemented for ov5645 driver. Cheers, --Prabhakar > Hope it helps, > Ezequiel