Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp727528pxu; Thu, 3 Dec 2020 11:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsZqSFBST0NIR5Lkl4BP7uhmwIaAV0V8JrCty5ude4s+0BlELquhGcduZoL3+KKHzzUw/E X-Received: by 2002:a05:6402:181a:: with SMTP id g26mr4235781edy.220.1607022241773; Thu, 03 Dec 2020 11:04:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607022241; cv=none; d=google.com; s=arc-20160816; b=ZxSsTD73Ub8eO/tTVI08JbHV+wmMd6jYEwlr+aXNLi7mCl4Gx0VxdHnE4tBGFejOS+ aGkM8KBkWujl3OA+oVL9nRnYguAmSCt0H7Nn3u3t6hUxlkQflHYQihseio9xMyrRKKt6 pT2nk/6lycfwERIIZkn/cRCqbCPmp96SK1oASDMIvkOm14PJko8dmaF1jW6Wld29j5Rq vcpo7DbWli/VdeimKd2B2eBRfRY8+GWS8UdA+2YM+wah9VKial37Yi6PYYNZrhmuJBle 3OXnOYkGYxa5TAzdK+BWuMXiFD9/oUWHKARTSWu+efVdBP3ufp1RRpC9ksJwxewSwCKf Sqzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=kTyQynYZOfOfJzdQDZRQRAmmuQmvfE4/+44pKh0V+MY=; b=XpElY1nma68cGkF+MYz/2D9NFFNkq78+Jwzt3jqZuyMuxRjlANsHf9mEdMnVC1FMWL z1imy0hGnMBHoT19vZaMdl9Ef31wWVRqJtYwV33YFI58SLzLERnlbrUXC7EYTFL8Ckxb Pr58wvxgFxjcl/TPoCUGQEQkksrnMi4Bf0NiemdKh57oTCKaVdKj2PF+pXoydTpE/05G xhU/O/JDYkgCNcjtYsXxgdE8OxvkoDvgHLI0mkNZlnuau/tyeGckgyj2ia2/8AR8dFgI r5mF7egPrEfvlTLJTc4thT6+O6tFNoKbBc+aR1wd6sQRlnD6jjLxSGTmNdMwtBHYphka 1CkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=HK8P3Ioj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id u17si1455141edt.394.2020.12.03.11.03.37; Thu, 03 Dec 2020 11:04:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=HK8P3Ioj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S2387905AbgLCTA5 (ORCPT + 99 others); Thu, 3 Dec 2020 14:00:57 -0500 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:5929 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731723AbgLCTAy (ORCPT ); Thu, 3 Dec 2020 14:00:54 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 03 Dec 2020 11:00:13 -0800 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 3 Dec 2020 19:00:09 +0000 Received: from skomatineni-linux.nvidia.com (172.20.13.39) by mail.nvidia.com (172.20.187.15) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 3 Dec 2020 19:00:08 +0000 From: Sowjanya Komatineni To: , , , , , CC: , , , , , Subject: [PATCH v3 07/13] media: tegra-video: Add support for VIDIOC_LOG_STATUS ioctl Date: Thu, 3 Dec 2020 10:59:56 -0800 Message-ID: <1607022002-26575-8-git-send-email-skomatineni@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1607022002-26575-1-git-send-email-skomatineni@nvidia.com> References: <1607022002-26575-1-git-send-email-skomatineni@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1607022013; bh=kTyQynYZOfOfJzdQDZRQRAmmuQmvfE4/+44pKh0V+MY=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:X-NVConfidentiality:MIME-Version:Content-Type; b=HK8P3Ioj//TNtz635xPetovlbjJ6sOR0cEOXpQ9+24IPY6Q4o8ADZJLc9gubi4cHz Mbygu7yjU+3u4dQTWdt31XIafzBAgDb7+waETVzIOP1FLWcrQO2tXy9WrxxQTa1Pp8 HEhXyNKJ36QmqfH94p8WZBpFFvGlwZWFpVvR8dUSZRcN+MJyh8Tk/G8PBif3DpkL8C KWg1tlYMPmngq9Z3PIiSZCjQPYg9fWZFGwSu8iIovY6BUchqDECW05Kpi3ye9QEMFS 2Hv2RLpZRw/ppb9J1k8UYHWQOaRs71myUJYgzdZCOW5uhIJ2yUxTuX9+u5oG0of+oY uPXTtTNYHyl9g== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds support for log_status ioctl. Signed-off-by: Sowjanya Komatineni --- drivers/staging/media/tegra-video/vi.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/media/tegra-video/vi.c b/drivers/staging/media/tegra-video/vi.c index bc38136..c280117 100644 --- a/drivers/staging/media/tegra-video/vi.c +++ b/drivers/staging/media/tegra-video/vi.c @@ -838,6 +838,15 @@ static int tegra_channel_dv_timings_cap(struct file *file, void *fh, return v4l2_subdev_call(subdev, pad, dv_timings_cap, cap); } +static int tegra_channel_log_status(struct file *file, void *fh) +{ + struct tegra_vi_channel *chan = video_drvdata(file); + + v4l2_device_call_all(chan->video.v4l2_dev, 0, core, log_status); + + return 0; +} + static int tegra_channel_enum_input(struct file *file, void *fh, struct v4l2_input *inp) { @@ -906,6 +915,7 @@ static const struct v4l2_ioctl_ops tegra_channel_ioctl_ops = { .vidioc_query_dv_timings = tegra_channel_query_dv_timings, .vidioc_enum_dv_timings = tegra_channel_enum_dv_timings, .vidioc_dv_timings_cap = tegra_channel_dv_timings_cap, + .vidioc_log_status = tegra_channel_log_status, }; /* -- 2.7.4