Message ID | 20210920181145.19543-11-digetx@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mmc-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F07BAC4332F for <linux-mmc@archiver.kernel.org>; Tue, 21 Sep 2021 02:41:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE43F60FC1 for <linux-mmc@archiver.kernel.org>; Tue, 21 Sep 2021 02:41:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346340AbhIUCnP (ORCPT <rfc822;linux-mmc@archiver.kernel.org>); Mon, 20 Sep 2021 22:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241756AbhIUCCu (ORCPT <rfc822;linux-mmc@vger.kernel.org>); Mon, 20 Sep 2021 22:02:50 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D6AAC1400B7; Mon, 20 Sep 2021 11:12:12 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id m3so68770843lfu.2; Mon, 20 Sep 2021 11:12:12 -0700 (PDT) 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=yDP03amDwCEY6IiivIbDG+60+C+xV/Pv6sR1LEywSYo=; b=qDapw0cPtAjj9wbkp+DXSjTE2nG3BzEUgq5MgDmdvXLzbcW/r6CWYiAaUg0XTNOLNv //sqZyE/HU6AP43r61rSgnoGxtDzucZjEuUCzt0mqSKGk5ckb8XNdhD+MxRDV0jBunMH fpmjNgfzJKn8BPTdFO3rDLoLpfEnwo3EkjRNBJc0f2oYvEQBBqckejD8jdz0SOSxYf8J Nr7xRKfpHOLLobFill5/B5l8zqmBWgUPKNBF4HJds/zJD8EXp+FjwweV5sja8CnIR6rS muO2UcJSRz0jtUxEXoGTkMZ3umjXu0o39p9rEXO4uapM9kMQHd4Gl8CE6tJTInXDv15d LjwQ== 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=yDP03amDwCEY6IiivIbDG+60+C+xV/Pv6sR1LEywSYo=; b=SG9NoBkRt7gIuVely2lW5eHriaWDbde1UwzIZQex7Be4jXVGu/QUVWkPAOSQHXPUgK DQEicyURpNzXMC/+YsK3Xczf3blbhGPA/Vf4+AvvRZRksfOjlK8gi2V7kWSlMCNobLdq YIWb3kEiwftmOGHJMYu0/10DZgYFq7WzUwR2zJieCEeIHkV7hq3ThC+OuxAHL1WzOtlh ie86dq3wBEfOMONu45d5z8VrrfxtRH+7cPDqf7CP3uO8UZdtHhCe+q+psWm0+L/5+3cq 0ZKpUgM46rTC0PaeQK/5O1AkNius82MZVHDfyOvi/8KzMd4ETCMYFdTWYHevqW/OqtSp MBUg== X-Gm-Message-State: AOAM531tRGDJCKn0M23mY4SDkXsw+SBd8X8B9YSqOeR9idTY8iQDP+Qn ETWHEoIW5NyWAulk1VMuD3Y= X-Google-Smtp-Source: ABdhPJwtNP74/YuLajeNCMqej+rkQOQF08Y9DVLR2IKDd7O2kUf+4GT4Qowm6qUonK6sIwMN6ESuVw== X-Received: by 2002:a2e:b171:: with SMTP id a17mr4320966ljm.454.1632161530989; Mon, 20 Sep 2021 11:12:10 -0700 (PDT) Received: from localhost.localdomain (46-138-151-206.dynamic.spd-mgts.ru. [46.138.151.206]) by smtp.gmail.com with ESMTPSA id u3sm1775677lju.107.2021.09.20.11.12.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 11:12:10 -0700 (PDT) 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>, Peter Chen <peter.chen@kernel.org>, 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>, Rob Herring <robh+dt@kernel.org>, Michael Turquette <mturquette@baylibre.com> Cc: linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-staging@lists.linux.dev, linux-pwm@vger.kernel.org, linux-mmc@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Mark Brown <broonie@kernel.org>, Vignesh Raghavendra <vigneshr@ti.com>, Richard Weinberger <richard@nod.at>, Miquel Raynal <miquel.raynal@bootlin.com>, Lucas Stach <dev@lynxeye.de>, Stefan Agner <stefan@agner.ch>, Mauro Carvalho Chehab <mchehab@kernel.org>, David Heidelberg <david@ixit.cz> Subject: [PATCH v12 10/35] gpu: host1x: Add host1x_channel_stop() Date: Mon, 20 Sep 2021 21:11:20 +0300 Message-Id: <20210920181145.19543-11-digetx@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210920181145.19543-1-digetx@gmail.com> References: <20210920181145.19543-1-digetx@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-mmc.vger.kernel.org> X-Mailing-List: linux-mmc@vger.kernel.org |
Series |
NVIDIA Tegra power management patches for 5.16
|
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 7bccf589aba7..66473b5be0af 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h @@ -181,6 +181,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);