Skip to content

Commit

Permalink
[as7726-32x] Fix module_reset sysfs (sonic-net#7715)
Browse files Browse the repository at this point in the history
Fix modules_reset sysfs due to need to do revert.

Signed-off-by: Jostar Yang <jostar_yang@accton.com.tw>
  • Loading branch information
jostar-yang authored and Carl Keene committed Aug 7, 2021
1 parent 196df1c commit 3cb4b6d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3cb4b6d

Please sign in to comment.