From 38980b2e497207ac529cba344d4d339e49cc5640 Mon Sep 17 00:00:00 2001 From: mattprost Date: Mon, 29 Mar 2021 14:30:22 -0500 Subject: mpm: mg: periphs: Read lowband lo lock status from cpld Fix the issue where N310 did not correctly read the lo lock status from the cpld. Signed-off-by: mattprost --- mpm/python/usrp_mpm/dboard_manager/mg_periphs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mpm/python/usrp_mpm/dboard_manager') diff --git a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py index fe55cf39f..70e0b75fc 100644 --- a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py +++ b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py @@ -133,6 +133,7 @@ class MgCPLD(object): self.regs = regs self.poke16 = self.regs.poke16 self.peek16 = self.regs.peek16 + self.reset() signature = self.peek16(self.REG_SIGNATURE) if signature != self.CPLD_SIGNATURE: self.log.error( @@ -188,7 +189,7 @@ class MgCPLD(object): 'rx'. """ mask = (1<<4) if which.lower() == 'tx' else 1 - return bool(self.peek16(self.REG_LO_STATUS & mask)) + return bool(self.peek16(self.REG_LO_STATUS) & mask) def reset_mykonos(self, keep_in_reset=False): """ -- cgit v1.2.3