Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp954254ybb; Wed, 25 Mar 2020 12:45:08 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtZiScPW/guRGFryDIi2jbytlcZh3l5AXQz4nngH9dW7yvhXm41rCXB4KrHsM36np/O3x3P X-Received: by 2002:a9d:6b02:: with SMTP id g2mr3798880otp.340.1585165508315; Wed, 25 Mar 2020 12:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585165508; cv=none; d=google.com; s=arc-20160816; b=v73K2GgmJEBB851853cGd5Gr3qlX3KDn22NhkKSmVNIg5lJhSa7eX1f3vsKgUaGRMj uT+TJgfQj49ppLr7cN7tC0a7U88VOWJMNRRuQxI0CeqGW7BubHULiTlCM4QLZaBTLxGA gyAKf/6V8GcT+9bja9dVcatl6OnsnvsQJURdTWefNBmtl8WDg97sbSzXFfv2PCfh0PSU qs0anfA1og229VyBJCuOwK1jg+CIN+2kDinUsJMB8Yr9nXrBTRq9inc2YIA45nc340oV z6AjaL8TucQt3w3wSsLoIjx3XSdvxfc2qSSmh6QC1xdeoh+RcFWXDJdgfLul24nQwzpe xEEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=iOneQkgu81OkUpAJwJMMMqvZuhai2Fs8dCS/2N+5OpE=; b=W5BTCq2CVCLEyFVZgzG21W7zwpU/+6Uh9TEuAeIqg8W9xO3nsozJb8ifCtKapPggSi uefec1DVHltDAXxXL4TtPExKW9COp1pHpNQEQbIr2CmdYhxmME3WcWZpcldqOeEU5qys tG8h71wY+WMJFfjZts6PUE3I8CmZ8Egq4A+OXTrTniwUtla1faOz8a4tI1hX+jdCvxB1 nHSgFEDa7GI3DYuOZe+id3tzuEtbaHBZXEGge1F14xbtdCSyHD7WyMnujfVafuA2boEu N4/To+TyTGYHBXyDtfGZePvSsNIfoMNVLjCD8Md1n4AKY+mbTGoM8S0GMFpo+DjPG3Ho lZtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sE7Ldf+g; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si10051oie.70.2020.03.25.12.44.55; Wed, 25 Mar 2020 12:45:08 -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=@gmail.com header.s=20161025 header.b=sE7Ldf+g; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727280AbgCYTn2 (ORCPT + 99 others); Wed, 25 Mar 2020 15:43:28 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37619 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727236AbgCYTn2 (ORCPT ); Wed, 25 Mar 2020 15:43:28 -0400 Received: by mail-lj1-f194.google.com with SMTP id r24so3885930ljd.4; Wed, 25 Mar 2020 12:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=iOneQkgu81OkUpAJwJMMMqvZuhai2Fs8dCS/2N+5OpE=; b=sE7Ldf+g5xXUlgrOhgxrUtrz3LrZaBVWTDibYdk5kTO6NfTwat88fMUaLVcScOBqkN QUBGdAxU+nRzHoajnAzWCSWNahA1XyJijsxPVgEAuYJZGa+XhR/q7gQIgeS6v++LEDAW 25uoPaOvtsppD1Q6hM5gtNIRC3nQZ1ergaTjUty3JpfgfKpLQR6ZTkt148Va7wRIbkwS QwybV7EuqDmQr74jORTcxNJOgpe6EZSAEh1YwGseMhtBjZQxrcKrX3u2di2HChYKcHSH 0wd2jWvrhCAUOH+6snkZaF2s/1iJ+zkQkQ1xhGV6Up4HD1/5U1QjjpHd/9FpyFU24umt E7eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iOneQkgu81OkUpAJwJMMMqvZuhai2Fs8dCS/2N+5OpE=; b=jYQCOIwV5hYi+jl0dpgc5h8hZZL+BapJqyIFxX9f/JHUjMEajetXRhgPFYuLRCOCkc mUh2K7MZwQ3HgFf01lJNyYjZLIjLPVvVSgdHBp/STS8sVRVeH09xAYg60xUH7kUdqwwx u0wEXQWDiMHBTMYfhZ8UdoYlM3kLuh2jtBvMFRsLYsOjbqN8n/O1hUAwONMJ/yyBdr5D DXj3kKLniTuTj9e9aSquF9vM7xIq7+1Og8vZ7jASszGPcUMuAQ9O6nX/SIxJCMfMV4NK Y7DNfxW6jlRtXD+i/g+dysnJqvzWxHuWl/9ep+cgxp6yvGi8xiiQDFs5TwVAm71Syj2A yr4A== X-Gm-Message-State: AGi0PuZeaIM/tFGP7QD/YCBSfonjaKP+SI6MHK24e6XocWVFamOVqs6A O+GZgnFcK4C2pTRseraepeD7l1tcgYU= X-Received: by 2002:a2e:87c5:: with SMTP id v5mr2964473ljj.166.1585165404437; Wed, 25 Mar 2020 12:43:24 -0700 (PDT) Received: from [192.168.2.145] (ppp91-78-208-152.pppoe.mtu-net.ru. [91.78.208.152]) by smtp.googlemail.com with ESMTPSA id e1sm97237ljo.16.2020.03.25.12.43.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Mar 2020 12:43:23 -0700 (PDT) Subject: Re: [RFC PATCH v5 6/9] media: tegra: Add Tegra210 Video input driver To: Sowjanya Komatineni , thierry.reding@gmail.com, jonathanh@nvidia.com, frankc@nvidia.com, hverkuil@xs4all.nl, helen.koike@collabora.com Cc: 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 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> From: Dmitry Osipenko Message-ID: <265b13e7-633f-5fa4-8df9-e461bf7e386a@gmail.com> Date: Wed, 25 Mar 2020 22:43:22 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 25.03.2020 04:15, Sowjanya Komatineni пишет: > > 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 пишет: >>>> +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 >>>> state. >>>> +      */ >>>> +     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. > BTW, just to be clear this is Software reset. Ok