Skip to content

Commit

Permalink
Correctly check Zone3 compatibility between AFCv3 and RTM-8SFP
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosr8 committed Feb 22, 2024
1 parent 2dd786f commit a9da2bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion port/board/rtm-8sfp/rtm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,15 @@ bool rtm_compatibility_check( void )

if (multirec_hdr[8] == 0x30) {
z3rec_found = true;
break;

/* According to Plataform Management FRU Information Storage Definition v1.0, pg 19
* multirec_hdr[1] >> 7 == 1 indicates the end of list, and for this reason, the loop
* should only break if this condition is satisfied to ensure that we have passed
* through all multirecord area.
*/
if ((multirec_hdr[1] >> 7) == 1) {
break;
}
}
/* Advance the offset pointer, adding the record length field to it */
multirec_off += multirec_hdr[2]+5;
Expand Down

0 comments on commit a9da2bb

Please sign in to comment.