Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1815109ybb; Thu, 26 Mar 2020 07:50:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtzu7EwHiR5USdrFYtO6SlJU00WHD1CHgFcJ40YFpKhntMGE9MDHKWZteG1HMp90jhUkcfT X-Received: by 2002:aca:abcd:: with SMTP id u196mr296783oie.86.1585234228511; Thu, 26 Mar 2020 07:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585234228; cv=none; d=google.com; s=arc-20160816; b=fs6oiX2t6vhf3mXU/fheFPnFSZZp0qhgzXZehS+sPzu5i+iwrVZhhO5+bkYqGREJmC dOSLg/JoYXoCuNiwVVPhucWVWHwOdHyTskO69FENsxkUS8sik8G+6Z1r74fEk6S9aMkZ 5b4hg/8rJyS8ltm/AZdBCWUNYgLVvOPLBZMCXT5xexk4YWmC7+U2SOS51GyiQ0Dfm/St n1w8x30fOJnZXt+EHYIcZwwfXPlnTEW//hlvBUMR7ZNMvYWmoGVo6L2+40UhMLsM2K0m 6gJLRtf40FZ0yf/3iqy9KkP7ERHj7FGvzdnibLQnAbOqadPpmF8RwBrnlXDZKkcEDIpC p4QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Titd9jdukWsIDLEbgTmI59XjV+YX5SkpkXljcE8bWGU=; b=uSuHpDKFNRAfzHE+5LKh6NaaTD8U+YOgYJEwygBBU5nKh4s8cq4d6X8LFIawMENtWp 7vDfz9Hkmni4GVJTnabnW1akPe4J0HaUM0AmbtL0RtraqkXoMKOiHAJTtqafA59/S/YT W6H2iyu6AAWxhWy80LTIv6qShKg1VYmsmS5ZvDRQ/CH8h6ytzEVRqPE+CGngCvloTdcg 92WZNRu+z1YXQ1aBmhUcATQETMS6JsR0DjMg7wn5cqWk4j+r7774UpR6AnxPbL2n/Bbc iifDeywQtow1LI7xXl3p27kLD8SfEJk1rQBNE+veDc2rQWksjBoNXKsClqbXA12oMPd3 Oz3g== ARC-Authentication-Results: i=1; mx.google.com; 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 y4si990751ooh.53.2020.03.26.07.50.15; Thu, 26 Mar 2020 07:50:28 -0700 (PDT) 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; 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 S1728060AbgCZOsm (ORCPT + 99 others); Thu, 26 Mar 2020 10:48:42 -0400 Received: from retiisi.org.uk ([95.216.213.190]:35070 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgCZOsl (ORCPT ); Thu, 26 Mar 2020 10:48:41 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id D0130634C90; Thu, 26 Mar 2020 16:48:21 +0200 (EET) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1jHTnw-0000iH-Up; Thu, 26 Mar 2020 16:48:20 +0200 Date: Thu, 26 Mar 2020 16:48:20 +0200 From: Sakari Ailus To: Sowjanya Komatineni Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, frankc@nvidia.com, hverkuil@xs4all.nl, helen.koike@collabora.com, digetx@gmail.com, sboyd@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v5 6/9] media: tegra: Add Tegra210 Video input driver Message-ID: <20200326144820.GB2394@valkosipuli.retiisi.org.uk> References: <1584985955-19101-1-git-send-email-skomatineni@nvidia.com> <1584985955-19101-7-git-send-email-skomatineni@nvidia.com> <20200325110358.GB853@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sowjanya, On Wed, Mar 25, 2020 at 11:30:18PM -0700, Sowjanya Komatineni wrote: > > On 3/25/20 4:03 AM, Sakari Ailus wrote: > > > +static int tegra_channel_enum_input(struct file *file, void *fh, > > > + struct v4l2_input *inp) > > > +{ > > > + /* currently driver supports internal TPG only */ > > > + if (inp->index) > > > + return -EINVAL; > > > + > > > + inp->type = V4L2_INPUT_TYPE_CAMERA; > > > + strscpy(inp->name, "Tegra TPG", sizeof(inp->name)); > > > + > > > + return 0; > > > +} > > > + > > > +static int tegra_channel_g_input(struct file *file, void *priv, > > > + unsigned int *i) > > > +{ > > > + *i = 0; > > > + return 0; > > > +} > > > + > > > +static int tegra_channel_s_input(struct file *file, void *priv, > > > + unsigned int input) > > > +{ > > > + if (input > 0) > > > + return -EINVAL; > > > + > > > + return 0; > > > +} > > Please see patchset on topic "v4l2-dev/ioctl: Add V4L2_CAP_IO_MC" on > > linux-media; it's relevant here, too. > > Can update in v6 to add device caps V4L2_CAP_IO_MC and remove enum/g/s_input > ioctls. > > But, I don't see this patch "v4l2-dev/ioctl: Add V4L2_CAP_IO_MC" on latest > linux-next It's not merged yet but likely will be very soon. -- Sakari Ailus