[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 Qi Luo
parent ce3bdaf697
commit a9824b73c6

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);