diff options
author | Alex Elder <elder@linaro.org> | 2021-07-26 15:11:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-26 23:09:18 +0100 |
commit | 07e1f6897f735296aeff6c135cb8ddb4040a3e20 (patch) | |
tree | deb6db7f3ce32a91b6d2ea1d74d3bf81b9af48a4 /drivers/net | |
parent | 63961f544e271db5f5d3a03164cbe28fcb7eba93 (diff) | |
download | linux-stable-07e1f6897f735296aeff6c135cb8ddb4040a3e20.tar.gz linux-stable-07e1f6897f735296aeff6c135cb8ddb4040a3e20.tar.bz2 linux-stable-07e1f6897f735296aeff6c135cb8ddb4040a3e20.zip |
net: ipa: configure memory regions early
IPA-resident memory is one of the most primitive resources that
needs initialization, so call init_mem_config() early in
ipa_config().
This is in preparation for initializing the IPA-resident
microcontroller earlier.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ipa/ipa_main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index 971987fd53d6..47ed96dd49ab 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -468,31 +468,31 @@ static int ipa_config(struct ipa *ipa, const struct ipa_data *data) ipa_hardware_config(ipa, data); - ret = ipa_endpoint_config(ipa); + ret = ipa_mem_config(ipa); if (ret) goto err_hardware_deconfig; - ret = ipa_mem_config(ipa); + ret = ipa_endpoint_config(ipa); if (ret) - goto err_endpoint_deconfig; + goto err_mem_deconfig; ipa_table_config(ipa); /* No deconfig required */ /* Assign resource limitation to each group; no deconfig required */ ret = ipa_resource_config(ipa, data->resource_data); if (ret) - goto err_mem_deconfig; + goto err_endpoint_deconfig; ret = ipa_modem_config(ipa); if (ret) - goto err_mem_deconfig; + goto err_endpoint_deconfig; return 0; -err_mem_deconfig: - ipa_mem_deconfig(ipa); err_endpoint_deconfig: ipa_endpoint_deconfig(ipa); +err_mem_deconfig: + ipa_mem_deconfig(ipa); err_hardware_deconfig: ipa_hardware_deconfig(ipa); ipa_clock_put(ipa); @@ -507,8 +507,8 @@ err_hardware_deconfig: static void ipa_deconfig(struct ipa *ipa) { ipa_modem_deconfig(ipa); - ipa_mem_deconfig(ipa); ipa_endpoint_deconfig(ipa); + ipa_mem_deconfig(ipa); ipa_hardware_deconfig(ipa); ipa_clock_put(ipa); } |