mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
hwmon: Robustify hwmon scan
The hwmon module reads sysfs entries from the target during init. Since this step is known to be fragile on some hosts, make sure to specify tar=True when calling target.read_tree_values() to improve the chances of reading the data properly. Signed-off-by: Quentin Perret <quentin.perret@arm.com>
This commit is contained in:
parent
a6b9542f0f
commit
9fcca25031
@ -137,7 +137,7 @@ class HwmonModule(Module):
|
||||
self.scan()
|
||||
|
||||
def scan(self):
|
||||
values_tree = self.target.read_tree_values(self.root, depth=3)
|
||||
values_tree = self.target.read_tree_values(self.root, depth=3, tar=True)
|
||||
for entry_id, fields in values_tree.items():
|
||||
path = self.target.path.join(self.root, entry_id)
|
||||
name = fields.pop('name', None)
|
||||
|
Loading…
x
Reference in New Issue
Block a user