Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp131753ybb; Tue, 24 Mar 2020 18:16:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuAHx+UsW2BqmCoEVSTf8BncJno9VXT93KLPytKOve+onfwB1GWrmDCignoQNeFRAZD9juD X-Received: by 2002:a9d:2c01:: with SMTP id f1mr717238otb.67.1585099001737; Tue, 24 Mar 2020 18:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585099001; cv=none; d=google.com; s=arc-20160816; b=VJrdPnxpHuO9nWrvySmQDJLaoRxiLBWIYgmxjLn9cArl3afYxQSfUGaaLX1Q0v4Urj klmREd5R1Jp9BCmu8hjXvCqXDQhqZTdOyOb+dt8jLOMuUDk3HYlwAnPiEbxGOxQiip/7 lA7XAZJysohJNAU+n9tyx5N8W0HGJM6h8otqahW8DQC1hnDmJoXudJXj7Yjvt+8wKLEq dfrFU32xUlW8QsXnGz6jK1/uZTTbnI+ub24HL592loEAoqgz4qLXM4G5iecbqFXVvg0H cMKWP4crsT8Wva5llo74FW4ldnkaINHF3HY33nuYs83K7fqJaIjxxJS/rZZ/0PpB/Wbq eHRg== 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:references:cc:to:from:subject; bh=bU2HFAYyjlSHy3XCNC4Et16uw6jnRXPLo6YbsCijPUg=; b=OuPppI359L4SvSG8lDhHDA+EvkwaCLaZLgJ+J8tKbZ6vFs+/vAh+kLF4SA50D6f8zQ 2Sc2HTLtxS+1SNhs18S/ro8MqB2EcjLkPGW6FXSVUGlJl/pQq+WMaMz8iFKp0N6xLLa+ A7kW6rV75sxSwjTInUimBGl81G/eIHNASwBLe6Fs7AQq6G+vs9KgEVnWWM4kmlSsusyi kpNMKdZ8l13aMTRYn22p5E/e7ZSnuxWse2DixzDxcoOCSSqi8HuPY5JZBHw3qXY8jmg/ bSb2V4CoVxyWOkspi/XiBJi+gPDoMcIT5ZY7ktQOBVbql7QrSC8dniAzfmUodQ7HjKGk elyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=baso6vXv; 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 d20si9927869oti.311.2020.03.24.18.16.28; Tue, 24 Mar 2020 18:16:41 -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=baso6vXv; 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 S1727262AbgCYBPE (ORCPT + 99 others); Tue, 24 Mar 2020 21:15:04 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:13029 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727152AbgCYBPE (ORCPT ); Tue, 24 Mar 2020 21:15:04 -0400 Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 24 Mar 2020 18:13:32 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 24 Mar 2020 18:15:03 -0700 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 24 Mar 2020 18:15:03 -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:15:02 +0000 Subject: Re: [RFC PATCH v5 6/9] media: tegra: Add Tegra210 Video input driver From: Sowjanya Komatineni 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> <5695fc27-6839-dda3-9d06-77ef36ecfd43@nvidia.com> Message-ID: Date: Tue, 24 Mar 2020 18:15:02 -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: <5695fc27-6839-dda3-9d06-77ef36ecfd43@nvidia.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=1585098812; bh=bU2HFAYyjlSHy3XCNC4Et16uw6jnRXPLo6YbsCijPUg=; h=X-PGP-Universal:Subject:From:To:CC:References:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=baso6vXvWWdYt8HlMNp87qBzGMKSRA7WE17d7TZx5MfKoYWkttsuOK36Eep8zaeiU 3yn4nNzyIub8gBdIgJa8pwZL/Cw66sTn1Mgly+KMhLfsMzoVeCOX+XgOrsbxtTsFxD MFNxBDvEUZmWt3GYie1uWsCwuHp4GCGBkwxCanW6w05FbY6ldPS2VIGF1sJnFwK2+y e+SIYGlBoBaTGfMNchwJMusvSOUNO6vQK5Oobjw+zXmCEmBvbC3Yo8MqfN5EjR1yEA mTI8ZQE3e0mropzJJ5fPJQLkB8IZS1PsxKMl3afZeppilYCmlo/EZZGn6cW0i0VjCx /eZdAC+VhgcIQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/24/20 6:08 PM, Sowjanya Komatineni wrote: > > 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) >>> +{ >>> +=C2=A0=C2=A0=C2=A0=C2=A0 /* disable clock gating to enable continuous = clock */ >>> +=C2=A0=C2=A0=C2=A0=C2=A0 tegra_vi_write(chan, TEGRA_VI_CFG_CG_CTRL, 0)= ; >>> +=C2=A0=C2=A0=C2=A0=C2=A0 /* >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * Soft reset memory client interface, p= ixel format logic, sensor >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 * control logic, and a shadow copy logi= c to bring VI to clean=20 >>> state. >>> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 */ >>> +=C2=A0=C2=A0=C2=A0=C2=A0 vi_csi_write(chan, TEGRA_VI_CSI_SW_RESET, 0xf= ); >>> +=C2=A0=C2=A0=C2=A0=C2=A0 usleep_range(100, 200); >>> +=C2=A0=C2=A0=C2=A0=C2=A0 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=20 > team. BTW, just to be clear this is Software reset.