]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
firmware: tegra: Expose tegra_bpmp_mrq_return()
authorMikko Perttunen <mperttunen@nvidia.com>
Mon, 24 Jul 2017 16:29:16 +0000 (19:29 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 19 Oct 2017 14:27:55 +0000 (16:27 +0200)
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>
drivers/firmware/tegra/bpmp.c
include/soc/tegra/bpmp.h

index 33683b5a0d4843d495de103445499e8efdf52480..aa4bbbd7bdb44c620cf957df8815fc58dc9c9be8 100644 (file)
@@ -397,8 +397,8 @@ static struct tegra_bpmp_mrq *tegra_bpmp_find_mrq(struct tegra_bpmp *bpmp,
        return NULL;
 }
 
-static void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel,
-                                 int code, const void *data, size_t size)
+void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel, int code,
+                          const void *data, size_t size)
 {
        unsigned long flags = channel->ib->flags;
        struct tegra_bpmp *bpmp = channel->bpmp;
@@ -436,6 +436,7 @@ static void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel,
                mbox_client_txdone(bpmp->mbox.channel, 0);
        }
 }
+EXPORT_SYMBOL_GPL(tegra_bpmp_mrq_return);
 
 static void tegra_bpmp_handle_mrq(struct tegra_bpmp *bpmp,
                                  unsigned int mrq,
index 57519f4c126af25e7189d0175d213a16bc7e7f96..b382ed01af09e1dbcd639fc83a782fc52ff893bd 100644 (file)
@@ -118,6 +118,8 @@ int tegra_bpmp_transfer_atomic(struct tegra_bpmp *bpmp,
                               struct tegra_bpmp_message *msg);
 int tegra_bpmp_transfer(struct tegra_bpmp *bpmp,
                        struct tegra_bpmp_message *msg);
+void tegra_bpmp_mrq_return(struct tegra_bpmp_channel *channel, int code,
+                          const void *data, size_t size);
 
 int tegra_bpmp_request_mrq(struct tegra_bpmp *bpmp, unsigned int mrq,
                           tegra_bpmp_mrq_handler_t handler, void *data);