diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-03 01:33:54 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:03:59 -0800 |
commit | 40235b8c5aba6acec2acdc4135b828b1d9785a96 (patch) | |
tree | 6570aa9f99872979e51106f5249fe82080c611dc /mpm/python/usrp_mpm/periph_manager/base.py | |
parent | 0d659863da607acaaf15ab69a662af2da006f65e (diff) | |
download | uhd-40235b8c5aba6acec2acdc4135b828b1d9785a96.tar.gz uhd-40235b8c5aba6acec2acdc4135b828b1d9785a96.tar.bz2 uhd-40235b8c5aba6acec2acdc4135b828b1d9785a96.zip |
mpm/mpmd: Call init() during UHD session init, not on hwd spawn
Diffstat (limited to 'mpm/python/usrp_mpm/periph_manager/base.py')
-rw-r--r-- | mpm/python/usrp_mpm/periph_manager/base.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mpm/python/usrp_mpm/periph_manager/base.py b/mpm/python/usrp_mpm/periph_manager/base.py index 89282265f..c0e64ade3 100644 --- a/mpm/python/usrp_mpm/periph_manager/base.py +++ b/mpm/python/usrp_mpm/periph_manager/base.py @@ -302,6 +302,12 @@ class PeriphManagerBase(object): passed to the daughterboard's init calls. For additional features, this needs to be overridden. + The main requirement of this function is, after calling it successfully, + all RFNoC blocks must be reachable via CHDR interfaces (i.e., clocks + need to be on). + + Return False on failure, True on success. + args -- A dictionary of args for initialization. Similar to device args in UHD. """ @@ -312,8 +318,7 @@ class PeriphManagerBase(object): self.log.info("Identifying available network interfaces...") self._init_interfaces() self.log.debug("Initializing dboards...") - for dboard in self.dboards: - dboard.init(args) + return all((dboard.init(args) for dboard in self.dboards)) def deinit(self): """ |