Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1856965ybz; Thu, 30 Apr 2020 06:45:53 -0700 (PDT) X-Google-Smtp-Source: APiQypK1aS2s6CLTbczoD7S9I5bx0yWSTYhNn821sKhI4MV7Om9EDyz/ZhhRmcnV7SpaCFuKmvX0 X-Received: by 2002:a50:a985:: with SMTP id n5mr2761574edc.338.1588254353136; Thu, 30 Apr 2020 06:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588254353; cv=none; d=google.com; s=arc-20160816; b=KM8W9+GNxSu/E+82ucdDFsgEWHWASKrUL+J3VN+Gie/YDJpBHwP+EdIJakMNz38a91 3QUwfSoANL2nC6MhrJk3zbx5MZraFe30v8eHKjEN9BfjE7XSWM1FDGo8z51eqn0Erw8J lmL1O/NL/VrKQ4rxPSfSELn/gnegH8hd5Qx/azd+aB0xCHvOS5LyMFPjdlfD5oWNXSF+ quRMiZRHtJqKxNzM96rQLtc0snhkD/Si5zgih/uF+lKWr9w1ZloHdVerqo1yRyEV+RKs M8I9aHhgEyZJdzcst5bMrKv+VlXyrGh/pZDRShaW/aTx5HsOVvM6F+VGFp50oD0lx0zB wsow== 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=A6YpIeXRQ3oa6pHUnqjGa6cFyQysn0a0+/4OldnV7wc=; b=hAJxm+wpZ1Kx3M/k7wksRqX3yqwDN6HTQjTabg6kPicbDtKJ1I5VECR0y3h8/xUhxY OLGNEiiMQFrJLREnN0yiv6sLB64nx2gInkdhwPoIhlsYFdscTZpmZdMiayv+ft/nmidT qbiXF/tzVlUjcaHWNP1cflARtGdKcep7GFP5mA0UWZWuORUoldGMqhdA/q0BCyhtMbVr uNF7TGELIWD09mKW15tB6pr9WuZJWrBK02DGaPAiDouTgGdl4O1cTAB5V57V9+cGPHWQ o5r1GlW69RqkY+gV+a+L41Ms165fHnE3Pek0vYB2wIr7IpQmR3Xj9yTZjmW0wCl68uf1 wtpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NlMK9W5m; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h14si6030442ejd.424.2020.04.30.06.45.28; Thu, 30 Apr 2020 06:45:53 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=NlMK9W5m; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727068AbgD3NnO (ORCPT + 99 others); Thu, 30 Apr 2020 09:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726577AbgD3NnO (ORCPT ); Thu, 30 Apr 2020 09:43:14 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91729C035494; Thu, 30 Apr 2020 06:43:13 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id l19so6508358lje.10; Thu, 30 Apr 2020 06:43:13 -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=A6YpIeXRQ3oa6pHUnqjGa6cFyQysn0a0+/4OldnV7wc=; b=NlMK9W5m4IrjAVP/UBA9HRX7+gBleYHX+FLGYqR8aidm2COx+iIfMluQMCW7CTLV3F JFHRrUlJjgrBclgNWmLhXuRws8+pVHitwE/W1J67DLM1ZqFhSoWfBpedb47/RBpPPZX0 SVZws+ERwzguHh2vdhonfG0YQUCvlEqrlUbsXFcsPhDd4C5ixp8KeJnvesj82o2kEVLg 6wuVc/QKj0mHwxp2J2tD+MprigE4iFM3S0xA/uqYV0bsJj0tA7a1cxV/vC0z77+sTpFK WhFodDLaFR5ePQ6uumzITOrPCFjHucmvUJIEHYnWi9kAK2iizMTHQrE9Kg5uAodq4gja SmcQ== 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=A6YpIeXRQ3oa6pHUnqjGa6cFyQysn0a0+/4OldnV7wc=; b=omRTGxERbeN8Z4zNXQQKwbbfucV0C0ICT9jmCrRP2tyQE0K2hLqQaS1HsvkBx3BvJ3 56GOVudwY7Jj9XEG2NT/jb5aMNnN60yIrwadN956OykbSIjBS57NpELr3p6n/EmD7uIx q6Qxh0HDGR31W5dhfLXw1QljyDI6EZ/hOP4dpGzIQeVfOS0RZYw4kqADXU2Pcn78F/8N WV4EKkjPirNuWkiIVdzD9ICyOyV6SbjI1IYHKo93Y3+lv3aHUx4GAtFThFV8O/p9RNpT 2YhpF2dTP9yUDpCjlR7HfvFFZoRMJiFS3zA94D3gb8m4eifA5GrPhMJGYYGyb5NH0Ex8 hmlQ== X-Gm-Message-State: AGi0Pub2NdRoeqWdOqDCBfYgImD6xtXy68wL9v1zhE6TpT2turDGoIbj u3NnFtjzGzfVD+PEeHXAP44PLnXZ X-Received: by 2002:a2e:9d8c:: with SMTP id c12mr2409610ljj.67.1588254191854; Thu, 30 Apr 2020 06:43:11 -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 j24sm4389258ljg.60.2020.04.30.06.43.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Apr 2020 06:43:11 -0700 (PDT) Subject: Re: [RFC PATCH v11 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, sakari.ailus@iki.fi, 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: <1588197606-32124-1-git-send-email-skomatineni@nvidia.com> <1588197606-32124-7-git-send-email-skomatineni@nvidia.com> From: Dmitry Osipenko Message-ID: <5d559a5a-ac84-f128-ccea-270974560b58@gmail.com> Date: Thu, 30 Apr 2020 16:43:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1588197606-32124-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 30.04.2020 01:00, Sowjanya Komatineni пишет: > +void tegra_channel_release_buffers(struct tegra_vi_channel *chan, > + enum vb2_buffer_state state) > +{ > + struct tegra_channel_buffer *buf, *nbuf; > + > + spin_lock(&chan->start_lock); > + list_for_each_entry_safe(buf, nbuf, &chan->capture, queue) { > + vb2_buffer_done(&buf->buf.vb2_buf, state); > + list_del(&buf->queue); > + } > + I'd remove this blank line to make lock/unlock block more human-readable. > + spin_unlock(&chan->start_lock); > + > + spin_lock(&chan->done_lock); > + list_for_each_entry_safe(buf, nbuf, &chan->done, queue) { > + vb2_buffer_done(&buf->buf.vb2_buf, state); > + list_del(&buf->queue); > + } > + And thins line too. > + spin_unlock(&chan->done_lock); > +}