Message ID | 20211114193435.7705-10-digetx@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=wC+h=QB=lists.freedesktop.org=dri-devel-bounces@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 310D7C433EF for <dri-devel@archiver.kernel.org>; Sun, 14 Nov 2021 19:36:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03849610F9 for <dri-devel@archiver.kernel.org>; Sun, 14 Nov 2021 19:36:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 03849610F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D7C676E887; Sun, 14 Nov 2021 19:36:13 +0000 (UTC) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0763B6E87B for <dri-devel@lists.freedesktop.org>; Sun, 14 Nov 2021 19:36:07 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id e9so30696723ljl.5 for <dri-devel@lists.freedesktop.org>; Sun, 14 Nov 2021 11:36:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Oh6QUonw7MrnLiKi5GFBt9OmRLKhM/HqDNHd5NkKg7U=; b=AGfugJA+vMgl2OqYrYViOMXRtJrjgKsheMPgjImFm5V6rsVFKtiuS5FbECR99DDuAz /gWFntVOyTV7zcr/pqyLi0USJAosZsjcbdGb43P/6rGqTXFTZ4itpdE2qYUJNzmzFtWD oeB89umEEFckWNLeULcCVq9MFuAM4u2N4k6fi0tKHMWhGstf9IcFBn+zpY+jFjtSQM26 ktMGyUH4W7KktsqYRGW/yLua10IXIeyRyynGgGoZ71L9MHzZl1OdMPwXQpLRwpjKhzsD t3i85WFR3Js3ACq2BSQ0jQ+lmEv92IQKET5gsez2Fw0o+bvAA7WeIih71d378QtTXZs/ qqeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Oh6QUonw7MrnLiKi5GFBt9OmRLKhM/HqDNHd5NkKg7U=; b=HBXjWjb+0IKQjTQu/K+Q7KCM+lz0dei0aS70/S1Kd9pnhsyA6rdW0AZhsUud4AFYRm P9/6QhPzJbr4ecIntnBCsCumyh0iPKB6tSvhGef2AJkeZIs8artlj03mmiC+0VkRTHAn cHHFUmz8MNFvF0KmDRKUZ9RtByH5AcV8/yVl9n+hFjiG+kSbYO+mPexbCiVwiXxNix5G icPDdLYkh/Bd82SYSGE3wnVKiPfgPkFMF+XSTRIdML5+uZdnIUs0HvQ/UvClO02/ZHJs SGnx1cW8UKc2ZtuieOB0CqqujabMUw2o2XyCY11d8MAIt1DrVRZ5skq8bH0bi0HgzrDL YG9w== X-Gm-Message-State: AOAM531pANM6teRe5nsMOBJHtGLOezdtUfc1R4tRXZFJ1QjOl1yXQhMc 9gVL9WtCHdcHv9EKRufYX+2PHpz1M5s= X-Google-Smtp-Source: ABdhPJx9Z36PZ6lgKQnptaYDq43ivT/UfIZwEqT+j+PxUHQEa1XCUa2lceTt1X045J+TYkYUxN+lvA== X-Received: by 2002:a2e:9acf:: with SMTP id p15mr34215654ljj.213.1636918565434; Sun, 14 Nov 2021 11:36:05 -0800 (PST) Received: from localhost.localdomain (46-138-46-211.dynamic.spd-mgts.ru. [46.138.46.211]) by smtp.gmail.com with ESMTPSA id p18sm1191280lfu.127.2021.11.14.11.36.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Nov 2021 11:36:05 -0800 (PST) From: Dmitry Osipenko <digetx@gmail.com> To: Thierry Reding <thierry.reding@gmail.com>, Jonathan Hunter <jonathanh@nvidia.com>, Ulf Hansson <ulf.hansson@linaro.org>, Viresh Kumar <vireshk@kernel.org>, Stephen Boyd <sboyd@kernel.org>, Peter De Schrijver <pdeschrijver@nvidia.com>, Mikko Perttunen <mperttunen@nvidia.com>, Lee Jones <lee.jones@linaro.org>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, Nishanth Menon <nm@ti.com>, Adrian Hunter <adrian.hunter@intel.com>, Michael Turquette <mturquette@baylibre.com> Subject: [PATCH v15 09/39] gpu: host1x: Add host1x_channel_stop() Date: Sun, 14 Nov 2021 22:34:05 +0300 Message-Id: <20211114193435.7705-10-digetx@gmail.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211114193435.7705-1-digetx@gmail.com> References: <20211114193435.7705-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: linux-pwm@vger.kernel.org, linux-pm@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Heidelberg <david@ixit.cz>, linux-tegra@vger.kernel.org, linux-clk@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
NVIDIA Tegra power management patches for 5.17
|
expand
|
diff --git a/drivers/gpu/host1x/channel.c b/drivers/gpu/host1x/channel.c index 4cd212bb570d..2a9a3a8d5931 100644 --- a/drivers/gpu/host1x/channel.c +++ b/drivers/gpu/host1x/channel.c @@ -75,6 +75,14 @@ struct host1x_channel *host1x_channel_get_index(struct host1x *host, return ch; } +void host1x_channel_stop(struct host1x_channel *channel) +{ + struct host1x *host = dev_get_drvdata(channel->dev->parent); + + host1x_hw_cdma_stop(host, &channel->cdma); +} +EXPORT_SYMBOL(host1x_channel_stop); + static void release_channel(struct kref *kref) { struct host1x_channel *channel = diff --git a/include/linux/host1x.h b/include/linux/host1x.h index 2ca53d7ed7ca..e8dc5bc41f79 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h @@ -226,6 +226,7 @@ struct host1x_job; struct host1x_channel *host1x_channel_request(struct host1x_client *client); struct host1x_channel *host1x_channel_get(struct host1x_channel *channel); +void host1x_channel_stop(struct host1x_channel *channel); void host1x_channel_put(struct host1x_channel *channel); int host1x_job_submit(struct host1x_job *job);