Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2640864ybb; Sun, 5 Apr 2020 12:39:04 -0700 (PDT) X-Google-Smtp-Source: APiQypJ0YeFd7OitQAGWWZExGrHfT1gh1f9qfdWN9Ekz/5KkR0pFnh8lN0FteX6vyeQ8zmIQdMv+ X-Received: by 2002:a9d:2207:: with SMTP id o7mr13333699ota.254.1586115544628; Sun, 05 Apr 2020 12:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586115544; cv=none; d=google.com; s=arc-20160816; b=HqKQyz0tol98ld6Sx5xhQSKxoLSoSrUf1S5Jdj46vConpAMJL/3kLTtmk7jGBJQX/A uciOdzOGwX0zyfPJ0JoaClALdwOTKiNttma5gZb+9ghRpa4z9zzNpeLVzmBUVoGa4CK6 URKhlbp/D8e3NWy8gT2vsKTLkzjB7QWAJluqC7O0q8KHjSdqx73Nfpa1tlMIx8p1MdZ8 8FzREtyvhv7l/LjHGmVBGKqDiKbRtFkmUiY9DVI+aTOI7SeH1QD6KtdJy4k6HsKsg2Kp clVy/Sw4AIyKgJMfhGwtIo3TQiuhT8GhFMwlbl0WHA3Gnqn0RRkUETXhkOX2rHBuFaGj r2zA== 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=/2/BZYY6tziL1rowFqv/WZjJQ1bVo6WtxgyQ+EB6IhI=; b=SUJI7OPn6mIoX8gRI63zQuH7jPxbiwaQNxU1syY7rEDwG1xn2yv0DM59DVxkp/RBQr qHQXRyweLFzYW4Va7MFm2ZILRcFP8xD0IvG+cUpRd1vv+jBae6dzWE1nO+bB3oZoOZzt qFUuEHI2/OFo/qVesLTvdw4a2dJ3dtkkhi6W9iFjZ2M2PgfWGcykyjCvb3qZs5ehrleq c1IdjgRfe4yBDChIAgrIg2dGqyfB6AWQZTmpUTJoo4F4R+12aFUkS++RU3f8ezECPb8a pSc/Dd9TF1hp38C127Dln08qVqNy7SW7B6LDHJUMQhKLI6y8l2IDUfrWOkBKs30x9qm1 C+Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P+LYUFcU; 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 o6si6604865oih.267.2020.04.05.12.38.52; Sun, 05 Apr 2020 12:39:04 -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=P+LYUFcU; 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 S1727716AbgDEThy (ORCPT + 99 others); Sun, 5 Apr 2020 15:37:54 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46352 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727356AbgDEThy (ORCPT ); Sun, 5 Apr 2020 15:37:54 -0400 Received: by mail-lj1-f196.google.com with SMTP id r7so12320265ljg.13; Sun, 05 Apr 2020 12:37:51 -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=/2/BZYY6tziL1rowFqv/WZjJQ1bVo6WtxgyQ+EB6IhI=; b=P+LYUFcU1CdNqGk1ZFGww7kPsFxv289pMKA+OGBQ8mWmub9FhsWGIP2TPoeFI9Xyaz n67YyDPR4osdklykNePsTyH/GfctlRzMcUFq51vu1Nr/V5/ABrITAh6tzgET/Ej3ai5z +Fy4yyGzFVs6LqtSc+yzcaPqN7iw3/EhbC1C7EYNBh6L9KZ7Wu9z0QU1C1BsOKlLy5d/ CgSzZPccT/bSRNvSU1L8DhsrWIhVZ++2FI3qHq/ub4EWLkdpLo51X1AGCl+EyRaLXXe8 tEkUxsXuj4nyYYBnaXazzdThA0a1qYOOBcmh8YgoBssCGF8PZixqzScMWk0Sc20mrylW dXag== 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=/2/BZYY6tziL1rowFqv/WZjJQ1bVo6WtxgyQ+EB6IhI=; b=f1FPS1zo/FjvuGW7O8kD2v4bRCoGrsfLBYsBGtVFx3ikKgRAO/TQdxCAmTzxk8Irts EqZX8M+Nvi91mKMQ9uhnUc1SzX3VIayxQvQeSvmMBBF54XDugvLfOBw5LetVMFR8evea utrNcx2zQcjry74ZYFYWzQsv50N1b4B8NQlplwdZob0ANNS0V1OM1CMqE9I1rGraUqxD DSp3cQiw6e3IbViHz+zNW0uudHle7S59dpfJxmD868NRr54Nh1WCXC0+Qs0iIUVduwKI J9wJAnkxTyXrcqTo5ft9djzOz7T3lfvC43qgM9UEPr+fQoYZd9DjwXpAKHfbYIWvQOiv 3IAA== X-Gm-Message-State: AGi0PubgpLMSoGlfMSXN2vvifXROsbZWeBhSDo/V/A+B8Uymz6/PnQNX /IjS4pHODCjJmndtxSAzDek5E/7H X-Received: by 2002:a2e:9b55:: with SMTP id o21mr9853233ljj.74.1586115469896; Sun, 05 Apr 2020 12:37:49 -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 q1sm10159991lfc.92.2020.04.05.12.37.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 05 Apr 2020 12:37:49 -0700 (PDT) Subject: Re: [RFC PATCH v6 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: <1585963507-12610-1-git-send-email-skomatineni@nvidia.com> <1585963507-12610-7-git-send-email-skomatineni@nvidia.com> From: Dmitry Osipenko Message-ID: Date: Sun, 5 Apr 2020 22:37:47 +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: <1585963507-12610-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 04.04.2020 04:25, Sowjanya Komatineni пишет: ... > +static int tegra_csi_init(struct host1x_client *client) > +{ > + struct tegra_csi *csi = host1x_client_to_csi(client); > + struct tegra_video_device *vid = dev_get_drvdata(client->host); > + int ret; > + > + vid->csi = csi; > + > + INIT_LIST_HEAD(&csi->csi_chans); > + > + if (pm_runtime_enabled(csi->dev)) { > + ret = pm_runtime_get_sync(csi->dev); > + if (ret < 0) { > + dev_err(csi->dev, > + "failed to get runtime PM: %d\n", ret); > + pm_runtime_put_noidle(csi->dev); > + return ret; > + } > + } else { RPM is supposed to be always available on Tegra nowadays.