Skip to content

Commit 4dce3d8

Browse files
committed
Correct pff2port idx converter for VEP inst
Signed-off-by: ChetaN KS <[email protected]>
1 parent 3132e77 commit 4dce3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/platform/gasops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ int gasop_pff_to_port(struct switchtec_dev *dev, int pff,
208208
return 0;
209209
}
210210

211-
reg = __gas_read32(dev, &pcfg->vep_pff_inst_id);
211+
reg = __gas_read32(dev, &pcfg->vep_pff_inst_id) & 0xffU;
212212
if (reg == pff) {
213213
*port = SWITCHTEC_PFF_PORT_VEP;
214214
return 0;

0 commit comments

Comments
 (0)