[as7726-32x] Fix module_reset sysfs (#7715)

Fix modules_reset sysfs due to need to do revert.

Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw>
This commit is contained in:
jostar-yang 2021-06-09 00:46:38 +08:00 committed by GitHub
parent 9a7b83c693
commit f547cadf28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -498,6 +498,10 @@ static ssize_t show_status(struct device *dev, struct device_attribute *da,
if (attr->index >= MODULE_PRESENT_1 && attr->index <= MODULE_PRESENT_34) {
revert = 1;
}
if (attr->index >= MODULE_RESET_1 && attr->index <= MODULE_RESET_32) {
revert = 1;
}
mutex_lock(&data->update_lock);
status = as7726_32x_cpld_read_internal(client, reg);