Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp127452ybb; Tue, 24 Mar 2020 18:10:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsLGT4yX4PTo+sb9aNGYFcYFfU2N3mAn7Iovj7BPlxLAwj+wpMAjorr57gbjtKyFvoim1vj X-Received: by 2002:a9d:548:: with SMTP id 66mr625300otw.227.1585098629437; Tue, 24 Mar 2020 18:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585098629; cv=none; d=google.com; s=arc-20160816; b=hRJGSKu+P8Woifjn0WAaUfhGTTp8ctdLn5qzRiOV1LbuKCqt2JDTMxIzdvoXmGWbf1 EIEbSzQ2SWYRxaGCYyZ5C1mvCaKPbPiMZFaa1f8p9cwyxPE7CCMvN2eKgCtJi56pgFSa 0tmCInJ2pwMGBtjIc/UtBlMa+JFnCcCC5c/J708BPliJzFG66N7WeZ3hQ6kgzc89W+pJ hW85+h2zb/dsh6dI9PTYbrHBhDPVMsJuT0I+j3OK0JUKvwzqyFmQb6dsP/ITBQLvbrdc bcnDabGBu3D1qNX121jOq9e43d/aHeBvx8/7qUEPDeTGcODv66IPubBgLHE3fZj/x3Y5 nOaA== 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=aKHthfLue+1H2XDz473VqkpiUrB/NbryW9pP8d76r+s=; b=qtDRABXuszEwV/7Dril9AjTV68zhpaUsbYeDUJJ/iUtJtarZGqT1YlR2fXsRP/hccR b6yiEsl463lxQ5IhBWijRBx0DTZWP1Yw22rBWQedwc9FIEJ0IP+UVmi98nrNX3GLyQjk 3FbdWguxsKQ8cip2NkeGGHWOO1mAUGiJ+RCN1WZoTTRtuu9aSSxNxU/kfy4qA6byQkdG R84UPNpSLBjxl4GAhcQMOKZ2dX/x7lZHH9FN95H7rAWt002x/4e1qjIUgynLvADQNRxj cRiSTjWGQrJWiacJLqziD67waW1Nigp1K2CdS7ZX8OrpH6Adyl9R0aMSM0m6X2Zd6UoZ d69A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b="and8LT/3"; 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 p26si10141002oth.186.2020.03.24.18.10.16; Tue, 24 Mar 2020 18:10:29 -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; dkim=pass header.i=@nvidia.com header.s=n1 header.b="and8LT/3"; 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 S1727259AbgCYBIx (ORCPT + 99 others); Tue, 24 Mar 2020 21:08:53 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:16847 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727119AbgCYBIx (ORCPT ); Tue, 24 Mar 2020 21:08:53 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 24 Mar 2020 18:08:07 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 24 Mar 2020 18:08:52 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 24 Mar 2020 18:08:52 -0700 Received: from [10.2.160.81] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 25 Mar 2020 01:08:51 +0000 Subject: Re: [RFC PATCH v5 6/9] media: tegra: Add Tegra210 Video input driver To: Dmitry Osipenko , , , , , CC: , , , , , References: <1584985955-19101-1-git-send-email-skomatineni@nvidia.com> <1584985955-19101-7-git-send-email-skomatineni@nvidia.com> <8f44e42d-2008-fe53-f4fb-b57502da91a8@gmail.com> From: Sowjanya Komatineni Message-ID: <5695fc27-6839-dda3-9d06-77ef36ecfd43@nvidia.com> Date: Tue, 24 Mar 2020 18:08:52 -0700 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: <8f44e42d-2008-fe53-f4fb-b57502da91a8@gmail.com> 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="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1585098487; bh=aKHthfLue+1H2XDz473VqkpiUrB/NbryW9pP8d76r+s=; 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=and8LT/30BHlj1Hs1vFx5H2aqxApXzDkDdNer+loRB+Wgj+01QrMDvgjzESzdwwxd ChtlCFqZQPGZmdLWJzx/x22OQ94pCqO3R0jismKLaALCIUtlesptrkE/fxP1CjLca2 jCU4ugZjhQ2n1Kd6KriXNfve5uSN/5KC6JpGGCOF4EUDEzlE3sV1vXPjQxA6m+ijg5 wr5E/1sX3iF0JjJAE4mmwDI+MciU9rfJd7Q/0zczolkJQBXUTmTUeJmDs06vD/ZbtF 5dbYP/EJ5QxPkoff0zwMjk/SNPEFuxKOMOSf8HfSGvZBfsfWUguUEGkVao+Duojqf/ D952W4A2bjHdg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/24/20 5:34 PM, Dmitry Osipenko wrote: > External email: Use caution opening links or attachments > > > 23.03.2020 20:52, Sowjanya Komatineni =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> +static void tegra_channel_vi_soft_reset(struct tegra_vi_channel *chan) >> +{ >> + /* disable clock gating to enable continuous clock */ >> + tegra_vi_write(chan, TEGRA_VI_CFG_CG_CTRL, 0); >> + /* >> + * Soft reset memory client interface, pixel format logic, sensor >> + * control logic, and a shadow copy logic to bring VI to clean sta= te. >> + */ >> + vi_csi_write(chan, TEGRA_VI_CSI_SW_RESET, 0xf); >> + usleep_range(100, 200); >> + vi_csi_write(chan, TEGRA_VI_CSI_SW_RESET, 0x0); > Is it safe to reset MCCIF without blocking and flushing memory requests > at first? Yes to bring VI to clean state on errors its recommended by HW design team.