Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1988997ybf; Sun, 1 Mar 2020 23:20:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxLvF+oJG1YcOnJj7kdjLWHlIX23MzppSPjh5XsVX2Ecu4Z8get+MzFxa2mxUvXkba8CXX+ X-Received: by 2002:aca:be09:: with SMTP id o9mr10887072oif.177.1583133606422; Sun, 01 Mar 2020 23:20:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583133606; cv=none; d=google.com; s=arc-20160816; b=N6t6SVYp3GB4suQst7jIbF1fmW7UK9yWlrd/QdOKe32W8X6P8J/7DBkq4u8r1tVYhk imNI6HBr5f7yNH4tpbwgHm+jpClmc8f2Pe6M5FVzYMi6lM2RBomuIOIlmgfkl9B9H3d4 TMDFZxyAd8DTfprj4OY6m66I1EiwqupzfWZ0F3Vv8r7h/OZnZ4m52XoXA0siwbF9B3p/ Qs2eMcXxhZ3cjTb1PCqHID+nBk0uVnJoTMAZ7dY3neQxGZ62NoEd6/A1pzaQd9AV7sT5 fcPmpm4j0PspWXuTbjQzbw79abKL1AZnP4yD6cwhCNcv9AtnMChWuENHdISdGb1f0roy pnfA== 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=pCiMbDoks/6zcnPq60yjRnfndV8SA+UORO6ejiuKYFI=; b=aucR5p81aE6INZm8pA5+ptS4Myc7un64vAG/0fSOLHfebPwIs20QxjpP02+RQu6bfC MDOIIAokRGQjNJ+XDQ1gOBK/2eAIwltKI/rFdPvQav3HQHrNAnBepokvEOlZZK3rv9i3 YjNEQGOmr2+yMbJSimrRbJ/Psm4pfEzTiv4bXUWpdcowAlZvAyLNEV7SdR5X+7kqfr1E caqVMrnWGFu7oJtx3d/nZDFYdF/DCj8+2feihhwfGJSg5diEvM83NpbL69McTOIlhQNU U4GibOWTSicEZLdD2IjC9ePH2D9UJSS6JYTDtVxPq2nwo8kn1Tf96AvgkKtFplR32A0m U9gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VaRCakMk; 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 q9si5801394otc.86.2020.03.01.23.19.53; Sun, 01 Mar 2020 23:20:06 -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=VaRCakMk; 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 S1726829AbgCBHTG (ORCPT + 99 others); Mon, 2 Mar 2020 02:19:06 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:42265 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbgCBHTG (ORCPT ); Mon, 2 Mar 2020 02:19:06 -0500 Received: by mail-oi1-f195.google.com with SMTP id l12so9313472oil.9; Sun, 01 Mar 2020 23:19:05 -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=pCiMbDoks/6zcnPq60yjRnfndV8SA+UORO6ejiuKYFI=; b=VaRCakMktqQndfftu+QA+aIpP/MvxHJ6G2GE8VvnTKUPLc65ynuUU8nWteTQ+5/s42 1C5ttGFj3/ss/c7V71bjRIjCXkn8ipP9IN1CnjsoqqWGVwBn9m3/Nk2klbMkLIyaXYGK EHWDcr752bxjinWLky93t4VamSEuhQ9XgZrLtWcxq4MHzCfNpCoCoM0P9XBaPd9cVmoW Qi0uwSYrf9SqL3oKvVNoVewmKNnqMSw8Dd4riPfQifi9HRc1yRvaxheEkPmGeXtez/q0 sax9BArSKYz+V72D5Wiq4r7f49nrplpCqWXp+NMnevvAXbKGbISc8BEP1xF0mdt4nwr0 FPvA== 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=pCiMbDoks/6zcnPq60yjRnfndV8SA+UORO6ejiuKYFI=; b=lLeOIwAG/xMhS5EWVgzCfTB/11L2USTcj3lFccYNFymRGuwNRd3722A+QeLzJbD5zS frmd4u8B6yXYwkqrrNfMyWqL6jnGFF7Z1rdK33SWQehf8drIJVocxVfTpBeMtznMqYVE La53hiZbttC8DxoViRSkiePH1gXOZiKpWv0ebgYjbVg9ZjMj5t4IveUqY3f1vyvukGJr +oCN4sQM7nsOr7s4UEHI6IfBBAvptw2yvv8hZTE3SdZE3JRv0BOcxFxL5O8B4mr2T9Ig XY/JsI3wR3i/ZYzOeqatsx7ZFODxT9HfHpFAZljxEPdSgWBzY2uLllA8rzJFrPJExm8P u+zw== X-Gm-Message-State: ANhLgQ32L0PMGNvUfoLbtzSHkmxoMalSR+XEpLDcX4oYboZbzesoXWw+ FB3Pu6IWB1deQUd15K0Vw2/PiXz6Dy60+bfqchE= X-Received: by 2002:aca:524a:: with SMTP id g71mr2564396oib.7.1583133544993; Sun, 01 Mar 2020 23:19:04 -0800 (PST) MIME-Version: 1.0 References: <20200228164126.17517-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: From: "Lad, Prabhakar" Date: Mon, 2 Mar 2020 07:18:38 +0000 Message-ID: Subject: Re: [PATCH] media: i2c: ov5645: Add virtual_channel module parameter To: Fabio Estevam Cc: Mauro Carvalho Chehab , Sakari Ailus , linux-media , linux-kernel , Lad Prabhakar 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 Fabio, Thank you for the review. On Fri, Feb 28, 2020 at 5:31 PM Fabio Estevam wrote: > > Hi Lad, > > On Fri, Feb 28, 2020 at 1:41 PM Lad Prabhakar > wrote: > > > > OV5645 can operate in virtual channel 0-3 in CSI2 interfaces, this patch > > adds support for module parameter virtual_channel to select the required > > channel. By default OV5645 operates in virtual channel 0. > > > > Signed-off-by: Lad Prabhakar > > --- > > drivers/media/i2c/ov5645.c | 28 ++++++++++++++++++++++++++++ > > 1 file changed, 28 insertions(+) > > > > diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c > > index a6c17d15d754..0a0671164623 100644 > > --- a/drivers/media/i2c/ov5645.c > > +++ b/drivers/media/i2c/ov5645.c > > @@ -54,6 +54,7 @@ > > #define OV5645_TIMING_TC_REG21 0x3821 > > #define OV5645_SENSOR_MIRROR BIT(1) > > #define OV5645_MIPI_CTRL00 0x4800 > > +#define OV5645_REG_DEBUG_MODE 0x4814 > > #define OV5645_PRE_ISP_TEST_SETTING_1 0x503d > > #define OV5645_TEST_PATTERN_MASK 0x3 > > #define OV5645_SET_TEST_PATTERN(x) ((x) & OV5645_TEST_PATTERN_MASK) > > @@ -61,6 +62,11 @@ > > #define OV5645_SDE_SAT_U 0x5583 > > #define OV5645_SDE_SAT_V 0x5584 > > > > +static u8 virtual_channel; > > +module_param(virtual_channel, byte, 0644); > > +MODULE_PARM_DESC(virtual_channel, > > + "MIPI CSI-2 virtual channel (0..3), default 0"); > > 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. Cheers, --Prabhakar