Skip to content

[Accton][as5835-54x][as5835-54t] Add set/get sfp module_reset, lpmode, tx_disable(QSFP) functi…#105

Open
eric271110 wants to merge 3 commits intoaccton:support_linux_6.12from
eric271110:add_sfp_reset_linux_6.12
Open

[Accton][as5835-54x][as5835-54t] Add set/get sfp module_reset, lpmode, tx_disable(QSFP) functi…#105
eric271110 wants to merge 3 commits intoaccton:support_linux_6.12from
eric271110:add_sfp_reset_linux_6.12

Conversation

@eric271110
Copy link

@eric271110 eric271110 commented Mar 11, 2026

  1. Add set/get sfp module_reset, lpmode, tx_disable(QSFP) functionality

…nality

Signed-off-by: Eric Yang <eric_yang@accton.com>
@eric271110 eric271110 changed the title [Accton][as5835-54x][as5835-54t] Add set/get sfp module_reset functi… [Accton][as5835-54x][as5835-54t] Add set/get sfp module_reset, lpmod, tx_disable(QSFP) functi… Mar 24, 2026
@eric271110 eric271110 changed the title [Accton][as5835-54x][as5835-54t] Add set/get sfp module_reset, lpmod, tx_disable(QSFP) functi… [Accton][as5835-54x][as5835-54t] Add set/get sfp module_reset, lpmode, tx_disable(QSFP) functi… Mar 24, 2026
case ONLP_SFP_CONTROL_TX_DISABLE_CHANNEL:
{
if (port >= SFP_PORT_MIN && port <= SFP_PORT_MAX) { //SFP
if (onlp_file_write_int(value, MODULE_TXDISABLE_FORMAT, 3, addr, (port+1)) < 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do not check the present status before setting, like QSFP ?

Copy link
Author

@eric271110 eric271110 Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QSFP requires the transceiver to be present because TX disable is controlled through EEPROM access.

SFP controls TX disable via sysfs, so the transceiver doesn't necessarily need to be present.

And if we add this check, it would prevent setting TX disable when the transceiver is not present. I'm not sure whether this is desirable or not.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are a end user, you have no idea about the hardware design in the box, when you try to configure all transceivers, but you get two or more different result, what do you think?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would find that strange. I'll add a check for module presence in the SFP case.

…e(QSFP) functionality

Signed-off-by: Eric Yang <eric_yang@accton.com>
Signed-off-by: Eric Yang <eric_yang@accton.com>
@eric271110 eric271110 force-pushed the add_sfp_reset_linux_6.12 branch from 25ff03c to 2e958d7 Compare March 25, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants