summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/ipa_uc.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-07-26 15:11:35 -0500
committerDavid S. Miller <davem@davemloft.net>2021-07-26 23:09:18 +0100
commitdc8f7e3924a99515d8c3d3dbd905ad1327ac37b6 (patch)
tree4ddc4469adb37974aef9ba91071d486bc0501bc2 /drivers/net/ipa/ipa_uc.h
parent1118a14710ee97292c52e0185d12caa3eb17ad55 (diff)
downloadlinux-dc8f7e3924a99515d8c3d3dbd905ad1327ac37b6.tar.bz2
net: ipa: set up the microcontroller earlier
Initializing up the IPA-resident microcontroller requires the IPA clock, and sets up two IPA interrupt handlers, but this does not require GSI access. The interrupt handlers also require the clock to be enabled, and require the IPA memory regions to be configured, but neither requires GSI access. As a result, the microcontroller can be initialized during the "config" rather than "setup" phase of IPA initialization. Initialize the microcontroller in ipa_config() rather than ipa_setup(), and rename the called function ipa_uc_config(). Do the inverse in ipa_deconfig() rather than ipa_teardown(), and rename the function for that case ipa_uc_deconfig(). Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_uc.h')
-rw-r--r--drivers/net/ipa/ipa_uc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ipa/ipa_uc.h b/drivers/net/ipa/ipa_uc.h
index e8510899a3f0..cb0a224022f5 100644
--- a/drivers/net/ipa/ipa_uc.h
+++ b/drivers/net/ipa/ipa_uc.h
@@ -9,16 +9,16 @@
struct ipa;
/**
- * ipa_uc_setup() - set up the IPA microcontroller subsystem
+ * ipa_uc_config() - Configure the IPA microcontroller subsystem
* @ipa: IPA pointer
*/
-void ipa_uc_setup(struct ipa *ipa);
+void ipa_uc_config(struct ipa *ipa);
/**
- * ipa_uc_teardown() - inverse of ipa_uc_setup()
+ * ipa_uc_deconfig() - Inverse of ipa_uc_config()
* @ipa: IPA pointer
*/
-void ipa_uc_teardown(struct ipa *ipa);
+void ipa_uc_deconfig(struct ipa *ipa);
/**
* ipa_uc_panic_notifier()