Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Accton][as7535-28xb] Modify what onlpdump -x displays #992

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acctalex
Copy link
Contributor

@acctalex acctalex commented Aug 23, 2024

[Accton][as7535-28xb] Modify what onlpdump -x displays

  1. Add a sysfs, minor_vsrsion, in x86-64-accton-as7535-28xb-cpld.c

  2. Add a sysfs, minor_version, in x86-64-accton-as7535-28xb-fan.c

  3. Add 3 sysfses, fpga_minor_version, cpu_cpld_version, and
    cpu_cpld_minor_version, in x86-64-accton-as7535-28xb-sys.c

  4. Modify what onlpdump -x displays.
    Before modification:

         CPLD Versions:
     CPLD:0b
     FPGA:5b
     Fan CPLD:0b
    

    After modification:

         CPLD Versions:
            CPU CPLD(0x65): E1.0A
            Main CPLD(0x61): 0B.04
            Fan CPLD(0x66): 0B.13
            FPGA(0x60): 5B.16
    
         Other Versions:
            BIOS: v48.0b.03.00
            ONIE: 2020.11.00.14
            BMC: 0.4.00
    

{
int status = 0;

data->valid = 0;

if(attr->index == FPGA_VER)
data->ipmi_tx_data[0] = 0x60;

Choose a reason for hiding this comment

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

Please indent.

Copy link

@paulmenzel paulmenzel left a comment

Choose a reason for hiding this comment

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

Please just squash the fix-up commit into the first one.

$ git rebase -i origin/master # then replace `pick` by `f` (for *f*ixup)

Lastly, please use Markdown to mark up the description to for example mark up code blocks.

{
int status = 0;

data->valid = 0;
data->ipmi_tx_data[0] = 0x60;

if(attr->index == FPGA_VER)

Choose a reason for hiding this comment

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

For consistency, the rest of the file also seems to add a space after if and else if.

1. Add a sysfs, minor_vsrsion, in x86-64-accton-as7535-28xb-cpld.c

2. Add a sysfs, minor_version, in x86-64-accton-as7535-28xb-fan.c

3. Add 3 sysfses, fpga_minor_version, cpu_cpld_version, and
   cpu_cpld_minor_version, in x86-64-accton-as7535-28xb-sys.c

4. Modify what onlpdump -x displays.

Before modification:
        CPLD Versions:
CPLD:0b
FPGA:5b
Fan CPLD:0b

After modification:
        CPLD Versions:
           CPU CPLD(0x65): E1.0A
           Main CPLD(0x61): 0B.04
           Fan CPLD(0x66): 0B.13
           FPGA(0x60): 5B.16

        Other Versions:
           BIOS: v48.0b.03.00
           ONIE: 2020.11.00.14
           BMC: 0.4.00

Signed-off-by: Alex Lai <[email protected]>
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