[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:
parent
9a7b83c693
commit
f547cadf28
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user