From fab4a5dd1708de6c5dc5fb4dc50b396a4adfeb51 Mon Sep 17 00:00:00 2001 From: Virendra Kakade Date: Tue, 30 Apr 2019 17:05:28 -0500 Subject: 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 --- mpm/python/usrp_mpm/rpc_server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mpm/python') 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)) -- cgit v1.2.3