summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/tegra
diff options
context:
space:
mode:
authorMikko Perttunen <mperttunen@nvidia.com>2017-07-24 12:29:16 -0400
committerThierry Reding <treding@nvidia.com>2017-10-19 10:27:55 -0400
commit2e1e09ed423781d209c1fea773b1c3e614550ea5 (patch)
treea17cbe2853cf5219aec821de7627906fbac9e786 /drivers/firmware/tegra
parent370d010f0ef09db7ab157a6b5d6d9a737b148f2a (diff)
firmware: tegra: Expose tegra_bpmp_mrq_return()
Expose and export the tegra_bpmp_mrq_return() function for use by drivers outside the core BPMP driver. This function is used to reply to messages originating from the BPMP, which is required in the thermal driver. Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/firmware/tegra')
-rw-r--r--drivers/firmware/tegra/bpmp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/firmware/tegra/bpmp.c b/drivers/firmware/tegra/bpmp.c
index 33683b5a0d48..aa4bbbd7bdb4 100644
--- a/drivers/firmware/tegra/bpmp.c
+++ b/drivers/firmware/tegra/bpmp.c
@@ -397,8 +397,8 @@ static struct tegra_bpmp_mrq *tegra_bpmp_find_mrq(struct tegra_bpmp *bpmp,
397 return NULL; 397 return NULL;
398} 398}
399 399
400static void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel, 400void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel, int code,
401 int code, const void *data, size_t size) 401 const void *data, size_t size)
402{ 402{
403 unsigned long flags = channel->ib->flags; 403 unsigned long flags = channel->ib->flags;
404 struct tegra_bpmp *bpmp = channel->bpmp; 404 struct tegra_bpmp *bpmp = channel->bpmp;
@@ -436,6 +436,7 @@ static void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel,
436 mbox_client_txdone(bpmp->mbox.channel, 0); 436 mbox_client_txdone(bpmp->mbox.channel, 0);
437 } 437 }
438} 438}
439EXPORT_SYMBOL_GPL(tegra_bpmp_mrq_return);
439 440
440static void tegra_bpmp_handle_mrq(struct tegra_bpmp *bpmp, 441static void tegra_bpmp_handle_mrq(struct tegra_bpmp *bpmp,
441 unsigned int mrq, 442 unsigned int mrq,