Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp103165ybb; Tue, 24 Mar 2020 17:34:39 -0700 (PDT) X-Google-Smtp-Source: ADFU+vthmUt/3UDR+TnKvylHhkowbysYHhM4PwhZnH+FkHT4KjVCb0CzPe7QPX2rtTB5N8wNnWNs X-Received: by 2002:aca:3089:: with SMTP id w131mr698332oiw.121.1585096479230; Tue, 24 Mar 2020 17:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585096479; cv=none; d=google.com; s=arc-20160816; b=Uub3jr/L8i9zhUfFfCxAl3lh+AZOGljX3hXVSTwCTAaMlhAlxOxGVT/y0i9dvGJmq2 jr8JR1d5d3xAKkIW2g+7a6x+XafMkdHQeioUuvL30j5zR/BTaU2jWxwKK9HpNnZM1YqG j4QFN6hvO55YC+yEBS5zb0t+cmWzxABqjVZT7TKP56dA2mrflnkzCtag9Gn06j5qSj61 1oJ/xWf6nw15TPTtLFr0syqFs/Zuc7X6p+WSdJ64bE68gNxlVghHRZVetfz9ptzBPyLL OLVlJjt7mTAp6uGcq2UFtWAEMgp2aGC4i813WVxX8EH1+wqF2jy6QNP4RwoO3JXtUC26 ZU2A== 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=UmzJJ1sBsi/K93++MwxgB1lpuwtWNL5ZiLz4oULTYSU=; b=lXMjRHKs+rd96JArrOkqWugAJxjPAAhWDxREh7uapaf0f4tJJ6HnIOxnzTKezRw7k1 Br5Bnbn0wdaRMWG35R89gJzaCNbskD73Gg/yTf9OTpZ3yym3NkkPLJYqlyYWI/3eAc0N 08QotRmoXdQJCUc/FUlwPgEsSyOmcHxcX0GN2i30Ok8loo1fZt/HOGgVeAKMxzGzdLZ/ kKihMKwfMKKVBKexBFtEljCUuE0z+gKtss9cIvUVqpGfcbsNPV8qqX64d1MfivbuWIsV SVxNK++d0+PTK7Hb2DnhfpRtqMrY29ggmp7uph4grct2L+/u0WbZoMSBOchrtDZ1YYpU nTFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aySC5VtF; 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 l18si9192786oig.223.2020.03.24.17.34.26; Tue, 24 Mar 2020 17:34:39 -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=aySC5VtF; 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 S1727212AbgCYAeL (ORCPT + 99 others); Tue, 24 Mar 2020 20:34:11 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40620 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727110AbgCYAeL (ORCPT ); Tue, 24 Mar 2020 20:34:11 -0400 Received: by mail-lj1-f195.google.com with SMTP id 19so646684ljj.7; Tue, 24 Mar 2020 17:34:09 -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=UmzJJ1sBsi/K93++MwxgB1lpuwtWNL5ZiLz4oULTYSU=; b=aySC5VtF2Lpz1SCaOxutjcQeJM+oSmgXt7I3r3vBp9aMGjay3IP0ixSC6lKICaiU0K Y4jhr8sB3x3mN9ZKHTg5M7dX/fMdjamkzJI7K8bF1W28Gd6JpfDwT3ISFra5loOE9KqE 9M6H1LOQQvYww1+V0mT641WwD+/pS4f2wSuoJn4XNkeCOLttqQXaTJKBvpLkXsCvvMxi VqNdUxnbaI8L/5qp+hm43ww+ZLmqMy+gIlL7Dh7YZesT3e/9EofY0JF40mPn75zz5sBk vwn7bPQv2Y/3SGXUNPAFUMv/dm68z3BvDK3erxKBwzm4pqo16CrW0W0CWi5lAfgF4h90 wdhg== 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=UmzJJ1sBsi/K93++MwxgB1lpuwtWNL5ZiLz4oULTYSU=; b=H2C3Ja2df+eBq7l4Erx5QQ/52g7HoKz5e9LsMlMpH377dSh8YGHG6hWejbwGfgkGxc ky4ugrNnRwMdQakvxM9wwb7MAqioQOExOjpJ/g4gaf6cANx9+76O/rBkQ8PSGkOsPYer 8tdSWFLYU/a9bE8REVjiq7uXGngQALtFQ/pffoY1qHSwfI6DQ9Nkq2gliaWpFsJJFv9r q0oaGjdc5AHZ6XBFnEiGINkTrcS0yUJx3jj8EDUez7OZoduIsq513DOdvvW/X/2/6IP6 9YJ4m0/ktqMklVfGc/xkp8nLekt785JjUGFq6QMzlAZ9QMU+zjW1bjUhZthz4JbljV5N twRA== X-Gm-Message-State: ANhLgQ2N1KUvj1s1gPskoGUvlXLGcdlKXF0Yz4KyqBS7aWBuQkF2+XP5 FlK4Q4JDDP87wTmQM83smFQPUMh9 X-Received: by 2002:a2e:90c4:: with SMTP id o4mr188845ljg.287.1585096448059; Tue, 24 Mar 2020 17:34:08 -0700 (PDT) Received: from [192.168.2.145] (94-29-39-224.dynamic.spd-mgts.ru. [94.29.39.224]) by smtp.googlemail.com with ESMTPSA id x2sm10601960lfn.79.2020.03.24.17.34.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Mar 2020 17:34:07 -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> From: Dmitry Osipenko Message-ID: <8f44e42d-2008-fe53-f4fb-b57502da91a8@gmail.com> Date: Wed, 25 Mar 2020 03:34:06 +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: <1584985955-19101-7-git-send-email-skomatineni@nvidia.com> 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 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?