aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python
diff options
context:
space:
mode:
authorVirendra Kakade <virendra.kakade@ni.com>2019-04-30 17:05:28 -0500
committerAaron Rossetto <aaron.rossetto@ni.com>2021-01-11 13:18:22 -0600
commitfab4a5dd1708de6c5dc5fb4dc50b396a4adfeb51 (patch)
treec051515b67bbf12921d5c83ae6ac80337632f508 /mpm/python
parent643dd4f9d103da89feaa600214f2dab9d3c64bdc (diff)
downloaduhd-fab4a5dd1708de6c5dc5fb4dc50b396a4adfeb51.tar.gz
uhd-fab4a5dd1708de6c5dc5fb4dc50b396a4adfeb51.tar.bz2
uhd-fab4a5dd1708de6c5dc5fb4dc50b396a4adfeb51.zip
mpmd: Add support to delay and trigger fpga/dts load after update
Add a new image_loader argument delay_reload to provide a way to update components but optionally delay the actual load. Similarly add a new argument, just_reload, to enable uhd to reload the fpga/dts components. Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
Diffstat (limited to 'mpm/python')
-rw-r--r--mpm/python/usrp_mpm/rpc_server.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/rpc_server.py b/mpm/python/usrp_mpm/rpc_server.py
index 7fc292215..262bedb6c 100644
--- a/mpm/python/usrp_mpm/rpc_server.py
+++ b/mpm/python/usrp_mpm/rpc_server.py
@@ -531,8 +531,9 @@ class MPMServer(RPCServer):
component_id = metadata['id']
if component_id in self.periph_manager.updateable_components:
# Check if that updating that component means the PM should be reset
- if self.periph_manager.updateable_components[component_id]['reset']:
- reset_now = True
+ reset_now = (reset_now or
+ self.periph_manager.updateable_components[component_id]['reset']) and \
+ not metadata.get('reset', "").lower() == "false"
else:
self.log.debug("ID {} not in updateable components ({})".format(
component_id, self.periph_manager.updateable_components))