Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp714892ybl; Wed, 29 Jan 2020 08:26:19 -0800 (PST) X-Google-Smtp-Source: APXvYqyPPQuWbH3ZyDMemFspFh8CJuURhSDs8ZD91CvaHmDAnD81U11jGBzoWoPjrciBprve55Rh X-Received: by 2002:aca:cdd5:: with SMTP id d204mr6909961oig.134.1580315179686; Wed, 29 Jan 2020 08:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580315179; cv=none; d=google.com; s=arc-20160816; b=LVmz96quagj7HAN2teF8jyawRP35OmFtqswOSqSsFbm4lZKhP0JZw+VW5XeeLVsxM1 g1+LXo0y//6Y6mcjEXnk5K4ov/zaUElGXIr/FEnd7HAYnEmOAbTMsK5nITfHdE7x7tzN bNAgQflXBxE47vTUfSil+N6SKDh7mMUH9igWosbdG8z7IfLSN6O9WLDxD2Orq0j9F5MU hOVCPyEl7NRffdY5egCXoQMQEi4hJmaepgevcg2t5H6owsyNoWw5q7t9rZPjlVuk+vDU PLJJ8rjJ9eCOB6GnQTWv46exXkCTHZTYzjl1UpagwFHtTEhYC2/OvHgqPUh92gyyBB3t piSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=6I/ImPF+IqDUZJDIu1hFpXvjuHGZpz3pV5FXxWX2E/w=; b=RMg0GMCz0qXUyjoMDVAbcFhq/4jde9OWYzpdiabEqmitr9OddyoXIU9ixC5Sjw2XQn 4HZkGwaElHuGw1RdRsnXviDciIlM9eL3pHUAfWtl1IAllbXPWN9ykCwuhVtUKwUtnC0t NSXtyRCDWQ3Ln+rRnNwOqfsTTLN/40Ev7U/5bhYoNBzrtJkg1mktpemh7Am02XKdW7zM k0PUBq067GsQpNkoicoK55qF8Rjz2blDM0C/nzmW2lkeDop9DYQk6d4tXpZD2N0kxbAr TwbOBccgzTW+VWytU2jrf9zjFCoEVJJom1F8hBDIDPVGuBJHW91ExhqsGc3fAMQ/z9w9 oZ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=ekFvSkub; 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=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si1192665oih.41.2020.01.29.08.26.07; Wed, 29 Jan 2020 08:26:19 -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=@nvidia.com header.s=n1 header.b=ekFvSkub; 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=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727177AbgA2QZG (ORCPT + 99 others); Wed, 29 Jan 2020 11:25:06 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:17767 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726564AbgA2QZF (ORCPT ); Wed, 29 Jan 2020 11:25:05 -0500 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Wed, 29 Jan 2020 08:24:50 -0800 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Wed, 29 Jan 2020 08:25:05 -0800 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Wed, 29 Jan 2020 08:25:05 -0800 Received: from [10.2.164.115] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 29 Jan 2020 16:25:04 +0000 Subject: Re: Re: [RFC PATCH v1 4/5] media: tegra: Add Tegra Video input driver for Tegra210 To: Thierry Reding CC: Helen Koike , , , , , , , , References: <1580235801-4129-1-git-send-email-skomatineni@nvidia.com> <1580235801-4129-5-git-send-email-skomatineni@nvidia.com> <3cdea635-a9ca-7b9c-3c99-8f489f4d669a@collabora.com> <162488d0-4e74-963a-3366-e4c1f7cf04ca@nvidia.com> <20200129100906.GE2479935@ulmo> From: Sowjanya Komatineni Message-ID: <8bf0ab06-a37e-4816-86e2-805b46787d5a@nvidia.com> Date: Wed, 29 Jan 2020 08:25:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20200129100906.GE2479935@ulmo> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1580315090; bh=6I/ImPF+IqDUZJDIu1hFpXvjuHGZpz3pV5FXxWX2E/w=; h=X-PGP-Universal:Subject:To:CC:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=ekFvSkubLBuF+i4LUc1Nl3qYT/n5NnQFbyBNrrDVVqMJ25q5z+NZPU7FctyuwSii0 wcADGpjGgmP/extSwxt3O/PDeO1WmsuAF7p5CxUwK6sxAsgLuafOLULq9e6TkCmoJX AjwysvWDMYdtSJjulG6f86Ap7WOEqAf+BWbFQ8UlxgfZyd8/SwJ5wWtJfdHKPYnRyV teffbOfUIU02M8YW1ndE7/a72cVYUhQFGkOOBvqRcKIDgAQxPk569XNZFtpNIW0LJE G7zsSHs3DXjjzubEv4FfHzyOZV8Hz7eMeebsZ5pZtoVC4ZTG0flUd7bpZ6xlN5BsNl yC8JmG4Sd1PoA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/29/20 2:09 AM, Thierry Reding wrote: > On Tue, Jan 28, 2020 at 02:13:17PM -0800, Sowjanya Komatineni wrote: >> On 1/28/20 1:45 PM, Helen Koike wrote: > [...] >>> On 1/28/20 4:23 PM, Sowjanya Komatineni wrote: > [...] >>>> +const struct tegra_csi_fops csi2_fops = { >>>> + .hw_init = csi2_hw_init, >>>> + .csi_start_streaming = csi2_start_streaming, >>>> + .csi_err_status = csi2_error_status, >>>> +}; >>> If I saw correctly, you don't have other instances of struct tegra_csi_fops with different functions. >>> So why not exposing the functions directly instead of creating a global variable? >> Currently driver supports Tegra210 only. Later we will add for Tegra186 and >> Tegra184 support too where we will have separate csi fops. > Perhaps this structure should be prefixed with a tegra210_ to make that > more obvious? Will fix prefix in v2 >>>> +EXPORT_SYMBOL(csi2_fops); > Also, why do we need to export these? These will be built as linked into > the Tegra VI driver, which is the only one that uses these, right? Would > it not be enough to just make it global? Why the need to export? > > Thierry Will fix in v2