Skip to content

Commit 1272b37

Browse files
committed
modify the max port for lpmode and reset
Signed-off-by: willy_liu <willy_liu@edge-core.com>
1 parent 4c294f4 commit 1272b37

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/platforms/accton/x86-64/as7946-30xb/onlp/builds/x86_64_accton_as7946_30xb/module/src

packages/platforms/accton/x86-64/as7946-30xb/onlp/builds/x86_64_accton_as7946_30xb/module/src/sfpi.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ onlp_sfpi_control_set(int port, onlp_sfp_control_t control, int value)
277277
case 0 ... 15:
278278
path = MODULE_RESET_MAIN_BOARD_CPLD1_FORMAT;
279279
break;
280-
case 16 ... 29:
280+
case 16 ... 25:
281281
path = MODULE_RESET_MAIN_BOARD_CPLD2_FORMAT;
282282
break;
283283
default:
@@ -297,7 +297,7 @@ onlp_sfpi_control_set(int port, onlp_sfp_control_t control, int value)
297297
case 0 ... 15:
298298
path = MODULE_LPMODE_MAIN_BOARD_CPLD1_FORMAT;
299299
break;
300-
case 16 ... 29:
300+
case 16 ... 25:
301301
path = MODULE_LPMODE_MAIN_BOARD_CPLD2_FORMAT;
302302
break;
303303
default:
@@ -374,7 +374,7 @@ onlp_sfpi_control_get(int port, onlp_sfp_control_t control, int* value)
374374
case 0 ... 15:
375375
path = MODULE_RESET_MAIN_BOARD_CPLD1_FORMAT;
376376
break;
377-
case 16 ... 29:
377+
case 16 ... 25:
378378
path = MODULE_RESET_MAIN_BOARD_CPLD2_FORMAT;
379379
break;
380380
default:
@@ -393,7 +393,7 @@ onlp_sfpi_control_get(int port, onlp_sfp_control_t control, int* value)
393393
case 0 ... 15:
394394
path = MODULE_LPMODE_MAIN_BOARD_CPLD1_FORMAT;
395395
break;
396-
case 16 ... 29:
396+
case 16 ... 25:
397397
path = MODULE_LPMODE_MAIN_BOARD_CPLD2_FORMAT;
398398
break;
399399
default:

0 commit comments

Comments
 (0)