Skip to content

Commit f547cad

Browse files
authored
[as7726-32x] Fix module_reset sysfs (#7715)
Fix modules_reset sysfs due to need to do revert. Signed-off-by: Jostar Yang <[email protected]>
1 parent 9a7b83c commit f547cad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform/broadcom/sonic-platform-modules-accton/as7726-32x/modules/accton_as7726_32x_cpld.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,10 @@ static ssize_t show_status(struct device *dev, struct device_attribute *da,
498498
if (attr->index >= MODULE_PRESENT_1 && attr->index <= MODULE_PRESENT_34) {
499499
revert = 1;
500500
}
501+
if (attr->index >= MODULE_RESET_1 && attr->index <= MODULE_RESET_32) {
502+
revert = 1;
503+
}
504+
501505

502506
mutex_lock(&data->update_lock);
503507
status = as7726_32x_cpld_read_internal(client, reg);

0 commit comments

Comments
 (0)