Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2932419ybf; Mon, 2 Mar 2020 19:02:04 -0800 (PST) X-Google-Smtp-Source: ADFU+vvJDGpo5Hqh378XCNiDusF2MH/DVh/2JXuXESjEXadBodHmiNJFNxekxPKb/yINMdl/dxxd X-Received: by 2002:a54:4801:: with SMTP id j1mr1108199oij.108.1583204523990; Mon, 02 Mar 2020 19:02:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583204523; cv=none; d=google.com; s=arc-20160816; b=Z1J0zIGICYSMmdC7xSeGqbfAqDUwvSDVRbVDCRkkdItwUBrU4QZkKE51/3BozMRb5t G0xMekOREW7BaURd6om5rOw6LenrbvF7S2FpZ2udbu5SVYhw6FTNJc09gzS1fSV6tkJF aXpjbcjhWZ2AfAs/Tdrq3o+rw5X4gSkdday/sPZme9W18g9e+qSVd4/zWS5X+GsEg2OP 1jDzGYqFbAZ9Gq6O8dexaxU4qjhAHEpdnht22qqyB48YCx6arFv3NMZebhND4T+Hz9ff +sbpbjy1WaPORhg5Wynr7pLjVNXiUj6rx+l32rw4AtwcTGHIw9fFsTZPHN+GZkRQ+Qvr woNw== 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=nSRU5sACea5+ppbDemV9Uic2wN/d3iE9zq0J+9WMWgc=; b=v8JJqk9wuVp8j0wijh9BDMdhzGMltnZ+7BRwEJJl3gCWFfFWP69fny439Z5+BD4nOI 3CoOWLPmeNQxVUd5uncNfdS9rEcPZurfy0EtIr6Elt189WY/rdO7MbjWICKnK2a28IKA 9QmCegXoptxhufImAFpqGgsl5gp2NtP4ZmlXiy/dSbGtrjIpE/REli3EWDjG8jRyBsEd 4apycEZkCfTgMEF0nP475sd7cTbkRAfPkiwpGifEyzltz1JFsOnSupL4Rhe2HlhYomII BhQYhmx4a+ggP1xD7ocrUiQDjEBq8J+yUCf0p9614YvA4101TzVwDHYatMszpMAbg9KV U8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=GLB9O7C5; 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 a6si7227231oia.33.2020.03.02.19.01.51; Mon, 02 Mar 2020 19:02:03 -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=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=GLB9O7C5; 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 S1727996AbgCCDBu (ORCPT + 99 others); Mon, 2 Mar 2020 22:01:50 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:38343 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727862AbgCCDBs (ORCPT ); Mon, 2 Mar 2020 22:01:48 -0500 Received: by mail-vs1-f66.google.com with SMTP id r18so1437617vso.5 for ; Mon, 02 Mar 2020 19:01:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nSRU5sACea5+ppbDemV9Uic2wN/d3iE9zq0J+9WMWgc=; b=GLB9O7C5VahYJhDYzkBxf2lKSD9pLzKz5Byom6tbN2F00apEFOoMKygPFRUL/Uj/9p trrMj2G7knR6XcyNzJnegV3oqZFYXjOzksRSaS7EYqXLtBm73hjZhvPgh/oHzwaPaxK3 76NkpiHJoXM8Dn8fmYWtlTbgNorgHL9tKxZJyFtPTMNtqUHk0NviVgwyZkLagj68k+m2 eR3sQl4yLprO0JVwr10qiSju6vKn8TwNCARfi1ZmCrQ3QXiaMKxoMnt4pglC66DeYQJA FO+hfumTHCsVe8b6U78fKr/EUZSkshYD2KuyX+9VNS+l4U99BqrSloNqlDPhi1J3nwwL lNEA== 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=nSRU5sACea5+ppbDemV9Uic2wN/d3iE9zq0J+9WMWgc=; b=ZofCyeMBgWo1yG0o8k+8h0/2zZZ9NOBuuUX8S15BCdDiRFoLDyLvAZb5nfdjGTrnzm K1svhUP1ADDLZHNgRr4kXNn+ioQPovbmxVUCDtnG9uINh2eej/RzSRYHRFwCSGhdglPI MGWq9oC6SKajOniq7PuhQ5V4lIZyNTxFenZCegRYiRIXQG8GPUZSll5v9z/IfQPXVJj9 1CtMwlpWxYGgXKPk9xdZkjR2bzYwwHksENbO9k2TfChbrjXj0PCZ/SoiUKD57YDZ32Br qkkULom93IUwAVscMA2sgDKl2cvfUBFW86qCsV+MxhRSYf44S27y65O610gUdYcnvxIP 3iUw== X-Gm-Message-State: ANhLgQ0+TDn71NrcoJz1ts/TpCdb8FJkdnD4WEFhG7Z07BB3UcXhTTEC z70zgi0PZZQq6uftHgn4XoT6fKenRHFMGl+pT3fXiA== X-Received: by 2002:a67:1601:: with SMTP id 1mr1197519vsw.176.1583204506731; Mon, 02 Mar 2020 19:01:46 -0800 (PST) MIME-Version: 1.0 References: <20200228164126.17517-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: Ezequiel Garcia Date: Tue, 3 Mar 2020 00:01:34 -0300 Message-ID: Subject: Re: [PATCH] media: i2c: ov5645: Add virtual_channel module parameter To: Fabio Estevam Cc: "Lad, Prabhakar" , 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 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. 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. Hope it helps, Ezequiel