From e244764ffa5b41a64c704864ea243b3939d71636 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Tue, 9 Jun 2020 18:43:13 -0500 Subject: mpm: Look for pca953x based devices by device/name The pca953x driver introduced a change for how the "label" property populates. Instead of using the device model, it gives a device specific name. As a replacement, use device/name. This affects the tca6424 and tca6408. For the kernel change that causes this see: https://github.com/torvalds/linux/commit/5128f8d4450159f59565d247437d3bedda3994cb --- mpm/python/usrp_mpm/dboard_manager/mg_periphs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/python/usrp_mpm/dboard_manager/mg_periphs.py') diff --git a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py index 8a237b3d9..fe55cf39f 100644 --- a/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py +++ b/mpm/python/usrp_mpm/dboard_manager/mg_periphs.py @@ -29,7 +29,7 @@ class TCA6408(object): def __init__(self, i2c_dev): if i2c_dev is None: raise RuntimeError("Need to specify i2c device to use the TCA6408") - self._gpios = SysFSGPIO({'label': 'tca6408'}, 0xBF, 0xAA, 0xAA, i2c_dev) + self._gpios = SysFSGPIO({'device/name': 'tca6408'}, 0xBF, 0xAA, 0xAA, i2c_dev) def set(self, name, value=None): """ -- cgit v1.2.3